; LLVM IR from google-deepmind/reverb :: reverb/cc/platform/default/net.ll (ZN8deepmind6reverb8internal19PickUnusedPortOrDieEv)

; 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::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.deepmind::reverb::internal::CheckOpString" = type { ptr }
%"class.deepmind::reverb::internal::LogMessageFatal" = type { %"class.std::__cxx11::basic_ostringstream" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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::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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>

@__dso_handle = external hidden global i8
@_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports = external hidden global %"class.std::unordered_set", align 8
@_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8deepmind6reverb8internal19PickUnusedPortOrDieEv() #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"struct.deepmind::reverb::internal::CheckOpString", align 8
  %6 = alloca %"class.deepmind::reverb::internal::LogMessageFatal", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %10 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %11 = alloca i32, align 4
  %12 = alloca %"struct.deepmind::reverb::internal::CheckOpString", align 8
  %13 = alloca %"class.deepmind::reverb::internal::LogMessageFatal", align 8
  %14 = alloca %"struct.std::pair", align 8
  %15 = load atomic i8, ptr @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports acquire, align 8
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %17, label %22, !prof !5

17:                                               ; preds = %0
  %18 = call i32 @__cxa_guard_acquire(ptr @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #0
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %22

20:                                               ; preds = %17
  call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #0
  %21 = call i32 @__cxa_atexit(ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev, ptr @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr @__dso_handle) #0
  call void @__cxa_guard_release(ptr @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #0
  br label %22

22:                                               ; preds = %20, %17, %0
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #0
  store i8 1, ptr %2, align 1, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #0
  store i32 0, ptr %3, align 4, !tbaa !10
  br label %23

23:                                               ; preds = %105, %22
  br label %24

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #0
  %25 = load i32, ptr %3, align 4, !tbaa !10
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %3, align 4, !tbaa !10
  br label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #0
  %28 = load i32, ptr %3, align 4, !tbaa !10
  %29 = call ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef %28, i32 noundef 1000, ptr noundef @.str)
  %30 = getelementptr inbounds %"struct.deepmind::reverb::internal::CheckOpString", ptr %5, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  br i1 %31, label %33, label %32

32:                                               ; preds = %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #0
  br label %43

33:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 376, ptr %6) #0
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376) %6, ptr noundef @.str.1, i32 noundef 108, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %34 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNO8deepmind6reverb8internal15LogMessageFatal6streamEv(ptr noundef nonnull align 8 dereferenceable(376) %6)
          to label %35 unwind label %38

35:                                               ; preds = %33
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str.2)
          to label %37 unwind label %38

37:                                               ; preds = %35
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %6) #8
  unreachable

38:                                               ; preds = %35, %33
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %7, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %8, align 4
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %6) #8
  unreachable

42:                                               ; No predecessors!
  call void @llvm.lifetime.end.p0(i64 376, ptr %6) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #0
  br label %107

43:                                               ; preds = %32
  %44 = load i32, ptr %3, align 4, !tbaa !10
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %50

46:                                               ; preds = %43
  %47 = call i32 @getpid() #0
  %48 = srem i32 %47, 35536
  %49 = add nsw i32 %48, 30000
  store i32 %49, ptr %4, align 4, !tbaa !10
  br label %59

50:                                               ; preds = %43
  %51 = load i32, ptr %3, align 4, !tbaa !10
  %52 = icmp sle i32 %51, 100
  br i1 %52, label %53, label %57

53:                                               ; preds = %50
  %54 = call i32 @rand() #0
  %55 = srem i32 %54, 35536
  %56 = add nsw i32 %55, 30000
  store i32 %56, ptr %4, align 4, !tbaa !10
  br label %58

57:                                               ; preds = %50
  store i32 0, ptr %4, align 4, !tbaa !10
  br label %58

58:                                               ; preds = %57, %53
  br label %59

59:                                               ; preds = %58, %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #0
  %60 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %61 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %9, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %61, i32 0, i32 0
  store ptr %60, ptr %62, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #0
  %63 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #0
  %64 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %10, i32 0, i32 0
  %65 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %64, i32 0, i32 0
  store ptr %63, ptr %65, align 8
  %66 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #0
  br i1 %66, label %67, label %68

67:                                               ; preds = %59
  store i32 2, ptr %11, align 4
  br label %105, !llvm.loop !12

68:                                               ; preds = %59
  %69 = load i8, ptr %2, align 1, !tbaa !6, !range !14, !noundef !15
  %70 = trunc i8 %69 to i1
  %71 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef %4, i1 noundef zeroext %70)
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 2, ptr %11, align 4
  br label %105, !llvm.loop !12

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #0
  %75 = load i32, ptr %4, align 4, !tbaa !10
  %76 = call ptr @_ZN8deepmind6reverb8internal12Check_GTImplEiiPKc(i32 noundef %75, i32 noundef 0, ptr noundef @.str.3)
  %77 = getelementptr inbounds %"struct.deepmind::reverb::internal::CheckOpString", ptr %12, i32 0, i32 0
  store ptr %76, ptr %77, align 8
  %78 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  br i1 %78, label %80, label %79

79:                                               ; preds = %74
  store i32 7, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  br label %88

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 376, ptr %13) #0
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376) %13, ptr noundef @.str.1, i32 noundef 125, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNO8deepmind6reverb8internal15LogMessageFatal6streamEv(ptr noundef nonnull align 8 dereferenceable(376) %13)
          to label %82 unwind label %83

82:                                               ; preds = %80
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %13) #8
  unreachable

83:                                               ; preds = %80
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %13) #8
  unreachable

87:                                               ; No predecessors!
  call void @llvm.lifetime.end.p0(i64 376, ptr %13) #0
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #0
  br label %107

88:                                               ; preds = %79
  %89 = load i8, ptr %2, align 1, !tbaa !6, !range !14, !noundef !15
  %90 = trunc i8 %89 to i1
  %91 = xor i1 %90, true
  %92 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef %4, i1 noundef zeroext %91)
  br i1 %92, label %98, label %93

93:                                               ; preds = %88
  %94 = load i8, ptr %2, align 1, !tbaa !6, !range !14, !noundef !15
  %95 = trunc i8 %94 to i1
  %96 = xor i1 %95, true
  %97 = zext i1 %96 to i8
  store i8 %97, ptr %2, align 1, !tbaa !6
  store i32 2, ptr %11, align 4
  br label %105, !llvm.loop !12

98:                                               ; preds = %88
  %99 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %100 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 0
  %101 = extractvalue { ptr, i8 } %99, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i8 }, ptr %14, i32 0, i32 1
  %103 = extractvalue { ptr, i8 } %99, 1
  store i8 %103, ptr %102, align 8
  %104 = load i32, ptr %4, align 4, !tbaa !10
  store i32 %104, ptr %1, align 4
  store i32 1, ptr %11, align 4
  br label %105

105:                                              ; preds = %98, %93, %72, %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #0
  %106 = load i32, ptr %11, align 4
  switch i32 %106, label %108 [
    i32 2, label %23
  ]

107:                                              ; preds = %87, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #0
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #0
  br label %110

108:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #0
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #0
  %109 = load i32, ptr %1, align 4
  ret i32 %109

110:                                              ; preds = %107
  %111 = load ptr, ptr %7, align 8
  %112 = load i32, ptr %8, align 4
  %113 = insertvalue { ptr, i32 } poison, ptr %111, 0
  %114 = insertvalue { ptr, i32 } %113, i32 %112, 1
  resume { ptr, i32 } %114
}

; Function Attrs: nounwind
declare i32 @__cxa_guard_acquire(ptr) #0

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

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

; Function Attrs: nounwind
declare void @__cxa_guard_release(ptr) #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef, i32 noundef, ptr noundef) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare i32 @getpid() #7

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef, i1 noundef zeroext) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN8deepmind6reverb8internal12Check_GTImplEiiPKc(i32 noundef, i32 noundef, ptr noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

attributes #0 = { nounwind }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{i8 0, i8 2}
!15 = !{}


; 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::unordered_set" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"struct.deepmind::reverb::internal::CheckOpString" = type { ptr }
%"class.deepmind::reverb::internal::LogMessageFatal" = type { %"class.std::__cxx11::basic_ostringstream" }
%"class.std::__cxx11::basic_ostringstream" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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::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 }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }

@__dso_handle = external hidden global i8
@_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports = external hidden global %"class.std::unordered_set", align 8
@_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports = external hidden global i64, align 8
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [90 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: nofree nounwind
declare i32 @__cxa_atexit(ptr, ptr, ptr) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN8deepmind6reverb8internal19PickUnusedPortOrDieEv() local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.deepmind::reverb::internal::CheckOpString", align 8
  %3 = alloca %"class.deepmind::reverb::internal::LogMessageFatal", align 8
  %4 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %5 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %6 = alloca %"struct.deepmind::reverb::internal::CheckOpString", align 8
  %7 = alloca %"class.deepmind::reverb::internal::LogMessageFatal", align 8
  %8 = load atomic i8, ptr @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports acquire, align 8
  %9 = icmp eq i8 %8, 0
  br i1 %9, label %10, label %14, !prof !5

10:                                               ; preds = %0
  %11 = tail call i32 @__cxa_guard_acquire(ptr nonnull @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #8
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %14, label %12

12:                                               ; preds = %10
  tail call void @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #8
  %13 = tail call i32 @__cxa_atexit(ptr nonnull @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEED2Ev, ptr nonnull @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr nonnull @__dso_handle) #8
  tail call void @__cxa_guard_release(ptr nonnull @_ZGVZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #8
  br label %14

14:                                               ; preds = %12, %10, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %15 = tail call ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef 1, i32 noundef 1000, ptr noundef nonnull @.str)
  store ptr %15, ptr %2, align 8
  %16 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br i1 %16, label %._crit_edge, label %17

17:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %18 = call i32 @getpid() #8
  %19 = srem i32 %18, 35536
  %20 = add nsw i32 %19, 30000
  store i32 %20, ptr %1, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %21 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store ptr %21, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %22 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #8
  store ptr %22, ptr %5, align 8
  %23 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br i1 %23, label %32, label %24, !llvm.loop !10

24:                                               ; preds = %17
  %25 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef nonnull %1, i1 noundef zeroext true)
  br i1 %25, label %26, label %32, !llvm.loop !10

26:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %27 = load i32, ptr %1, align 4, !tbaa !6
  %28 = call ptr @_ZN8deepmind6reverb8internal12Check_GTImplEiiPKc(i32 noundef %27, i32 noundef 0, ptr noundef nonnull @.str.3)
  store ptr %28, ptr %6, align 8
  %29 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %29, label %.loopexit, label %30

30:                                               ; preds = %26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %31 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef nonnull %1, i1 noundef zeroext false)
  br i1 %31, label %.loopexit21, label %32, !llvm.loop !10

32:                                               ; preds = %30, %24, %17
  %.110.peel = phi i1 [ true, %17 ], [ true, %24 ], [ false, %30 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %33 = call ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef 2, i32 noundef 1000, ptr noundef nonnull @.str)
  store ptr %33, ptr %2, align 8
  %34 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br i1 %34, label %._crit_edge, label %.lr.ph.peel.next

._crit_edge:                                      ; preds = %60, %32, %14
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %3) #8
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376) %3, ptr noundef nonnull @.str.1, i32 noundef 108, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNO8deepmind6reverb8internal15LogMessageFatal6streamEv(ptr noundef nonnull align 8 dereferenceable(376) %3)
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull @.str.2)
          to label %37 unwind label %38

37:                                               ; preds = %._crit_edge
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %3) #9
  unreachable

38:                                               ; preds = %._crit_edge
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %3) #9
  unreachable

.lr.ph.peel.next:                                 ; preds = %32, %60
  %40 = phi i32 [ %61, %60 ], [ 2, %32 ]
  %.0919 = phi i1 [ %.110, %60 ], [ %.110.peel, %32 ]
  %.01218 = phi i32 [ %40, %60 ], [ 1, %32 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %41 = icmp ult i32 %.01218, 100
  br i1 %41, label %42, label %46

42:                                               ; preds = %.lr.ph.peel.next
  %43 = call i32 @rand() #8
  %44 = srem i32 %43, 35536
  %45 = add nsw i32 %44, 30000
  br label %46

46:                                               ; preds = %.lr.ph.peel.next, %42
  %storemerge = phi i32 [ %45, %42 ], [ 0, %.lr.ph.peel.next ]
  store i32 %storemerge, ptr %1, align 4, !tbaa !6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %47 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE4findERKi(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr noundef nonnull align 4 dereferenceable(4) %1)
  store ptr %47, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  %48 = call ptr @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports) #8
  store ptr %48, ptr %5, align 8
  %49 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseIiLb0EEES3_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  br i1 %49, label %60, label %50, !llvm.loop !10

50:                                               ; preds = %46
  %51 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef nonnull %1, i1 noundef zeroext %.0919)
  br i1 %51, label %52, label %60, !llvm.loop !10

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %53 = load i32, ptr %1, align 4, !tbaa !6
  %54 = call ptr @_ZN8deepmind6reverb8internal12Check_GTImplEiiPKc(i32 noundef %53, i32 noundef 0, ptr noundef nonnull @.str.3)
  store ptr %54, ptr %6, align 8
  %55 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  br i1 %55, label %.loopexit, label %56

56:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %57 = xor i1 %.0919, true
  %58 = call noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef nonnull %1, i1 noundef zeroext %57)
  br i1 %58, label %.loopexit21, label %60, !llvm.loop !10

.loopexit:                                        ; preds = %52, %26
  call void @llvm.lifetime.start.p0(i64 376, ptr nonnull %7) #8
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376) %7, ptr noundef nonnull @.str.1, i32 noundef 125, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNO8deepmind6reverb8internal15LogMessageFatal6streamEv(ptr noundef nonnull align 8 dereferenceable(376) %7)
  call void @_ZN8deepmind6reverb8internal15LogMessageFatalD2Ev(ptr noundef nonnull align 8 dereferenceable(376) %7) #9
  unreachable

60:                                               ; preds = %56, %50, %46
  %.110 = phi i1 [ %.0919, %46 ], [ %.0919, %50 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %61 = add nuw nsw i32 %40, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  %62 = call ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef %61, i32 noundef 1000, ptr noundef nonnull @.str)
  store ptr %62, ptr %2, align 8
  %63 = call noundef zeroext i1 @_ZNK8deepmind6reverb8internal13CheckOpStringcvbEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  br i1 %63, label %._crit_edge, label %.lr.ph.peel.next, !llvm.loop !12

.loopexit21:                                      ; preds = %56, %30
  %64 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56) @_ZZN8deepmind6reverb8internal19PickUnusedPortOrDieEvE12chosen_ports, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %65 = load i32, ptr %1, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 %65
}

; Function Attrs: nofree nounwind
declare i32 @__cxa_guard_acquire(ptr) local_unnamed_addr #0

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

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

; Function Attrs: nofree nounwind
declare void @__cxa_guard_release(ptr) local_unnamed_addr #0

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN8deepmind6reverb8internal12Check_LEImplEiiPKc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8deepmind6reverb8internal15LogMessageFatalC2EPKciRKNS1_13CheckOpStringE(ptr noundef nonnull align 8 dereferenceable(376), ptr noundef, i32 noundef, ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nounwind
declare i32 @getpid() local_unnamed_addr #7

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN8deepmind6reverb8internal12_GLOBAL__N_115IsPortAvailableEPib(ptr noundef, i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local ptr @_ZN8deepmind6reverb8internal12Check_GTImplEiiPKc(i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE6insertERKi(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

attributes #0 = { nofree nounwind }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress noreturn nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = !{!"branch_weights", i32 1, i32 1048575}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass