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

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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.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::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 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.BrainTestData = type { %"class.std::vector.28", %"class.std::vector.32", %"class.std::vector.37" }
%"class.std::vector.28" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.botEvaluationData = type { i32, i32, double, i8 }
%"class.std::allocator" = type { i8 }

@RunType = external dso_local global i32, align 4
@DONE = external dso_local global i8, align 1
@THREAD_READY = external dso_local global i8, align 1
@_Z10passphraseB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@shenaniganBots = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@sharedMemoryReady = external global i8, align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [61 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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
declare dso_local void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef, ptr noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88)) #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z30doubleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88)) #4

; 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

; 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: 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: mustprogress uwtable
define dso_local noundef ptr @_Z17runThunkingThreadPv(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::queue", align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"class.std::__cxx11::basic_string", align 8
  %15 = alloca %"class.std::vector.13", align 8
  %16 = alloca %"class.std::vector.8", align 8
  %17 = alloca %struct.BrainTestData, align 8
  %18 = alloca %struct.botEvaluationData, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::allocator", align 1
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::allocator", align 1
  %27 = alloca %"class.std::__cxx11::basic_string", align 8
  %28 = alloca %struct.botEvaluationData, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #8
  %29 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 0
  store i64 0, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.timespec, ptr %3, i32 0, i32 1
  store i64 100, ptr %30, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = load i32, ptr %31, align 4, !tbaa !13
  store i32 %32, ptr %4, align 4, !tbaa !13
  store i8 1, ptr @THREAD_READY, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 80, ptr %5) #8
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  br label %33

33:                                               ; preds = %39, %1
  %34 = load i8, ptr @sharedMemoryReady, align 1, !tbaa !15, !range !17, !noundef !18
  %35 = trunc i8 %34 to i1
  %36 = xor i1 %35, true
  br i1 %36, label %37, label %44

37:                                               ; preds = %33
  %38 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %39 unwind label %40

39:                                               ; preds = %37
  br label %33, !llvm.loop !19

40:                                               ; preds = %233, %90, %88, %85, %59, %51, %49, %46, %44, %37
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %7, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %8, align 4
  br label %237

44:                                               ; preds = %33
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %46 unwind label %40

46:                                               ; preds = %44
  %47 = load i32, ptr %4, align 4, !tbaa !13
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %45, i32 noundef %47)
          to label %49 unwind label %40

49:                                               ; preds = %46
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef @.str.14)
          to label %51 unwind label %40

51:                                               ; preds = %49
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %53 unwind label %40

53:                                               ; preds = %51
  br label %54

54:                                               ; preds = %235, %53
  %55 = load i8, ptr @DONE, align 1, !tbaa !15, !range !17, !noundef !18
  %56 = trunc i8 %55 to i1
  %57 = xor i1 %56, true
  br i1 %57, label %58, label %236

58:                                               ; preds = %54
  br label %59

59:                                               ; preds = %84, %58
  %60 = invoke noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %61 unwind label %40

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

62:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %63

63:                                               ; preds = %80, %62
  %64 = load i32, ptr %9, align 4, !tbaa !13
  %65 = icmp slt i32 %64, 10
  br i1 %65, label %67, label %66

66:                                               ; preds = %63
  store i32 8, ptr %10, align 4
  br label %83

67:                                               ; preds = %63
  %68 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %69 unwind label %72

69:                                               ; preds = %67
  br i1 %68, label %70, label %76

70:                                               ; preds = %69
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %71 unwind label %72

71:                                               ; preds = %70
  br label %77

72:                                               ; preds = %77, %70, %67
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %7, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %237

76:                                               ; preds = %69
  store i32 8, ptr %10, align 4
  br label %83

77:                                               ; preds = %71
  %78 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %79 unwind label %72

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79
  %81 = load i32, ptr %9, align 4, !tbaa !13
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %9, align 4, !tbaa !13
  br label %63, !llvm.loop !21

83:                                               ; preds = %76, %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %84

84:                                               ; preds = %83
  br label %59, !llvm.loop !22

85:                                               ; preds = %61
  %86 = invoke noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %87 unwind label %40

87:                                               ; preds = %85
  br i1 %86, label %233, label %88

88:                                               ; preds = %87
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIjSt5dequeIjSaIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %90 unwind label %40

90:                                               ; preds = %88
  %91 = load i32, ptr %89, align 4, !tbaa !13
  store i32 %91, ptr %6, align 4, !tbaa !13
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %5)
          to label %92 unwind label %40

92:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #8
  store i8 0, ptr %11, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.start.p0(i64 88, ptr %17) #8
  call void @_ZN13BrainTestDataC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #8
  %93 = load i32, ptr %6, align 4, !tbaa !13
  %94 = zext i32 %93 to i64
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9ShellyBotSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shenaniganBots, i64 noundef %94)
          to label %96 unwind label %101

96:                                               ; preds = %92
  %97 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %97, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  %98 = load i32, ptr %6, align 4, !tbaa !13
  %99 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 0
  store i32 %98, ptr %99, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %100 = load i32, ptr @RunType, align 4, !tbaa !26
  switch i32 %100, label %107 [
    i32 0, label %105
    i32 1, label %106
  ]

101:                                              ; preds = %92
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %232

105:                                              ; preds = %96
  store i32 1, ptr %19, align 4, !tbaa !13
  br label %108

106:                                              ; preds = %96
  store i32 5, ptr %19, align 4, !tbaa !13
  br label %108

107:                                              ; preds = %96
  store i32 1, ptr %19, align 4, !tbaa !13
  br label %108

108:                                              ; preds = %107, %106, %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !13
  br label %109

109:                                              ; preds = %191, %108
  %110 = load i32, ptr %20, align 4, !tbaa !13
  %111 = load i32, ptr %19, align 4, !tbaa !13
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 12, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %199

114:                                              ; preds = %109
  store i8 0, ptr %12, align 1, !tbaa !15
  %115 = load i8, ptr %11, align 1, !tbaa !15, !range !17, !noundef !18
  %116 = trunc i8 %115 to i1
  br i1 %116, label %117, label %132

117:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %118 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11) #8
  %119 = trunc i64 %118 to i32
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %120 unwind label %123

120:                                              ; preds = %117
  invoke void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, i32 noundef %119, ptr noundef %22)
          to label %121 unwind label %127

121:                                              ; preds = %120
  %122 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %167

123:                                              ; preds = %117
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %7, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %8, align 4
  br label %131

127:                                              ; preds = %120
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %7, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #8
  br label %131

131:                                              ; preds = %127, %123
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %198

132:                                              ; preds = %114
  %133 = load i32, ptr %20, align 4, !tbaa !13
  %134 = load i32, ptr %19, align 4, !tbaa !13
  %135 = sub nsw i32 %134, 1
  %136 = icmp eq i32 %133, %135
  br i1 %136, label %137, label %144

137:                                              ; preds = %132
  %138 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11)
          to label %139 unwind label %140

139:                                              ; preds = %137
  store i8 1, ptr %11, align 1, !tbaa !15
  store i8 1, ptr %12, align 1, !tbaa !15
  br label %166

140:                                              ; preds = %188, %186, %184, %182, %179, %176, %173, %170, %147, %144, %137
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %7, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %8, align 4
  br label %198

144:                                              ; preds = %132
  %145 = invoke noundef zeroext i1 @_Z8RandBoolv()
          to label %146 unwind label %140

146:                                              ; preds = %144
  br i1 %145, label %147, label %150

147:                                              ; preds = %146
  %148 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11)
          to label %149 unwind label %140

149:                                              ; preds = %147
  store i8 1, ptr %11, align 1, !tbaa !15
  store i8 1, ptr %12, align 1, !tbaa !15
  br label %165

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  %151 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11) #8
  %152 = trunc i64 %151 to i32
  call void @llvm.lifetime.start.p0(i64 1, ptr %26) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %26)
          to label %153 unwind label %156

153:                                              ; preds = %150
  invoke void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, i32 noundef %152, ptr noundef %25)
          to label %154 unwind label %160

154:                                              ; preds = %153
  %155 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %14, ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  br label %165

156:                                              ; preds = %150
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %7, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %8, align 4
  br label %164

160:                                              ; preds = %153
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %7, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #8
  br label %164

164:                                              ; preds = %160, %156
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %26) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  br label %198

165:                                              ; preds = %154, %149
  br label %166

166:                                              ; preds = %165, %139
  br label %167

167:                                              ; preds = %166, %121
  %168 = load i8, ptr %12, align 1, !tbaa !15, !range !17, !noundef !18
  %169 = trunc i8 %168 to i1
  br i1 %169, label %170, label %173

170:                                              ; preds = %167
  %171 = getelementptr inbounds %struct.BrainTestData, ptr %17, i32 0, i32 0
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %171, i1 noundef zeroext true)
          to label %172 unwind label %140

172:                                              ; preds = %170
  br label %176

173:                                              ; preds = %167
  %174 = getelementptr inbounds %struct.BrainTestData, ptr %17, i32 0, i32 0
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %174, i1 noundef zeroext false)
          to label %175 unwind label %140

175:                                              ; preds = %173
  br label %176

176:                                              ; preds = %175, %172
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(32) %14)
          to label %178 unwind label %140

178:                                              ; preds = %176
  invoke void @_ZN9ShellyBot14setBrainInputsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(112) %177, ptr noundef %27)
          to label %179 unwind label %194

179:                                              ; preds = %178
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = invoke noundef zeroext i1 @_ZN9ShellyBot6updateEv(ptr noundef nonnull align 8 dereferenceable(112) %180)
          to label %182 unwind label %140

182:                                              ; preds = %179
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN9ShellyBot19getBrainCharOutputsERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(112) %183, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %184 unwind label %140

184:                                              ; preds = %182
  %185 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN9ShellyBot18getBrainRawOutputsERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112) %185, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %186 unwind label %140

186:                                              ; preds = %184
  %187 = getelementptr inbounds %struct.BrainTestData, ptr %17, i32 0, i32 1
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %187, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %188 unwind label %140

188:                                              ; preds = %186
  %189 = getelementptr inbounds %struct.BrainTestData, ptr %17, i32 0, i32 2
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %190 unwind label %140

190:                                              ; preds = %188
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %20, align 4, !tbaa !13
  %193 = add nsw i32 %192, 1
  store i32 %193, ptr %20, align 4, !tbaa !13
  br label %109, !llvm.loop !28

194:                                              ; preds = %178
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %7, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %27) #8
  br label %198

198:                                              ; preds = %194, %164, %140, %131
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %231

199:                                              ; preds = %113
  %200 = load i32, ptr @RunType, align 4, !tbaa !26
  switch i32 %200, label %213 [
    i32 0, label %201
    i32 1, label %209
  ]

201:                                              ; preds = %199
  %202 = invoke noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %203 unwind label %205

203:                                              ; preds = %201
  %204 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 2
  store double %202, ptr %204, align 8, !tbaa !29
  br label %218

205:                                              ; preds = %229, %218, %215, %213, %209, %201
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  br label %231

209:                                              ; preds = %199
  %210 = invoke noundef double @_Z30doubleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %17)
          to label %211 unwind label %205

211:                                              ; preds = %209
  %212 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 2
  store double %210, ptr %212, align 8, !tbaa !29
  br label %218

213:                                              ; preds = %199
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %215 unwind label %205

215:                                              ; preds = %213
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %217 unwind label %205

217:                                              ; preds = %215
  call void @exit(i32 noundef 1) #9
  unreachable

218:                                              ; preds = %211, %203
  %219 = load ptr, ptr %13, align 8, !tbaa !5
  %220 = invoke noundef i32 @_ZN9ShellyBot16getBrainGenomeIDEv(ptr noundef nonnull align 8 dereferenceable(112) %219)
          to label %221 unwind label %205

221:                                              ; preds = %218
  %222 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 1
  store i32 %220, ptr %222, align 4, !tbaa !30
  %223 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 3
  store i8 0, ptr %223, align 8, !tbaa !31
  %224 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 2
  %225 = load double, ptr %224, align 8, !tbaa !29
  %226 = fcmp oeq double %225, -1.000000e+00
  br i1 %226, label %227, label %229

227:                                              ; preds = %221
  %228 = getelementptr inbounds %struct.botEvaluationData, ptr %18, i32 0, i32 3
  store i8 1, ptr %228, align 8, !tbaa !31
  br label %229

229:                                              ; preds = %227, %221
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %28, ptr align 8 %18, i64 24, i1 false), !tbaa.struct !32
  invoke void @_Z26thunkerThreadAddEvalResult17botEvaluationData(ptr noundef byval(%struct.botEvaluationData) align 8 %28)
          to label %230 unwind label %205

230:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @_ZN13BrainTestDataD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %233

231:                                              ; preds = %205, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br label %232

232:                                              ; preds = %231, %101
  call void @_ZN13BrainTestDataD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %17) #8
  call void @llvm.lifetime.end.p0(i64 88, ptr %17) #8
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %14) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #8
  br label %237

233:                                              ; preds = %230, %87
  %234 = invoke i32 @nanosleep(ptr noundef %3, ptr noundef null)
          to label %235 unwind label %40

235:                                              ; preds = %233
  br label %54, !llvm.loop !34

236:                                              ; preds = %54
  unreachable

237:                                              ; preds = %232, %72, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %5) #8
  call void @llvm.lifetime.end.p0(i64 80, 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 %238

238:                                              ; preds = %237
  %239 = load ptr, ptr %7, align 8
  %240 = load i32, ptr %8, align 4
  %241 = insertvalue { ptr, i32 } poison, ptr %239, 0
  %242 = insertvalue { ptr, i32 } %241, i32 %240, 1
  resume { ptr, i32 } %242
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8RandBoolv() #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) #4 align 2

declare void @_ZN9ShellyBot14setBrainInputsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #3

declare noundef zeroext i1 @_ZN9ShellyBot6updateEv(ptr noundef nonnull align 8 dereferenceable(112)) #3

declare void @_ZN9ShellyBot19getBrainCharOutputsERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) #3

declare void @_ZN9ShellyBot18getBrainRawOutputsERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) #3

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

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

declare noundef i32 @_ZN9ShellyBot16getBrainGenomeIDEv(ptr noundef nonnull align 8 dereferenceable(112)) #3

declare void @_Z26thunkerThreadAddEvalResult17botEvaluationData(ptr noundef byval(%struct.botEvaluationData) align 8) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #7

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

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

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

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

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 nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nounwind }
attributes #9 = { 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, !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 = !{!24, !14, i64 0}
!24 = !{!"_ZTS17botEvaluationData", !14, i64 0, !14, i64 4, !25, i64 8, !16, i64 16}
!25 = !{!"double", !7, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"_ZTS19FitnessFunctionType", !7, i64 0}
!28 = distinct !{!28, !20}
!29 = !{!24, !25, i64 8}
!30 = !{!24, !14, i64 4}
!31 = !{!24, !16, i64 16}
!32 = !{i64 0, i64 4, !13, i64 4, i64 4, !13, i64 8, i64 8, !33, i64 16, i64 1, !15}
!33 = !{!25, !25, i64 0}
!34 = distinct !{!34, !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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::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.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::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 }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.BrainTestData = type { %"class.std::vector.28", %"class.std::vector.32", %"class.std::vector.37" }
%"class.std::vector.28" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::vector.32" = type { %"struct.std::_Vector_base.33" }
%"struct.std::_Vector_base.33" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned char>, std::allocator<std::vector<unsigned char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.37" = type { %"struct.std::_Vector_base.38" }
%"struct.std::_Vector_base.38" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }
%struct.botEvaluationData = type { i32, i32, double, i8 }

@RunType = external dso_local local_unnamed_addr global i32, align 4
@DONE = external dso_local local_unnamed_addr global i8, align 1
@THREAD_READY = external dso_local local_unnamed_addr global i8, align 1
@_Z10passphraseB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@shenaniganBots = external dso_local global %"class.std::vector", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@sharedMemoryReady = external local_unnamed_addr global i8, align 1
@.str.14 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [61 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) 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 uwtable
declare dso_local void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef, ptr noundef) local_unnamed_addr #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z30doubleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #4

; 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

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

; Function Attrs: mustprogress noreturn uwtable
define dso_local noalias noundef nonnull ptr @_Z17runThunkingThreadPv(ptr nocapture noundef readonly %0) local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.timespec, align 8
  %3 = alloca %"class.std::queue", align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::vector.13", align 8
  %7 = alloca %"class.std::vector.8", align 8
  %8 = alloca %struct.BrainTestData, align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %struct.botEvaluationData, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #9
  store i64 0, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 8
  store i64 100, ptr %17, align 8, !tbaa !10
  %18 = 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 80, ptr nonnull %3) #9
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEEC2IS2_vEEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  br label %19

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

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

.loopexit45:                                      ; preds = %178
  %lpad.loopexit47 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp46

.loopexit.split-lp46.loopexit:                    ; preds = %22
  %lpad.loopexit50 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp46

.loopexit.split-lp46.loopexit.split-lp:           ; preds = %30, %28, %26, %24
  %lpad.loopexit.split-lp51 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp46

24:                                               ; preds = %19
  %25 = 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.15)
          to label %26 unwind label %.loopexit.split-lp46.loopexit.split-lp

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

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

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader44 unwind label %.loopexit.split-lp46.loopexit.split-lp

.preheader44:                                     ; preds = %30
  %32 = getelementptr inbounds i8, ptr %8, i64 40
  %33 = getelementptr inbounds i8, ptr %8, i64 64
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 4
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 8
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %16, i64 16
  br label %34

34:                                               ; preds = %.preheader44, %178
  %35 = load i8, ptr @DONE, align 1, !tbaa !13, !range !15, !noundef !16
  %36 = trunc nuw i8 %35 to i1
  %37 = xor i1 %36, true
  call void @llvm.assume(i1 %37)
  %38 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %38, label %.preheader, label %._crit_edge

.preheader:                                       ; preds = %34, %100
  %39 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %40 unwind label %42

40:                                               ; preds = %.preheader
  br i1 %39, label %41, label %100

41:                                               ; preds = %40
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %44 unwind label %42

42:                                               ; preds = %98, %97, %94, %92, %91, %88, %86, %85, %82, %80, %79, %76, %74, %73, %70, %68, %67, %64, %62, %61, %58, %56, %55, %52, %50, %49, %46, %44, %41, %.preheader
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp46

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

46:                                               ; preds = %44
  %47 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %48 unwind label %42

48:                                               ; preds = %46
  br i1 %47, label %49, label %100

49:                                               ; preds = %48
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %50 unwind label %42

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

52:                                               ; preds = %50
  %53 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %54 unwind label %42

54:                                               ; preds = %52
  br i1 %53, label %55, label %100

55:                                               ; preds = %54
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %56 unwind label %42

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

58:                                               ; preds = %56
  %59 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %60 unwind label %42

60:                                               ; preds = %58
  br i1 %59, label %61, label %100

61:                                               ; preds = %60
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %62 unwind label %42

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

64:                                               ; preds = %62
  %65 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %66 unwind label %42

66:                                               ; preds = %64
  br i1 %65, label %67, label %100

67:                                               ; preds = %66
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %68 unwind label %42

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

70:                                               ; preds = %68
  %71 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %72 unwind label %42

72:                                               ; preds = %70
  br i1 %71, label %73, label %100

73:                                               ; preds = %72
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %74 unwind label %42

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

76:                                               ; preds = %74
  %77 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %78 unwind label %42

78:                                               ; preds = %76
  br i1 %77, label %79, label %100

79:                                               ; preds = %78
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %80 unwind label %42

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

82:                                               ; preds = %80
  %83 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %84 unwind label %42

84:                                               ; preds = %82
  br i1 %83, label %85, label %100

85:                                               ; preds = %84
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %86 unwind label %42

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

88:                                               ; preds = %86
  %89 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %90 unwind label %42

90:                                               ; preds = %88
  br i1 %89, label %91, label %100

91:                                               ; preds = %90
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %92 unwind label %42

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

94:                                               ; preds = %92
  %95 = invoke noundef zeroext i1 @_Z23thunkerThreadGetJobToDoRj(ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %96 unwind label %42

96:                                               ; preds = %94
  br i1 %95, label %97, label %100

97:                                               ; preds = %96
  invoke void @_ZNSt5queueIjSt5dequeIjSaIjEEE4pushERKj(ptr noundef nonnull align 8 dereferenceable(80) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %98 unwind label %42

98:                                               ; preds = %97
  %99 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %100 unwind label %42

100:                                              ; preds = %98, %96, %90, %84, %78, %72, %66, %60, %54, %48, %40
  %101 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %101, label %.preheader, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %100, %34
  %102 = call noundef zeroext i1 @_ZNKSt5queueIjSt5dequeIjSaIjEEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  br i1 %102, label %178, label %103

103:                                              ; preds = %._crit_edge
  %104 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5queueIjSt5dequeIjSaIjEEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  %105 = load i32, ptr %104, align 4, !tbaa !11
  store i32 %105, ptr %4, align 4, !tbaa !11
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEE3popEv(ptr noundef nonnull align 8 dereferenceable(80) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIdSaIdEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %8) #9
  call void @_ZN13BrainTestDataC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #9
  %106 = load i32, ptr %4, align 4, !tbaa !11
  %107 = zext i32 %106 to i64
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIP9ShellyBotSaIS1_EE2atEm(ptr noundef nonnull align 8 dereferenceable(24) @shenaniganBots, i64 noundef %107)
          to label %109 unwind label %114

109:                                              ; preds = %103
  %110 = load ptr, ptr %108, align 8, !tbaa !20
  %111 = load i32, ptr %4, align 4, !tbaa !11
  %112 = load i32, ptr @RunType, align 4, !tbaa !22
  %switch.selectcmp = icmp eq i32 %112, 1
  %switch.select = select i1 %switch.selectcmp, i32 5, i32 1
  %113 = add nsw i32 %switch.select, -1
  br label %118

114:                                              ; preds = %103
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %177

116:                                              ; preds = %159
  %117 = load i32, ptr @RunType, align 4, !tbaa !22
  switch i32 %117, label %167 [
    i32 0, label %163
    i32 1, label %165
  ]

118:                                              ; preds = %109, %159
  %.055 = phi i32 [ 0, %109 ], [ %160, %159 ]
  %.02754 = phi i1 [ false, %109 ], [ %.12842, %159 ]
  br i1 %.02754, label %119, label %130

119:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  %120 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %121 unwind label %125

121:                                              ; preds = %119
  %122 = trunc i64 %120 to i32
  invoke void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, i32 noundef %122, ptr noundef nonnull %10)
          to label %123 unwind label %127

123:                                              ; preds = %121
  %124 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %150

125:                                              ; preds = %119
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %121
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #9
  br label %129

129:                                              ; preds = %127, %125
  %.pn30 = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %177

130:                                              ; preds = %118
  %131 = icmp eq i32 %.055, %113
  br i1 %131, label %.invoke, label %134

132:                                              ; preds = %.invoke, %158, %157, %156, %155, %153, %151, %150, %149, %134
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %177

134:                                              ; preds = %130
  %135 = invoke noundef zeroext i1 @_Z8RandBoolv()
          to label %136 unwind label %132

136:                                              ; preds = %134
  br i1 %135, label %.invoke, label %138

.invoke:                                          ; preds = %130, %136
  %137 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11)
          to label %149 unwind label %132

138:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #9
  %139 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z10passphraseB5cxx11) #9
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #9
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull @.str.16, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %140 unwind label %144

140:                                              ; preds = %138
  %141 = trunc i64 %139 to i32
  invoke void @_Z20generateRandomStringjNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, i32 noundef %141, ptr noundef nonnull %13)
          to label %142 unwind label %146

142:                                              ; preds = %140
  %143 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %150

144:                                              ; preds = %138
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %148

146:                                              ; preds = %140
  %147 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #9
  br label %148

148:                                              ; preds = %146, %144
  %.pn = phi { ptr, i32 } [ %147, %146 ], [ %145, %144 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #9
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #9
  br label %177

149:                                              ; preds = %.invoke
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %8, i1 noundef zeroext true)
          to label %151 unwind label %132

150:                                              ; preds = %123, %142
  invoke void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40) %8, i1 noundef zeroext false)
          to label %151 unwind label %132

151:                                              ; preds = %150, %149
  %.12842 = phi i1 [ %.02754, %150 ], [ true, %149 ]
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %152 unwind label %132

152:                                              ; preds = %151
  invoke void @_ZN9ShellyBot14setBrainInputsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(112) %110, ptr noundef nonnull %15)
          to label %153 unwind label %161

153:                                              ; preds = %152
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  %154 = invoke noundef zeroext i1 @_ZN9ShellyBot6updateEv(ptr noundef nonnull align 8 dereferenceable(112) %110)
          to label %155 unwind label %132

155:                                              ; preds = %153
  invoke void @_ZN9ShellyBot19getBrainCharOutputsERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(112) %110, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %156 unwind label %132

156:                                              ; preds = %155
  invoke void @_ZN9ShellyBot18getBrainRawOutputsERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112) %110, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %157 unwind label %132

157:                                              ; preds = %156
  invoke void @_ZNSt6vectorIS_IhSaIhEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %158 unwind label %132

158:                                              ; preds = %157
  invoke void @_ZNSt6vectorIS_IdSaIdEESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %159 unwind label %132

159:                                              ; preds = %158
  %160 = add nuw nsw i32 %.055, 1
  %exitcond.not = icmp eq i32 %160, %switch.select
  br i1 %exitcond.not, label %116, label %118, !llvm.loop !24

161:                                              ; preds = %152
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #9
  br label %177

163:                                              ; preds = %116
  %164 = invoke noundef double @_Z30singleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %172 unwind label %.loopexit

.loopexit:                                        ; preds = %163, %165, %172, %174
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %177

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

165:                                              ; preds = %116
  %166 = invoke noundef double @_Z30doubleShellcodeFitnessFunctionR13BrainTestData(ptr noundef nonnull align 8 dereferenceable(88) %8)
          to label %172 unwind label %.loopexit

167:                                              ; preds = %116
  %168 = 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.17)
          to label %169 unwind label %.loopexit.split-lp

169:                                              ; preds = %167
  %170 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %171 unwind label %.loopexit.split-lp

171:                                              ; preds = %169
  call void @exit(i32 noundef 1) #10
  unreachable

172:                                              ; preds = %165, %163
  %.sroa.6.0 = phi double [ %164, %163 ], [ %166, %165 ]
  %173 = invoke noundef i32 @_ZN9ShellyBot16getBrainGenomeIDEv(ptr noundef nonnull align 8 dereferenceable(112) %110)
          to label %174 unwind label %.loopexit

174:                                              ; preds = %172
  %175 = fcmp oeq double %.sroa.6.0, -1.000000e+00
  %.sroa.9.0 = zext i1 %175 to i8
  store i32 %111, ptr %16, align 8, !tbaa !11
  store i32 %173, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !11
  store double %.sroa.6.0, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !25
  store i8 %.sroa.9.0, ptr %.sroa.9.0..sroa_idx, align 8, !tbaa !13
  invoke void @_Z26thunkerThreadAddEvalResult17botEvaluationData(ptr noundef nonnull byval(%struct.botEvaluationData) align 8 %16)
          to label %176 unwind label %.loopexit

176:                                              ; preds = %174
  call void @_ZN13BrainTestDataD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %178

177:                                              ; preds = %161, %148, %132, %129, %.loopexit.split-lp, %.loopexit, %114
  %.pn32.pn.pn = phi { ptr, i32 } [ %115, %114 ], [ %133, %132 ], [ %162, %161 ], [ %.pn30, %129 ], [ %.pn, %148 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN13BrainTestDataD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %8) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %8) #9
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #9
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %.loopexit.split-lp46

178:                                              ; preds = %176, %._crit_edge
  %179 = invoke i32 @nanosleep(ptr noundef nonnull %2, ptr noundef null)
          to label %34 unwind label %.loopexit45, !llvm.loop !27

.loopexit.split-lp46:                             ; preds = %.loopexit45, %.loopexit.split-lp46.loopexit.split-lp, %.loopexit.split-lp46.loopexit, %177, %42
  %.pn36 = phi { ptr, i32 } [ %43, %42 ], [ %.pn32.pn.pn, %177 ], [ %lpad.loopexit47, %.loopexit45 ], [ %lpad.loopexit50, %.loopexit.split-lp46.loopexit ], [ %lpad.loopexit.split-lp51, %.loopexit.split-lp46.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  call void @_ZNSt5queueIjSt5dequeIjSaIjEEED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %3) #9
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn36
}

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8RandBoolv() local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIbSaIbEE9push_backEb(ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext) local_unnamed_addr #4 align 2

declare void @_ZN9ShellyBot14setBrainInputsENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN9ShellyBot6updateEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3

declare void @_ZN9ShellyBot19getBrainCharOutputsERSt6vectorIhSaIhEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_ZN9ShellyBot18getBrainRawOutputsERSt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

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

declare noundef i32 @_ZN9ShellyBot16getBrainGenomeIDEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #3

declare void @_Z26thunkerThreadAddEvalResult17botEvaluationData(ptr noundef byval(%struct.botEvaluationData) align 8) local_unnamed_addr #3

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

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

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

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

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

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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = { 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 #8 = { nocallback nofree nosync nounwind willreturn memory(inaccessiblemem: write) }
attributes #9 = { nounwind }
attributes #10 = { 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, !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 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTS19FitnessFunctionType", !8, i64 0}
!24 = distinct !{!24, !18}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !8, i64 0}
!27 = distinct !{!27, !18}


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