; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/zeromq/src/mailbox.ll (ZN3zmq9mailbox_t4recvEPNS_9command_tEi)

; 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.zmq::mailbox_t" = type <{ %"class.zmq::i_mailbox", %"class.zmq::ypipe_t", %"class.zmq::signaler_t", [4 x i8], %"class.zmq::mutex_t", i8, [7 x i8] }>
%"class.zmq::i_mailbox" = type { ptr }
%"class.zmq::ypipe_t" = type { %"class.zmq::ypipe_base_t", %"class.zmq::yqueue_t", ptr, ptr, ptr, %"class.zmq::atomic_ptr_t.0" }
%"class.zmq::ypipe_base_t" = type { ptr }
%"class.zmq::yqueue_t" = type { ptr, i32, ptr, i32, ptr, i32, %"class.zmq::atomic_ptr_t" }
%"class.zmq::atomic_ptr_t" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { ptr }
%"class.zmq::atomic_ptr_t.0" = type { %"struct.std::atomic.1" }
%"struct.std::atomic.1" = type { %"struct.std::__atomic_base.2" }
%"struct.std::__atomic_base.2" = type { ptr }
%"class.zmq::signaler_t" = type { i32, i32, i32 }
%"class.zmq::mutex_t" = type <{ %union.pthread_mutex_t, %union.pthread_mutexattr_t, [4 x i8] }>
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.pthread_mutexattr_t = type { i32 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

declare i32 @fflush(ptr noundef) #3

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3zmq9mailbox_t4recvEPNS_9command_tEi(ptr noundef nonnull align 8 dereferenceable(169) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #4 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %13 = load ptr, ptr %5, align 8
  %14 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 5
  %15 = load i8, ptr %14, align 8, !tbaa !11, !range !26, !noundef !27
  %16 = trunc i8 %15 to i1
  br i1 %16, label %17, label %24

17:                                               ; preds = %3
  %18 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 1
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef %19)
  br i1 %20, label %21, label %22

21:                                               ; preds = %17
  store i32 0, ptr %4, align 4
  br label %107

22:                                               ; preds = %17
  %23 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 5
  store i8 0, ptr %23, align 8, !tbaa !11
  br label %24

24:                                               ; preds = %22, %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %25 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 2
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = call noundef i32 @_ZN3zmq10signaler_t4waitEi(ptr noundef nonnull align 4 dereferenceable(12) %25, i32 noundef %26)
  store i32 %27, ptr %8, align 4, !tbaa !9
  %28 = load i32, ptr %8, align 4, !tbaa !9
  %29 = icmp eq i32 %28, -1
  br i1 %29, label %30, label %58

30:                                               ; preds = %24
  br label %31

31:                                               ; preds = %30
  %32 = call ptr @__errno_location() #8
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 11
  br i1 %34, label %39, label %35

35:                                               ; preds = %31
  %36 = call ptr @__errno_location() #8
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 4
  br label %39

39:                                               ; preds = %35, %31
  %40 = phi i1 [ true, %31 ], [ %38, %35 ]
  %41 = xor i1 %40, true
  %42 = zext i1 %41 to i64
  %43 = call i64 @llvm.expect.i64(i64 %42, i64 0)
  %44 = icmp ne i64 %43, 0
  br i1 %44, label %45, label %55

45:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %46 = call ptr @__errno_location() #8
  %47 = load i32, ptr %46, align 4, !tbaa !9
  %48 = call ptr @strerror(i32 noundef %47) #7
  store ptr %48, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr @stderr, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str.3, ptr noundef %50, ptr noundef @.str.2, i32 noundef 83) #7
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 @fflush(ptr noundef %52)
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef %54)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %55

55:                                               ; preds = %45, %39
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %106

58:                                               ; preds = %24
  %59 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 2
  %60 = call noundef i32 @_ZN3zmq10signaler_t13recv_failableEv(ptr noundef nonnull align 4 dereferenceable(12) %59)
  store i32 %60, ptr %8, align 4, !tbaa !9
  %61 = load i32, ptr %8, align 4, !tbaa !9
  %62 = icmp eq i32 %61, -1
  br i1 %62, label %63, label %85

63:                                               ; preds = %58
  br label %64

64:                                               ; preds = %63
  %65 = call ptr @__errno_location() #8
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 11
  %68 = xor i1 %67, true
  %69 = zext i1 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 0)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %82

72:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %73 = call ptr @__errno_location() #8
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = call ptr @strerror(i32 noundef %74) #7
  store ptr %75, ptr %11, align 8, !tbaa !5
  %76 = load ptr, ptr @stderr, align 8, !tbaa !5
  %77 = load ptr, ptr %11, align 8, !tbaa !5
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef @.str.3, ptr noundef %77, ptr noundef @.str.2, i32 noundef 90) #7
  %79 = load ptr, ptr @stderr, align 8, !tbaa !5
  %80 = call i32 @fflush(ptr noundef %79)
  %81 = load ptr, ptr %11, align 8, !tbaa !5
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef %81)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %82

82:                                               ; preds = %72, %64
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %10, align 4
  br label %106

85:                                               ; preds = %58
  %86 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 5
  store i8 1, ptr %86, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  %87 = getelementptr inbounds %"class.zmq::mailbox_t", ptr %13, i32 0, i32 1
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = call noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96) %87, ptr noundef %88)
  %90 = zext i1 %89 to i8
  store i8 %90, ptr %12, align 1, !tbaa !28
  br label %91

91:                                               ; preds = %85
  %92 = load i8, ptr %12, align 1, !tbaa !28, !range !26, !noundef !27
  %93 = trunc i8 %92 to i1
  %94 = xor i1 %93, true
  %95 = zext i1 %94 to i64
  %96 = call i64 @llvm.expect.i64(i64 %95, i64 0)
  %97 = icmp ne i64 %96, 0
  br i1 %97, label %98, label %103

98:                                               ; preds = %91
  %99 = load ptr, ptr @stderr, align 8, !tbaa !5
  %100 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %99, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 99) #7
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = call i32 @fflush(ptr noundef %101)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.4)
  br label %103

103:                                              ; preds = %98, %91
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  store i32 0, ptr %4, align 4
  store i32 1, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %106

106:                                              ; preds = %105, %84, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %107

107:                                              ; preds = %106, %21
  %108 = load i32, ptr %4, align 4
  ret i32 %108
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) unnamed_addr #5 align 2

declare noundef i32 @_ZN3zmq10signaler_t4waitEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) #2

declare noundef i32 @_ZN3zmq10signaler_t13recv_failableEv(ptr noundef nonnull align 4 dereferenceable(12)) #3

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !25, i64 168}
!12 = !{!"_ZTSN3zmq9mailbox_tE", !13, i64 0, !14, i64 8, !23, i64 104, !24, i64 120, !25, i64 168}
!13 = !{!"_ZTSN3zmq9i_mailboxE"}
!14 = !{!"_ZTSN3zmq7ypipe_tINS_9command_tELi16EEE", !15, i64 0, !16, i64 8, !6, i64 64, !6, i64 72, !6, i64 80, !20, i64 88}
!15 = !{!"_ZTSN3zmq12ypipe_base_tINS_9command_tEEE"}
!16 = !{!"_ZTSN3zmq8yqueue_tINS_9command_tELi16ELm64EEE", !6, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !6, i64 32, !10, i64 40, !17, i64 48}
!17 = !{!"_ZTSN3zmq12atomic_ptr_tINS_8yqueue_tINS_9command_tELi16ELm64EE7chunk_tEEE", !18, i64 0}
!18 = !{!"_ZTSSt6atomicIPN3zmq8yqueue_tINS0_9command_tELi16ELm64EE7chunk_tEE", !19, i64 0}
!19 = !{!"_ZTSSt13__atomic_baseIPN3zmq8yqueue_tINS0_9command_tELi16ELm64EE7chunk_tEE", !6, i64 0}
!20 = !{!"_ZTSN3zmq12atomic_ptr_tINS_9command_tEEE", !21, i64 0}
!21 = !{!"_ZTSSt6atomicIPN3zmq9command_tEE", !22, i64 0}
!22 = !{!"_ZTSSt13__atomic_baseIPN3zmq9command_tEE", !6, i64 0}
!23 = !{!"_ZTSN3zmq10signaler_tE", !10, i64 0, !10, i64 4, !10, i64 8}
!24 = !{!"_ZTSN3zmq7mutex_tE", !7, i64 0, !7, i64 40}
!25 = !{!"bool", !7, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!25, !25, i64 0}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #0

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 -1, 1) i32 @_ZN3zmq9mailbox_t4recvEPNS_9command_tEi(ptr noundef nonnull align 8 dereferenceable(169) %0, ptr noundef %1, i32 noundef %2) unnamed_addr #2 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 168
  %5 = load i8, ptr %4, align 8, !tbaa !5, !range !24, !noundef !25
  %6 = trunc nuw i8 %5 to i1
  br i1 %6, label %7, label %11

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = tail call noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96) %8, ptr noundef %1)
  br i1 %9, label %44, label %10

10:                                               ; preds = %7
  store i8 0, ptr %4, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %10, %3
  %12 = getelementptr inbounds i8, ptr %0, i64 104
  %13 = tail call noundef i32 @_ZN3zmq10signaler_t4waitEi(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %2)
  %14 = icmp eq i32 %13, -1
  br i1 %14, label %15, label %24

15:                                               ; preds = %11
  %16 = tail call ptr @__errno_location() #6
  %17 = load i32, ptr %16, align 4, !tbaa !26
  switch i32 %17, label %18 [
    i32 11, label %44
    i32 4, label %44
  ]

18:                                               ; preds = %15
  %19 = tail call ptr @strerror(i32 noundef %17) #7
  %20 = load ptr, ptr @stderr, align 8, !tbaa !27
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.3, ptr noundef %19, ptr noundef nonnull @.str.2, i32 noundef 83) #8
  %22 = load ptr, ptr @stderr, align 8, !tbaa !27
  %23 = tail call i32 @fflush(ptr noundef %22)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef %19)
  br label %44

24:                                               ; preds = %11
  %25 = tail call noundef i32 @_ZN3zmq10signaler_t13recv_failableEv(ptr noundef nonnull align 4 dereferenceable(12) %12)
  %26 = icmp eq i32 %25, -1
  br i1 %26, label %27, label %36

27:                                               ; preds = %24
  %28 = tail call ptr @__errno_location() #6
  %29 = load i32, ptr %28, align 4, !tbaa !26
  %.not = icmp eq i32 %29, 11
  br i1 %.not, label %44, label %30, !prof !28

30:                                               ; preds = %27
  %31 = tail call ptr @strerror(i32 noundef %29) #7
  %32 = load ptr, ptr @stderr, align 8, !tbaa !27
  %33 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.3, ptr noundef %31, ptr noundef nonnull @.str.2, i32 noundef 90) #8
  %34 = load ptr, ptr @stderr, align 8, !tbaa !27
  %35 = tail call i32 @fflush(ptr noundef %34)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef %31)
  br label %44

36:                                               ; preds = %24
  store i8 1, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %0, i64 8
  %38 = tail call noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96) %37, ptr noundef %1)
  br i1 %38, label %44, label %39, !prof !28

39:                                               ; preds = %36
  %40 = load ptr, ptr @stderr, align 8, !tbaa !27
  %41 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 99) #8
  %42 = load ptr, ptr @stderr, align 8, !tbaa !27
  %43 = tail call i32 @fflush(ptr noundef %42)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.4)
  br label %44

44:                                               ; preds = %15, %15, %18, %30, %27, %39, %36, %7
  %.1 = phi i32 [ 0, %7 ], [ -1, %18 ], [ -1, %15 ], [ -1, %30 ], [ -1, %27 ], [ 0, %39 ], [ 0, %36 ], [ -1, %15 ]
  ret i32 %.1
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3zmq7ypipe_tINS_9command_tELi16EE4readEPS1_(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef) unnamed_addr #3 align 2

declare noundef i32 @_ZN3zmq10signaler_t4waitEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

; Function Attrs: nounwind
declare ptr @strerror(i32 noundef) local_unnamed_addr #5

declare noundef i32 @_ZN3zmq10signaler_t13recv_failableEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress 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 nofree nosync nounwind willreturn memory(none) "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 = { 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 = { nounwind willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { cold 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, !23, i64 168}
!6 = !{!"_ZTSN3zmq9mailbox_tE", !7, i64 0, !8, i64 8, !21, i64 104, !22, i64 120, !23, i64 168}
!7 = !{!"_ZTSN3zmq9i_mailboxE"}
!8 = !{!"_ZTSN3zmq7ypipe_tINS_9command_tELi16EEE", !9, i64 0, !10, i64 8, !11, i64 64, !11, i64 72, !11, i64 80, !18, i64 88}
!9 = !{!"_ZTSN3zmq12ypipe_base_tINS_9command_tEEE"}
!10 = !{!"_ZTSN3zmq8yqueue_tINS_9command_tELi16ELm64EEE", !11, i64 0, !14, i64 8, !11, i64 16, !14, i64 24, !11, i64 32, !14, i64 40, !15, i64 48}
!11 = !{!"any pointer", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"int", !12, i64 0}
!15 = !{!"_ZTSN3zmq12atomic_ptr_tINS_8yqueue_tINS_9command_tELi16ELm64EE7chunk_tEEE", !16, i64 0}
!16 = !{!"_ZTSSt6atomicIPN3zmq8yqueue_tINS0_9command_tELi16ELm64EE7chunk_tEE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIPN3zmq8yqueue_tINS0_9command_tELi16ELm64EE7chunk_tEE", !11, i64 0}
!18 = !{!"_ZTSN3zmq12atomic_ptr_tINS_9command_tEEE", !19, i64 0}
!19 = !{!"_ZTSSt6atomicIPN3zmq9command_tEE", !20, i64 0}
!20 = !{!"_ZTSSt13__atomic_baseIPN3zmq9command_tEE", !11, i64 0}
!21 = !{!"_ZTSN3zmq10signaler_tE", !14, i64 0, !14, i64 4, !14, i64 8}
!22 = !{!"_ZTSN3zmq7mutex_tE", !12, i64 0, !12, i64 40}
!23 = !{!"bool", !12, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!14, !14, i64 0}
!27 = !{!11, !11, i64 0}
!28 = !{!"branch_weights", !"expected", i32 2000, i32 1}


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