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

; 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"

%struct.match_result_t = type { i64, i64, i64, i64, %struct.node_t, %struct.node_t, %struct.node_t }
%struct.node_t = type { ptr }
%"class.zmq::radix_tree_t" = type { %struct.node_t, i64 }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [114 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #1 align 2

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

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

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

declare i32 @fflush(ptr noundef) #5

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local ptr @_Z9make_nodemmm(i64 noundef, i64 noundef, i64 noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq12radix_tree_t3addEPKhm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i64 noundef %2) #1 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca %struct.match_result_t, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.node_t, align 8
  %13 = alloca %struct.node_t, align 8
  %14 = alloca %struct.node_t, align 8
  %15 = alloca %struct.node_t, align 8
  %16 = alloca %struct.node_t, align 8
  %17 = alloca i32, align 4
  %18 = alloca %struct.node_t, align 8
  %19 = alloca %struct.node_t, align 8
  %20 = alloca %struct.node_t, align 8
  %21 = alloca %struct.node_t, align 8
  %22 = alloca %struct.node_t, align 8
  %23 = alloca %struct.node_t, align 8
  %24 = alloca %struct.node_t, align 8
  %25 = alloca %struct.node_t, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i64 %2, ptr %7, align 8, !tbaa !9
  %26 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #8
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZNK3zmq12radix_tree_t5matchEPKhmb(ptr dead_on_unwind writable sret(%struct.match_result_t) align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef %27, i64 noundef %28, i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %29 = getelementptr inbounds %struct.match_result_t, ptr %8, i32 0, i32 0
  %30 = load i64, ptr %29, align 8, !tbaa !11
  store i64 %30, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  %31 = getelementptr inbounds %struct.match_result_t, ptr %8, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !14
  store i64 %32, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %33 = getelementptr inbounds %struct.match_result_t, ptr %8, i32 0, i32 2
  %34 = load i64, ptr %33, align 8, !tbaa !15
  store i64 %34, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %35 = getelementptr inbounds %struct.match_result_t, ptr %8, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %35, i64 8, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %36 = getelementptr inbounds %struct.match_result_t, ptr %8, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %36, i64 8, i1 false), !tbaa.struct !16
  %37 = load i64, ptr %9, align 8, !tbaa !9
  %38 = load i64, ptr %7, align 8, !tbaa !9
  %39 = icmp ne i64 %37, %38
  br i1 %39, label %40, label %134

40:                                               ; preds = %3
  %41 = load i64, ptr %9, align 8, !tbaa !9
  %42 = icmp eq i64 %41, 0
  br i1 %42, label %48, label %43

43:                                               ; preds = %40
  %44 = load i64, ptr %10, align 8, !tbaa !9
  %45 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %46 = zext i32 %45 to i64
  %47 = icmp eq i64 %44, %46
  br i1 %47, label %48, label %93

48:                                               ; preds = %43, %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %49 = load i64, ptr %7, align 8, !tbaa !9
  %50 = load i64, ptr %9, align 8, !tbaa !9
  %51 = sub i64 %49, %50
  %52 = call ptr @_Z9make_nodemmm(i64 noundef 1, i64 noundef %51, i64 noundef 0)
  %53 = getelementptr inbounds %struct.node_t, ptr %14, i32 0, i32 0
  store ptr %52, ptr %53, align 8
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %54, i64 %55
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef %56)
  %57 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %58 = zext i32 %57 to i64
  %59 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %60 = add i32 %59, 1
  %61 = zext i32 %60 to i64
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %58, i64 noundef %61)
  %62 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %63 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %64 = getelementptr inbounds i8, ptr %63, i64 -1
  %65 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %66 = sub i32 %65, 1
  %67 = zext i32 %66 to i64
  %68 = mul i64 %67, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %62, ptr align 1 %64, i64 %68, i1 false)
  %69 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %70 = sub i32 %69, 1
  %71 = zext i32 %70 to i64
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i64, ptr %9, align 8, !tbaa !9
  %74 = getelementptr inbounds i8, ptr %72, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %14, i64 8, i1 false), !tbaa.struct !16
  %76 = getelementptr inbounds %struct.node_t, ptr %15, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %71, i8 noundef zeroext %75, ptr %77)
  %78 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %85

80:                                               ; preds = %48
  %81 = getelementptr inbounds %struct.node_t, ptr %12, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = getelementptr inbounds %"class.zmq::radix_tree_t", ptr %26, i32 0, i32 0
  %84 = getelementptr inbounds %struct.node_t, ptr %83, i32 0, i32 0
  store ptr %82, ptr %84, align 8, !tbaa !19
  br label %89

85:                                               ; preds = %48
  %86 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !16
  %87 = getelementptr inbounds %struct.node_t, ptr %16, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %86, ptr %88)
  br label %89

89:                                               ; preds = %85, %80
  %90 = getelementptr inbounds %"class.zmq::radix_tree_t", ptr %26, i32 0, i32 1
  %91 = load i64, ptr %90, align 8, !tbaa !21
  %92 = add i64 %91, 1
  store i64 %92, ptr %90, align 8, !tbaa !21
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %208

93:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %94 = load i64, ptr %7, align 8, !tbaa !9
  %95 = load i64, ptr %9, align 8, !tbaa !9
  %96 = sub i64 %94, %95
  %97 = call ptr @_Z9make_nodemmm(i64 noundef 1, i64 noundef %96, i64 noundef 0)
  %98 = getelementptr inbounds %struct.node_t, ptr %18, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  %99 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %100 = zext i32 %99 to i64
  %101 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %102 = zext i32 %101 to i64
  %103 = load i64, ptr %10, align 8, !tbaa !9
  %104 = sub i64 %102, %103
  %105 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %106 = zext i32 %105 to i64
  %107 = call ptr @_Z9make_nodemmm(i64 noundef %100, i64 noundef %104, i64 noundef %106)
  %108 = getelementptr inbounds %struct.node_t, ptr %19, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = load i64, ptr %9, align 8, !tbaa !9
  %111 = getelementptr inbounds i8, ptr %109, i64 %110
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef %111)
  %112 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %113 = load i64, ptr %10, align 8, !tbaa !9
  %114 = getelementptr inbounds i8, ptr %112, i64 %113
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %114)
  %115 = call noundef ptr @_ZN6node_t11first_bytesEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @_ZN6node_t15set_first_bytesEPKh(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %115)
  %116 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @_ZN6node_t17set_node_pointersEPKh(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef %116)
  %117 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %117, i64 noundef 2)
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 0)
  %118 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
  %119 = getelementptr inbounds i8, ptr %118, i64 0
  %120 = load i8, ptr %119, align 1, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %18, i64 8, i1 false), !tbaa.struct !16
  %121 = getelementptr inbounds %struct.node_t, ptr %20, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 0, i8 noundef zeroext %120, ptr %122)
  %123 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %124 = getelementptr inbounds i8, ptr %123, i64 0
  %125 = load i8, ptr %124, align 1, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %19, i64 8, i1 false), !tbaa.struct !16
  %126 = getelementptr inbounds %struct.node_t, ptr %21, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 1, i8 noundef zeroext %125, ptr %127)
  %128 = getelementptr inbounds %"class.zmq::radix_tree_t", ptr %26, i32 0, i32 1
  %129 = load i64, ptr %128, align 8, !tbaa !21
  %130 = add i64 %129, 1
  store i64 %130, ptr %128, align 8, !tbaa !21
  %131 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !16
  %132 = getelementptr inbounds %struct.node_t, ptr %22, i32 0, i32 0
  %133 = load ptr, ptr %132, align 8
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %131, ptr %133)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %208

134:                                              ; preds = %3
  %135 = load i64, ptr %10, align 8, !tbaa !9
  %136 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %137 = zext i32 %136 to i64
  %138 = icmp ne i64 %135, %137
  br i1 %138, label %139, label %167

139:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  %140 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %141 = zext i32 %140 to i64
  %142 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %143 = zext i32 %142 to i64
  %144 = load i64, ptr %10, align 8, !tbaa !9
  %145 = sub i64 %143, %144
  %146 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %147 = zext i32 %146 to i64
  %148 = call ptr @_Z9make_nodemmm(i64 noundef %141, i64 noundef %145, i64 noundef %147)
  %149 = getelementptr inbounds %struct.node_t, ptr %23, i32 0, i32 0
  store ptr %148, ptr %149, align 8
  %150 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %151 = load i64, ptr %10, align 8, !tbaa !9
  %152 = getelementptr inbounds i8, ptr %150, i64 %151
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %152)
  %153 = call noundef ptr @_ZN6node_t11first_bytesEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @_ZN6node_t15set_first_bytesEPKh(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %153)
  %154 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  call void @_ZN6node_t17set_node_pointersEPKh(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %154)
  %155 = load i64, ptr %10, align 8, !tbaa !9
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef %155, i64 noundef 1)
  %156 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
  %157 = getelementptr inbounds i8, ptr %156, i64 0
  %158 = load i8, ptr %157, align 1, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %23, i64 8, i1 false), !tbaa.struct !16
  %159 = getelementptr inbounds %struct.node_t, ptr %24, i32 0, i32 0
  %160 = load ptr, ptr %159, align 8
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %12, i64 noundef 0, i8 noundef zeroext %158, ptr %160)
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef 1)
  %161 = getelementptr inbounds %"class.zmq::radix_tree_t", ptr %26, i32 0, i32 1
  %162 = load i64, ptr %161, align 8, !tbaa !21
  %163 = add i64 %162, 1
  store i64 %163, ptr %161, align 8, !tbaa !21
  %164 = load i64, ptr %11, align 8, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %12, i64 8, i1 false), !tbaa.struct !16
  %165 = getelementptr inbounds %struct.node_t, ptr %25, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %13, i64 noundef %164, ptr %166)
  store i1 true, ptr %4, align 1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %208

167:                                              ; preds = %134
  br label %168

168:                                              ; preds = %167
  %169 = load i64, ptr %9, align 8, !tbaa !9
  %170 = load i64, ptr %7, align 8, !tbaa !9
  %171 = icmp eq i64 %169, %170
  %172 = xor i1 %171, true
  %173 = zext i1 %172 to i64
  %174 = call i64 @llvm.expect.i64(i64 %173, i64 0)
  %175 = icmp ne i64 %174, 0
  br i1 %175, label %176, label %181

176:                                              ; preds = %168
  %177 = load ptr, ptr @stderr, align 8, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str, ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 401) #8
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = call i32 @fflush(ptr noundef %179)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.4)
  br label %181

181:                                              ; preds = %176, %168
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  br label %184

184:                                              ; preds = %183
  %185 = load i64, ptr %10, align 8, !tbaa !9
  %186 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %187 = zext i32 %186 to i64
  %188 = icmp eq i64 %185, %187
  %189 = xor i1 %188, true
  %190 = zext i1 %189 to i64
  %191 = call i64 @llvm.expect.i64(i64 %190, i64 0)
  %192 = icmp ne i64 %191, 0
  br i1 %192, label %193, label %198

193:                                              ; preds = %184
  %194 = load ptr, ptr @stderr, align 8, !tbaa !5
  %195 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %194, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 402) #8
  %196 = load ptr, ptr @stderr, align 8, !tbaa !5
  %197 = call i32 @fflush(ptr noundef %196)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.5)
  br label %198

198:                                              ; preds = %193, %184
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  %201 = getelementptr inbounds %"class.zmq::radix_tree_t", ptr %26, i32 0, i32 1
  %202 = load i64, ptr %201, align 8, !tbaa !21
  %203 = add i64 %202, 1
  store i64 %203, ptr %201, align 8, !tbaa !21
  %204 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %205 = add i32 %204, 1
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %205)
  %206 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %207 = icmp eq i32 %206, 1
  store i1 %207, ptr %4, align 1
  store i32 1, ptr %17, align 4
  br label %208

208:                                              ; preds = %200, %139, %93, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #8
  %209 = load i1, ptr %4, align 1
  ret i1 %209
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3zmq12radix_tree_t5matchEPKhmb(ptr dead_on_unwind noalias writable sret(%struct.match_result_t) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i1 noundef zeroext) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i8 noundef zeroext, ptr) #7 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr) #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

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

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #4 = { 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 #5 = { "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 = { 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 #8 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS14match_result_t", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!13 = !{!"_ZTS6node_t", !6, i64 0}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !10, i64 16}
!16 = !{i64 0, i64 8, !5}
!17 = !{!7, !7, i64 0}
!18 = !{!13, !6, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSN3zmq12radix_tree_tE", !13, i64 0, !10, i64 8}
!21 = !{!20, !10, i64 8}


; 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"

%struct.match_result_t = type { i64, i64, i64, i64, %struct.node_t, %struct.node_t, %struct.node_t }
%struct.node_t = type { ptr }

@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 [114 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [54 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) local_unnamed_addr #3

; 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 ptr @_Z9make_nodemmm(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq12radix_tree_t3addEPKhm(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i64 noundef %2) local_unnamed_addr #0 align 2 {
  %4 = alloca %struct.match_result_t, align 8
  %5 = alloca %struct.node_t, align 8
  %6 = alloca %struct.node_t, align 8
  %7 = alloca %struct.node_t, align 8
  %8 = alloca %struct.node_t, align 8
  %9 = alloca %struct.node_t, align 8
  %10 = alloca %struct.node_t, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #7
  call void @_ZNK3zmq12radix_tree_t5matchEPKhmb(ptr dead_on_unwind nonnull writable sret(%struct.match_result_t) align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %0, ptr noundef %1, i64 noundef %2, i1 noundef zeroext false)
  %11 = load i64, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %4, i64 8
  %13 = load i64, ptr %12, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %4, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %16 = getelementptr inbounds i8, ptr %4, i64 32
  %17 = load i64, ptr %16, align 8, !tbaa !14
  store i64 %17, ptr %5, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %18 = getelementptr inbounds i8, ptr %4, i64 40
  %19 = load i64, ptr %18, align 8, !tbaa !14
  store i64 %19, ptr %6, align 8, !tbaa !14
  %.not = icmp eq i64 %11, %2
  br i1 %.not, label %78, label %20

20:                                               ; preds = %3
  %21 = icmp eq i64 %11, 0
  br i1 %21, label %26, label %22

22:                                               ; preds = %20
  %23 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %24 = zext i32 %23 to i64
  %25 = icmp eq i64 %13, %24
  br i1 %25, label %26, label %55

26:                                               ; preds = %22, %20
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %27 = sub i64 %2, %11
  %28 = call ptr @_Z9make_nodemmm(i64 noundef 1, i64 noundef %27, i64 noundef 0)
  store ptr %28, ptr %7, align 8
  %29 = getelementptr inbounds i8, ptr %1, i64 %11
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %29)
  %30 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %31 = zext i32 %30 to i64
  %32 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %33 = add i32 %32, 1
  %34 = zext i32 %33 to i64
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %31, i64 noundef %34)
  %35 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %36 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %37 = getelementptr inbounds i8, ptr %36, i64 -1
  %38 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %39 = add i32 %38, -1
  %40 = zext i32 %39 to i64
  %41 = shl nuw nsw i64 %40, 3
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %35, ptr nonnull align 1 %37, i64 %41, i1 false)
  %42 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %43 = add i32 %42, -1
  %44 = zext i32 %43 to i64
  %45 = load i8, ptr %29, align 1, !tbaa !15
  %.sroa.06.0.copyload = load ptr, ptr %7, align 8, !tbaa !14
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %44, i8 noundef zeroext %45, ptr %.sroa.06.0.copyload)
  %46 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %47 = icmp eq i32 %46, 0
  %48 = load ptr, ptr %5, align 8, !tbaa !14
  br i1 %47, label %49, label %50

49:                                               ; preds = %26
  store ptr %48, ptr %0, align 8, !tbaa !16
  br label %51

50:                                               ; preds = %26
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %15, ptr %48)
  br label %51

51:                                               ; preds = %50, %49
  %52 = getelementptr inbounds i8, ptr %0, i64 8
  %53 = load i64, ptr %52, align 8, !tbaa !18
  %54 = add i64 %53, 1
  store i64 %54, ptr %52, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %115

55:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %56 = sub i64 %2, %11
  %57 = call ptr @_Z9make_nodemmm(i64 noundef 1, i64 noundef %56, i64 noundef 0)
  store ptr %57, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %58 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %59 = zext i32 %58 to i64
  %60 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %61 = zext i32 %60 to i64
  %62 = sub i64 %61, %13
  %63 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %64 = zext i32 %63 to i64
  %65 = call ptr @_Z9make_nodemmm(i64 noundef %59, i64 noundef %62, i64 noundef %64)
  store ptr %65, ptr %9, align 8
  %66 = getelementptr inbounds i8, ptr %1, i64 %11
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull %66)
  %67 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %68 = getelementptr inbounds i8, ptr %67, i64 %13
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %68)
  %69 = call noundef ptr @_ZN6node_t11first_bytesEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN6node_t15set_first_bytesEPKh(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %69)
  %70 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN6node_t17set_node_pointersEPKh(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %70)
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %13, i64 noundef 2)
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 0)
  %71 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %72 = load i8, ptr %71, align 1, !tbaa !15
  %.sroa.04.0.copyload = load ptr, ptr %8, align 8, !tbaa !14
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 0, i8 noundef zeroext %72, ptr %.sroa.04.0.copyload)
  %73 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
  %74 = load i8, ptr %73, align 1, !tbaa !15
  %.sroa.03.0.copyload = load ptr, ptr %9, align 8, !tbaa !14
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 1, i8 noundef zeroext %74, ptr %.sroa.03.0.copyload)
  %75 = getelementptr inbounds i8, ptr %0, i64 8
  %76 = load i64, ptr %75, align 8, !tbaa !18
  %77 = add i64 %76, 1
  store i64 %77, ptr %75, align 8, !tbaa !18
  %.sroa.02.0.copyload = load ptr, ptr %5, align 8, !tbaa !14
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %15, ptr %.sroa.02.0.copyload)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  br label %115

78:                                               ; preds = %3
  %79 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %80 = zext i32 %79 to i64
  %.not41 = icmp eq i64 %13, %80
  br i1 %.not41, label %99, label %81

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %82 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %83 = zext i32 %82 to i64
  %84 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %85 = zext i32 %84 to i64
  %86 = sub i64 %85, %13
  %87 = call noundef i32 @_ZN6node_t9edgecountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %88 = zext i32 %87 to i64
  %89 = call ptr @_Z9make_nodemmm(i64 noundef %83, i64 noundef %86, i64 noundef %88)
  store ptr %89, ptr %10, align 8
  %90 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %91 = getelementptr inbounds i8, ptr %90, i64 %13
  call void @_ZN6node_t10set_prefixEPKh(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %91)
  %92 = call noundef ptr @_ZN6node_t11first_bytesEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN6node_t15set_first_bytesEPKh(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %92)
  %93 = call noundef ptr @_ZN6node_t13node_pointersEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  call void @_ZN6node_t17set_node_pointersEPKh(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %93)
  call void @_ZN6node_t6resizeEmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %13, i64 noundef 1)
  %94 = call noundef ptr @_ZN6node_t6prefixEv(ptr noundef nonnull align 8 dereferenceable(8) %10)
  %95 = load i8, ptr %94, align 1, !tbaa !15
  %.sroa.01.0.copyload = load ptr, ptr %10, align 8, !tbaa !14
  call void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef 0, i8 noundef zeroext %95, ptr %.sroa.01.0.copyload)
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef 1)
  %96 = getelementptr inbounds i8, ptr %0, i64 8
  %97 = load i64, ptr %96, align 8, !tbaa !18
  %98 = add i64 %97, 1
  store i64 %98, ptr %96, align 8, !tbaa !18
  %.sroa.0.0.copyload = load ptr, ptr %5, align 8, !tbaa !14
  call void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef %15, ptr %.sroa.0.0.copyload)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %115

99:                                               ; preds = %78
  %100 = call noundef i32 @_ZN6node_t13prefix_lengthEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %101 = zext i32 %100 to i64
  %.not43 = icmp eq i64 %13, %101
  br i1 %.not43, label %107, label %102, !prof !19

102:                                              ; preds = %99
  %103 = load ptr, ptr @stderr, align 8, !tbaa !14
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 402) #8
  %105 = load ptr, ptr @stderr, align 8, !tbaa !14
  %106 = call i32 @fflush(ptr noundef %105)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.5)
  br label %107

107:                                              ; preds = %102, %99
  %108 = getelementptr inbounds i8, ptr %0, i64 8
  %109 = load i64, ptr %108, align 8, !tbaa !18
  %110 = add i64 %109, 1
  store i64 %110, ptr %108, align 8, !tbaa !18
  %111 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %112 = add i32 %111, 1
  call void @_ZN6node_t12set_refcountEj(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %112)
  %113 = call noundef i32 @_ZN6node_t8refcountEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %114 = icmp eq i32 %113, 1
  br label %115

115:                                              ; preds = %107, %81, %55, %51
  %.0 = phi i1 [ true, %51 ], [ true, %55 ], [ true, %81 ], [ %114, %107 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #7
  ret i1 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3zmq12radix_tree_t5matchEPKhmb(ptr dead_on_unwind noalias writable sret(%struct.match_result_t) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef, i1 noundef zeroext) local_unnamed_addr #5 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6node_t11set_edge_atEmhS_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i8 noundef zeroext, ptr) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6node_t11set_node_atEmS_(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr) local_unnamed_addr #5 align 2

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

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"_ZTS14match_result_t", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS6node_t", !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!6, !7, i64 16}
!14 = !{!11, !11, i64 0}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN3zmq12radix_tree_tE", !10, i64 0, !7, i64 8}
!18 = !{!17, !7, i64 8}
!19 = !{!"branch_weights", !"expected", i32 2000, i32 1}


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