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

; 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::msg_t" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { ptr, [34 x i8], i8, i8, [16 x i8], i32 }
%struct.anon.1 = type { ptr, ptr, [26 x i8], i8, i8, [16 x i8], i32 }
%"struct.zmq::msg_t::content_t" = type { ptr, i64, ptr, ptr, %"class.zmq::atomic_counter_t" }
%"class.zmq::atomic_counter_t" = type { %"struct.std::atomic", [4 x i8] }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%struct.anon.2 = type { ptr, ptr, [26 x i8], i8, i8, [16 x i8], 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 [107 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1

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

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

declare i32 @fflush(ptr noundef) #2

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3zmq5msg_t5closeEv(ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq5msg_t7rm_refsEi(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1) #3 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %6 = load ptr, ptr %4, align 8
  br label %7

7:                                                ; preds = %2
  %8 = load i32, ptr %5, align 4, !tbaa !9
  %9 = icmp sge i32 %8, 0
  %10 = xor i1 %9, true
  %11 = zext i1 %10 to i64
  %12 = call i64 @llvm.expect.i64(i64 %11, i64 0)
  %13 = icmp ne i64 %12, 0
  br i1 %13, label %14, label %19

14:                                               ; preds = %7
  %15 = load ptr, ptr @stderr, align 8, !tbaa !5
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %15, ptr noundef @.str, ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 509) #6
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = call i32 @fflush(ptr noundef %17)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.10)
  br label %19

19:                                               ; preds = %14, %7
  br label %20

20:                                               ; preds = %19
  br label %21

21:                                               ; preds = %20
  %22 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %23 = getelementptr inbounds %struct.anon, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !11
  %25 = icmp eq ptr %24, null
  %26 = xor i1 %25, true
  %27 = zext i1 %26 to i64
  %28 = call i64 @llvm.expect.i64(i64 %27, i64 0)
  %29 = icmp ne i64 %28, 0
  br i1 %29, label %30, label %35

30:                                               ; preds = %21
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str, ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 512) #6
  %33 = load ptr, ptr @stderr, align 8, !tbaa !5
  %34 = call i32 @fflush(ptr noundef %33)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.9)
  br label %35

35:                                               ; preds = %30, %21
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i1 true, ptr %3, align 1
  br label %139

40:                                               ; preds = %36
  %41 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon, ptr %41, i32 0, i32 2
  %43 = load i8, ptr %42, align 2, !tbaa !11
  %44 = zext i8 %43 to i32
  %45 = icmp ne i32 %44, 105
  br i1 %45, label %46, label %52

46:                                               ; preds = %40
  %47 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %48 = getelementptr inbounds %struct.anon, ptr %47, i32 0, i32 2
  %49 = load i8, ptr %48, align 2, !tbaa !11
  %50 = zext i8 %49 to i32
  %51 = icmp ne i32 %50, 102
  br i1 %51, label %59, label %52

52:                                               ; preds = %46, %40
  %53 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %54 = getelementptr inbounds %struct.anon, ptr %53, i32 0, i32 3
  %55 = load i8, ptr %54, align 1, !tbaa !11
  %56 = zext i8 %55 to i32
  %57 = and i32 %56, 128
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %61, label %59

59:                                               ; preds = %52, %46
  %60 = call noundef i32 @_ZN3zmq5msg_t5closeEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
  store i1 false, ptr %3, align 1
  br label %139

61:                                               ; preds = %52
  %62 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %63 = getelementptr inbounds %struct.anon, ptr %62, i32 0, i32 2
  %64 = load i8, ptr %63, align 2, !tbaa !11
  %65 = zext i8 %64 to i32
  %66 = icmp eq i32 %65, 102
  br i1 %66, label %67, label %105

67:                                               ; preds = %61
  %68 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %69 = getelementptr inbounds %struct.anon.1, ptr %68, i32 0, i32 1
  %70 = load ptr, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %70, i32 0, i32 4
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = call noundef zeroext i1 @_ZN3zmq16atomic_counter_t3subEj(ptr noundef nonnull align 8 dereferenceable(4) %71, i32 noundef %72)
  br i1 %73, label %105, label %74

74:                                               ; preds = %67
  %75 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %76 = getelementptr inbounds %struct.anon.1, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !11
  %78 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %77, i32 0, i32 4
  %79 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %80 = getelementptr inbounds %struct.anon.1, ptr %79, i32 0, i32 1
  %81 = load ptr, ptr %80, align 8, !tbaa !11
  %82 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  %84 = icmp ne ptr %83, null
  br i1 %84, label %85, label %101

85:                                               ; preds = %74
  %86 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %87 = getelementptr inbounds %struct.anon.1, ptr %86, i32 0, i32 1
  %88 = load ptr, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !12
  %91 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %92 = getelementptr inbounds %struct.anon.1, ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !11
  %94 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %93, i32 0, i32 0
  %95 = load ptr, ptr %94, align 8, !tbaa !18
  %96 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %97 = getelementptr inbounds %struct.anon.1, ptr %96, i32 0, i32 1
  %98 = load ptr, ptr %97, align 8, !tbaa !11
  %99 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !19
  call void %90(ptr noundef %95, ptr noundef %100)
  br label %101

101:                                              ; preds = %85, %74
  %102 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %103 = getelementptr inbounds %struct.anon.1, ptr %102, i32 0, i32 1
  %104 = load ptr, ptr %103, align 8, !tbaa !11
  call void @free(ptr noundef %104) #6
  store i1 false, ptr %3, align 1
  br label %139

105:                                              ; preds = %67, %61
  %106 = call noundef zeroext i1 @_ZNK3zmq5msg_t8is_zcmsgEv(ptr noundef nonnull align 8 dereferenceable(64) %6)
  br i1 %106, label %107, label %138

107:                                              ; preds = %105
  %108 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %109 = getelementptr inbounds %struct.anon.2, ptr %108, i32 0, i32 1
  %110 = load ptr, ptr %109, align 8, !tbaa !11
  %111 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %110, i32 0, i32 4
  %112 = load i32, ptr %5, align 4, !tbaa !9
  %113 = call noundef zeroext i1 @_ZN3zmq16atomic_counter_t3subEj(ptr noundef nonnull align 8 dereferenceable(4) %111, i32 noundef %112)
  br i1 %113, label %138, label %114

114:                                              ; preds = %107
  %115 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %116 = getelementptr inbounds %struct.anon.2, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !11
  %118 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %117, i32 0, i32 2
  %119 = load ptr, ptr %118, align 8, !tbaa !12
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %137

121:                                              ; preds = %114
  %122 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %123 = getelementptr inbounds %struct.anon.2, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !11
  %125 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %124, i32 0, i32 2
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %127 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %128 = getelementptr inbounds %struct.anon.2, ptr %127, i32 0, i32 1
  %129 = load ptr, ptr %128, align 8, !tbaa !11
  %130 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %129, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8, !tbaa !18
  %132 = getelementptr inbounds %"class.zmq::msg_t", ptr %6, i32 0, i32 0
  %133 = getelementptr inbounds %struct.anon.2, ptr %132, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !11
  %135 = getelementptr inbounds %"struct.zmq::msg_t::content_t", ptr %134, i32 0, i32 3
  %136 = load ptr, ptr %135, align 8, !tbaa !19
  call void %126(ptr noundef %131, ptr noundef %136)
  br label %137

137:                                              ; preds = %121, %114
  store i1 false, ptr %3, align 1
  br label %139

138:                                              ; preds = %107, %105
  store i1 true, ptr %3, align 1
  br label %139

139:                                              ; preds = %138, %137, %101, %59, %39
  %140 = load i1, ptr %3, align 1
  ret i1 %140
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #1 = { 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 #2 = { "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 = { 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 = { 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 #5 = { 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 #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !6, i64 16}
!13 = !{!"_ZTSN3zmq5msg_t9content_tE", !6, i64 0, !14, i64 8, !6, i64 16, !6, i64 24, !15, i64 32}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSN3zmq16atomic_counter_tE", !16, i64 0}
!16 = !{!"_ZTSSt6atomicIjE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!18 = !{!13, !6, i64 0}
!19 = !{!13, !6, i64 24}


; 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 [107 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 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
declare dso_local noundef i32 @_ZN3zmq5msg_t5closeEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq5msg_t7rm_refsEi(ptr noundef nonnull align 8 dereferenceable(64) %0, i32 noundef %1) local_unnamed_addr #2 align 2 {
  %3 = icmp slt i32 %1, 0
  br i1 %3, label %4, label %9, !prof !5

4:                                                ; preds = %2
  %5 = load ptr, ptr @stderr, align 8, !tbaa !6
  %6 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %5, ptr noundef nonnull @.str, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.2, i32 noundef 509) #6
  %7 = load ptr, ptr @stderr, align 8, !tbaa !6
  %8 = tail call i32 @fflush(ptr noundef %7)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.10)
  br label %9

9:                                                ; preds = %4, %2
  %10 = load ptr, ptr %0, align 8, !tbaa !10
  %.not = icmp eq ptr %10, null
  br i1 %.not, label %16, label %11, !prof !11

11:                                               ; preds = %9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !6
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 512) #6
  %14 = load ptr, ptr @stderr, align 8, !tbaa !6
  %15 = tail call i32 @fflush(ptr noundef %14)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.9)
  br label %16

16:                                               ; preds = %9, %11
  %.not9 = icmp eq i32 %1, 0
  br i1 %.not9, label %57, label %17

17:                                               ; preds = %16
  %18 = getelementptr inbounds i8, ptr %0, i64 42
  %19 = load i8, ptr %18, align 2, !tbaa !10
  switch i8 %19, label %23 [
    i8 105, label %20
    i8 102, label %20
  ]

20:                                               ; preds = %17, %17
  %21 = getelementptr inbounds i8, ptr %0, i64 43
  %22 = load i8, ptr %21, align 1, !tbaa !10
  %.not12 = icmp sgt i8 %22, -1
  br i1 %.not12, label %23, label %25

23:                                               ; preds = %17, %20
  %24 = tail call noundef i32 @_ZN3zmq5msg_t5closeEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  br label %57

25:                                               ; preds = %20
  %26 = icmp eq i8 %19, 102
  br i1 %26, label %27, label %42

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = load ptr, ptr %28, align 8, !tbaa !10
  %30 = getelementptr inbounds i8, ptr %29, i64 32
  %31 = tail call noundef zeroext i1 @_ZN3zmq16atomic_counter_t3subEj(ptr noundef nonnull align 8 dereferenceable(4) %30, i32 noundef %1)
  br i1 %31, label %42, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %28, align 8, !tbaa !10
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %.not13 = icmp eq ptr %35, null
  br i1 %.not13, label %40, label %36

36:                                               ; preds = %32
  %37 = load ptr, ptr %33, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %33, i64 24
  %39 = load ptr, ptr %38, align 8, !tbaa !20
  tail call void %35(ptr noundef %37, ptr noundef %39)
  %.pre = load ptr, ptr %28, align 8, !tbaa !10
  br label %40

40:                                               ; preds = %36, %32
  %41 = phi ptr [ %.pre, %36 ], [ %33, %32 ]
  tail call void @free(ptr noundef %41) #7
  br label %57

42:                                               ; preds = %27, %25
  %43 = tail call noundef zeroext i1 @_ZNK3zmq5msg_t8is_zcmsgEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  br i1 %43, label %44, label %57

44:                                               ; preds = %42
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !10
  %47 = getelementptr inbounds i8, ptr %46, i64 32
  %48 = tail call noundef zeroext i1 @_ZN3zmq16atomic_counter_t3subEj(ptr noundef nonnull align 8 dereferenceable(4) %47, i32 noundef %1)
  br i1 %48, label %57, label %49

49:                                               ; preds = %44
  %50 = load ptr, ptr %45, align 8, !tbaa !10
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %52 = load ptr, ptr %51, align 8, !tbaa !12
  %.not14 = icmp eq ptr %52, null
  br i1 %.not14, label %57, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr %50, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %50, i64 24
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  tail call void %52(ptr noundef %54, ptr noundef %56)
  br label %57

57:                                               ; preds = %42, %44, %49, %53, %16, %40, %23
  %.0 = phi i1 [ false, %23 ], [ false, %40 ], [ true, %16 ], [ false, %53 ], [ false, %49 ], [ true, %44 ], [ true, %42 ]
  ret i1 %.0
}

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 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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress 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 #6 = { cold nounwind }
attributes #7 = { 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", !"expected", i32 1, i32 2000}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!12 = !{!13, !7, i64 16}
!13 = !{!"_ZTSN3zmq5msg_t9content_tE", !7, i64 0, !14, i64 8, !7, i64 16, !7, i64 24, !15, i64 32}
!14 = !{!"long", !8, i64 0}
!15 = !{!"_ZTSN3zmq16atomic_counter_tE", !16, i64 0}
!16 = !{!"_ZTSSt6atomicIjE", !17, i64 0}
!17 = !{!"_ZTSSt13__atomic_baseIjE", !18, i64 0}
!18 = !{!"int", !8, i64 0}
!19 = !{!13, !7, i64 0}
!20 = !{!13, !7, i64 24}


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