; LLVM IR from hoodoer/ENNEoS :: enneosEncoder/main.ll (Z23runChunkCrunchingThreadPv)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.timespec = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl" }
%"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Cga = type <{ %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.47", ptr, i32, i32, i32, i32, double, double, i32, [4 x i8], double, %"class.std::vector.52", %"class.std::vector.52", double, i8, i8, [2 x i8], i32, i8, [7 x i8] }>
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@DONE = external dso_local global i8, align 1
@THREAD_READY = external dso_local global i8, align 1
@numInputs = external dso_local global i32, align 4
@numOutputs = external dso_local global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@sharedMemoryReady = external global i8, align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_Z23runChunkCrunchingThreadPv(ptr noundef %0) #4 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %struct.timespec, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca %class.Cga, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::queue", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  %12 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
  store i64 0, ptr %12, align 8, !tbaa !9
  %13 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
  store i64 100, ptr %13, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %14 = load ptr, ptr %2, align 8, !tbaa !5
  %15 = load i32, ptr %14, align 4, !tbaa !13
  store i32 %15, ptr %4, align 4, !tbaa !13
  store i8 1, ptr @THREAD_READY, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #8
  call void @_ZNSt6vectorIP9ShellyBotSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.start.p0(i64 272, ptr %6) #8
  %16 = load i32, ptr @numInputs, align 4, !tbaa !13
  %17 = load i32, ptr @numOutputs, align 4, !tbaa !13
  invoke void @_ZN3CgaC1Eiii(ptr noundef nonnull align 8 dereferenceable(265) %6, i32 noundef 3000, i32 noundef %16, i32 noundef %17)
          to label %18 unwind label %27

18:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #8
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %19 unwind label %31

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  br label %20

20:                                               ; preds = %26, %19
  %21 = load i8, ptr @sharedMemoryReady, align 1, !tbaa !15, !range !17, !noundef !18
  %22 = trunc i8 %21 to i1
  %23 = xor i1 %22, true
  br i1 %23, label %24, label %39

24:                                               ; preds = %20
  %25 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %26 unwind label %35

26:                                               ; preds = %24
  br label %20, !llvm.loop !19

27:                                               ; preds = %1
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  br label %94

31:                                               ; preds = %18
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  br label %93

35:                                               ; preds = %88, %85, %83, %80, %54, %46, %44, %41, %39, %24
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  br label %92

39:                                               ; preds = %20
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %41 unwind label %35

41:                                               ; preds = %39
  %42 = load i32, ptr %4, align 4, !tbaa !13
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %42)
          to label %44 unwind label %35

44:                                               ; preds = %41
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @.str.14)
          to label %46 unwind label %35

46:                                               ; preds = %44
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %48 unwind label %35

48:                                               ; preds = %46
  br label %49

49:                                               ; preds = %90, %48
  %50 = load i8, ptr @DONE, align 1, !tbaa !15, !range !17, !noundef !18
  %51 = trunc i8 %50 to i1
  %52 = xor i1 %51, true
  br i1 %52, label %53, label %91

53:                                               ; preds = %49
  br label %54

54:                                               ; preds = %79, %53
  %55 = invoke noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %56 unwind label %35

56:                                               ; preds = %54
  br i1 %55, label %57, label %80

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

58:                                               ; preds = %76, %57
  %59 = load i32, ptr %11, align 4, !tbaa !13
  %60 = icmp ult i32 %59, 10
  br i1 %60, label %62, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %79

62:                                               ; preds = %58
  %63 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %64 unwind label %67

64:                                               ; preds = %62
  br i1 %63, label %65, label %71

65:                                               ; preds = %64
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %66 unwind label %67

66:                                               ; preds = %65
  br label %73

67:                                               ; preds = %73, %71, %65, %62
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %7, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %92

71:                                               ; preds = %64
  invoke void @pthread_exit(ptr noundef null) #9
          to label %72 unwind label %67

72:                                               ; preds = %71
  unreachable

73:                                               ; preds = %66
  %74 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %75 unwind label %67

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %11, align 4, !tbaa !13
  %78 = add i32 %77, 1
  store i32 %78, ptr %11, align 4, !tbaa !13
  br label %58, !llvm.loop !21

79:                                               ; preds = %61
  br label %54, !llvm.loop !22

80:                                               ; preds = %56
  %81 = invoke noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %82 unwind label %35

82:                                               ; preds = %80
  br i1 %81, label %88, label %83

83:                                               ; preds = %82
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIjSt5dequeIjSaIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %85 unwind label %35

85:                                               ; preds = %83
  %86 = load i32, ptr %84, align 4, !tbaa !13
  store i32 %86, ptr %10, align 4, !tbaa !13
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %9)
          to label %87 unwind label %35

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87, %82
  %89 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %90 unwind label %35

90:                                               ; preds = %88
  br label %49, !llvm.loop !23

91:                                               ; preds = %49
  unreachable

92:                                               ; preds = %67, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %9) #8
  br label %93

93:                                               ; preds = %92, %31
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #8
  call void @_ZN3CgaD1Ev(ptr noundef nonnull align 8 dereferenceable(265) %6) #8
  br label %94

94:                                               ; preds = %93, %27
  call void @llvm.lifetime.end.p0(i64 272, ptr %6) #8
  call void @_ZNSt6vectorIP9ShellyBotSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #8
  br label %95

95:                                               ; preds = %94
  %96 = load ptr, ptr %7, align 8
  %97 = load i32, ptr %8, align 4
  %98 = insertvalue { ptr, i32 } poison, ptr %96, 0
  %99 = insertvalue { ptr, i32 } %98, i32 %97, 1
  resume { ptr, i32 } %99
}

declare void @_ZN3CgaC1Eiii(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

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

declare i32 @nanosleep(ptr noundef, ptr noundef) #3

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

declare noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: noreturn
declare void @pthread_exit(ptr noundef) #5

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: nounwind
declare void @_ZN3CgaD1Ev(ptr noundef nonnull align 8 dereferenceable(265)) unnamed_addr #7

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn }

!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, !11, i64 0}
!10 = !{!"_ZTS8timespec", !11, i64 0, !11, i64 8}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.timespec = type { i64, i64 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl" }
%"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl" = type { %"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ShellyBot *, std::allocator<ShellyBot *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Cga = type <{ %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.42", %"class.std::vector.47", ptr, i32, i32, i32, i32, double, double, i32, [4 x i8], double, %"class.std::vector.52", %"class.std::vector.52", double, i8, i8, [2 x i8], i32, i8, [7 x i8] }>
%"class.std::vector.42" = type { %"struct.std::_Vector_base.43" }
%"struct.std::_Vector_base.43" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl" = type { %"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CGenome, std::allocator<CGenome>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.47" = type { %"struct.std::_Vector_base.48" }
%"struct.std::_Vector_base.48" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl" = type { %"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" }
%"struct.std::_Vector_base<CSpecies, std::allocator<CSpecies>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.52" = type { %"struct.std::_Vector_base.53" }
%"struct.std::_Vector_base.53" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl" = type { %"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" }
%"struct.std::_Vector_base<SplitDepth, std::allocator<SplitDepth>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned int, std::allocator<unsigned int>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@DONE = external dso_local local_unnamed_addr global i8, align 1
@THREAD_READY = external dso_local local_unnamed_addr global i8, align 1
@numInputs = external dso_local local_unnamed_addr global i32, align 4
@numOutputs = external dso_local local_unnamed_addr global i32, align 4
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@sharedMemoryReady = external local_unnamed_addr global i8, align 1
@.str.13 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress noreturn uwtable
define dso_local noalias noundef nonnull ptr @_Z23runChunkCrunchingThreadPv(ptr nocapture noundef readonly %0) local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.timespec, align 8
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca %class.Cga, align 8
  %5 = alloca %"class.std::queue", align 8
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #10
  store i64 0, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 100, ptr %7, align 8, !tbaa !10
  %8 = load i32, ptr %0, align 4, !tbaa !11
  store i8 1, ptr @THREAD_READY, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #10
  call void @_ZNSt6vectorIP9ShellyBotSaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %4) #10
  %9 = load i32, ptr @numInputs, align 4, !tbaa !11
  %10 = load i32, ptr @numOutputs, align 4, !tbaa !11
  invoke void @_ZN3CgaC1Eiii(ptr noundef nonnull align 8 dereferenceable(265) %4, i32 noundef 3000, i32 noundef %9, i32 noundef %10)
          to label %11 unwind label %18

11:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %5) #10
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %12 unwind label %20

12:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #10
  br label %13

13:                                               ; preds = %16, %12
  %14 = load i8, ptr @sharedMemoryReady, align 1, !tbaa !13, !range !15, !noundef !16
  %15 = trunc nuw i8 %14 to i1
  br i1 %15, label %22, label %16

16:                                               ; preds = %13
  %17 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %13 unwind label %.loopexit.split-lp15.loopexit, !llvm.loop !17

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  br label %103

20:                                               ; preds = %11
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %102

.loopexit14:                                      ; preds = %100
  %lpad.loopexit16 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp15

.loopexit.split-lp15.loopexit:                    ; preds = %16
  %lpad.loopexit19 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp15

.loopexit.split-lp15.loopexit.split-lp:           ; preds = %28, %26, %24, %22
  %lpad.loopexit.split-lp20 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp15

22:                                               ; preds = %13
  %23 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
          to label %24 unwind label %.loopexit.split-lp15.loopexit.split-lp

24:                                               ; preds = %22
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %23, i32 noundef %8)
          to label %26 unwind label %.loopexit.split-lp15.loopexit.split-lp

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull @.str.14)
          to label %28 unwind label %.loopexit.split-lp15.loopexit.split-lp

28:                                               ; preds = %26
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader13 unwind label %.loopexit.split-lp15.loopexit.split-lp

.preheader13:                                     ; preds = %28, %100
  %30 = load i8, ptr @DONE, align 1, !tbaa !13, !range !15, !noundef !16
  %31 = trunc nuw i8 %30 to i1
  %32 = xor i1 %31, true
  call void @llvm.assume(i1 %32)
  %33 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br i1 %33, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %.preheader13, %.loopexit
  %34 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %35 unwind label %.loopexit12

35:                                               ; preds = %.preheader
  br i1 %34, label %36, label %37

36:                                               ; preds = %35
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %39 unwind label %.loopexit12

.loopexit12:                                      ; preds = %93, %92, %89, %87, %86, %83, %81, %80, %77, %75, %74, %71, %69, %68, %65, %63, %62, %59, %57, %56, %53, %51, %50, %47, %45, %44, %41, %.preheader, %36, %39
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp15

.loopexit.split-lp:                               ; preds = %37
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp15

37:                                               ; preds = %91, %85, %79, %73, %67, %61, %55, %49, %43, %35
  invoke void @pthread_exit(ptr noundef null) #11
          to label %38 unwind label %.loopexit.split-lp

38:                                               ; preds = %37
  unreachable

39:                                               ; preds = %36
  %40 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %41 unwind label %.loopexit12

41:                                               ; preds = %39
  %42 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %43 unwind label %.loopexit12

43:                                               ; preds = %41
  br i1 %42, label %44, label %37

44:                                               ; preds = %43
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %45 unwind label %.loopexit12

45:                                               ; preds = %44
  %46 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %47 unwind label %.loopexit12

47:                                               ; preds = %45
  %48 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %49 unwind label %.loopexit12

49:                                               ; preds = %47
  br i1 %48, label %50, label %37

50:                                               ; preds = %49
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %51 unwind label %.loopexit12

51:                                               ; preds = %50
  %52 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %53 unwind label %.loopexit12

53:                                               ; preds = %51
  %54 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %55 unwind label %.loopexit12

55:                                               ; preds = %53
  br i1 %54, label %56, label %37

56:                                               ; preds = %55
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %57 unwind label %.loopexit12

57:                                               ; preds = %56
  %58 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %59 unwind label %.loopexit12

59:                                               ; preds = %57
  %60 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %61 unwind label %.loopexit12

61:                                               ; preds = %59
  br i1 %60, label %62, label %37

62:                                               ; preds = %61
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %63 unwind label %.loopexit12

63:                                               ; preds = %62
  %64 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %65 unwind label %.loopexit12

65:                                               ; preds = %63
  %66 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %67 unwind label %.loopexit12

67:                                               ; preds = %65
  br i1 %66, label %68, label %37

68:                                               ; preds = %67
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %69 unwind label %.loopexit12

69:                                               ; preds = %68
  %70 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %71 unwind label %.loopexit12

71:                                               ; preds = %69
  %72 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %73 unwind label %.loopexit12

73:                                               ; preds = %71
  br i1 %72, label %74, label %37

74:                                               ; preds = %73
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %75 unwind label %.loopexit12

75:                                               ; preds = %74
  %76 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %77 unwind label %.loopexit12

77:                                               ; preds = %75
  %78 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %79 unwind label %.loopexit12

79:                                               ; preds = %77
  br i1 %78, label %80, label %37

80:                                               ; preds = %79
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %81 unwind label %.loopexit12

81:                                               ; preds = %80
  %82 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %83 unwind label %.loopexit12

83:                                               ; preds = %81
  %84 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %85 unwind label %.loopexit12

85:                                               ; preds = %83
  br i1 %84, label %86, label %37

86:                                               ; preds = %85
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %87 unwind label %.loopexit12

87:                                               ; preds = %86
  %88 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %89 unwind label %.loopexit12

89:                                               ; preds = %87
  %90 = invoke noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %91 unwind label %.loopexit12

91:                                               ; preds = %89
  br i1 %90, label %92, label %37

92:                                               ; preds = %91
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %93 unwind label %.loopexit12

93:                                               ; preds = %92
  %94 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %.loopexit unwind label %.loopexit12

.loopexit:                                        ; preds = %93
  %95 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br i1 %95, label %.preheader, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %.loopexit, %.preheader13
  %96 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br i1 %96, label %100, label %97

97:                                               ; preds = %._crit_edge
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIjSt5dequeIjSaIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  %99 = load i32, ptr %98, align 4, !tbaa !11
  store i32 %99, ptr %6, align 4, !tbaa !11
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  br label %100

100:                                              ; preds = %97, %._crit_edge
  %101 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %.preheader13 unwind label %.loopexit14, !llvm.loop !20

.loopexit.split-lp15:                             ; preds = %.loopexit12, %.loopexit.split-lp, %.loopexit14, %.loopexit.split-lp15.loopexit.split-lp, %.loopexit.split-lp15.loopexit
  %.pn = phi { ptr, i32 } [ %lpad.loopexit16, %.loopexit14 ], [ %lpad.loopexit19, %.loopexit.split-lp15.loopexit ], [ %lpad.loopexit.split-lp20, %.loopexit.split-lp15.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit12 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #10
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #10
  br label %102

102:                                              ; preds = %.loopexit.split-lp15, %20
  %.pn.pn = phi { ptr, i32 } [ %.pn, %.loopexit.split-lp15 ], [ %21, %20 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %5) #10
  call void @_ZN3CgaD1Ev(ptr noundef nonnull align 8 dereferenceable(265) %4) #10
  br label %103

103:                                              ; preds = %102, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %102 ], [ %19, %18 ]
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %4) #10
  call void @_ZNSt6vectorIP9ShellyBotSaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn.pn.pn
}

declare void @_ZN3CgaC1Eiii(ptr noundef nonnull align 8 dereferenceable(265), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #3

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

declare i32 @nanosleep(ptr noundef, ptr noundef) local_unnamed_addr #3

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

declare noundef zeroext i1 @_Z29chunkCruncherThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: noreturn
declare void @pthread_exit(ptr noundef) local_unnamed_addr #6

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #7 align 2

; Function Attrs: nounwind
declare void @_ZN3CgaD1Ev(ptr noundef nonnull align 8 dereferenceable(265)) unnamed_addr #8

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write)
declare void @llvm.assume(i1 noundef) #9

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress noreturn 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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #10 = { nounwind }
attributes #11 = { noreturn }

!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, !7, i64 0}
!6 = !{!"_ZTS8timespec", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 8}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !8, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass