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

; 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.std::nothrow_t" = type { i8 }
%"class.zmq::trie_t" = type { i32, i8, i16, i16, %union.anon }
%union.anon = type { ptr }

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 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 i32 @__gxx_personality_v0(...)

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq6trie_t3addEPhm(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, i64 noundef %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca ptr, align 8
  %11 = alloca i16, align 2
  %12 = alloca i16, align 2
  %13 = alloca i16, align 2
  %14 = alloca i16, align 2
  %15 = alloca i16, align 2
  %16 = alloca ptr, align 8
  %17 = alloca i1, align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i1, align 1
  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
  %23 = load ptr, ptr %5, align 8
  %24 = load i64, ptr %7, align 8, !tbaa !9
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %33, label %26

26:                                               ; preds = %3
  %27 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !11
  %29 = add i32 %28, 1
  store i32 %29, ptr %27, align 8, !tbaa !11
  %30 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 0
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = icmp eq i32 %31, 1
  store i1 %32, ptr %4, align 1
  br label %466

33:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #11
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i8, ptr %34, align 1, !tbaa !15
  store i8 %35, ptr %8, align 1, !tbaa !15
  %36 = load i8, ptr %8, align 1, !tbaa !15
  %37 = zext i8 %36 to i32
  %38 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %39 = load i8, ptr %38, align 4, !tbaa !16
  %40 = zext i8 %39 to i32
  %41 = icmp slt i32 %37, %40
  br i1 %41, label %53, label %42

42:                                               ; preds = %33
  %43 = load i8, ptr %8, align 1, !tbaa !15
  %44 = zext i8 %43 to i32
  %45 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %46 = load i8, ptr %45, align 4, !tbaa !16
  %47 = zext i8 %46 to i32
  %48 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %49 = load i16, ptr %48, align 2, !tbaa !17
  %50 = zext i16 %49 to i32
  %51 = add nsw i32 %47, %50
  %52 = icmp sge i32 %44, %51
  br i1 %52, label %53, label %295

53:                                               ; preds = %42, %33
  %54 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %55 = load i16, ptr %54, align 2, !tbaa !17
  %56 = icmp ne i16 %55, 0
  br i1 %56, label %62, label %57

57:                                               ; preds = %53
  %58 = load i8, ptr %8, align 1, !tbaa !15
  %59 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  store i8 %58, ptr %59, align 4, !tbaa !16
  %60 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  store i16 1, ptr %60, align 2, !tbaa !17
  %61 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  store ptr null, ptr %61, align 8, !tbaa !15
  br label %294

62:                                               ; preds = %53
  %63 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %64 = load i16, ptr %63, align 2, !tbaa !17
  %65 = zext i16 %64 to i32
  %66 = icmp eq i32 %65, 1
  br i1 %66, label %67, label %152

67:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #11
  %68 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %69 = load i8, ptr %68, align 4, !tbaa !16
  store i8 %69, ptr %9, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #11
  %70 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %71 = load ptr, ptr %70, align 8, !tbaa !15
  store ptr %71, ptr %10, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %73 = load i8, ptr %72, align 4, !tbaa !16
  %74 = zext i8 %73 to i32
  %75 = load i8, ptr %8, align 1, !tbaa !15
  %76 = zext i8 %75 to i32
  %77 = icmp slt i32 %74, %76
  br i1 %77, label %78, label %85

78:                                               ; preds = %67
  %79 = load i8, ptr %8, align 1, !tbaa !15
  %80 = zext i8 %79 to i32
  %81 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %82 = load i8, ptr %81, align 4, !tbaa !16
  %83 = zext i8 %82 to i32
  %84 = sub nsw i32 %80, %83
  br label %92

85:                                               ; preds = %67
  %86 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %87 = load i8, ptr %86, align 4, !tbaa !16
  %88 = zext i8 %87 to i32
  %89 = load i8, ptr %8, align 1, !tbaa !15
  %90 = zext i8 %89 to i32
  %91 = sub nsw i32 %88, %90
  br label %92

92:                                               ; preds = %85, %78
  %93 = phi i32 [ %84, %78 ], [ %91, %85 ]
  %94 = add nsw i32 %93, 1
  %95 = trunc i32 %94 to i16
  %96 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  store i16 %95, ptr %96, align 2, !tbaa !17
  %97 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %98 = load i16, ptr %97, align 2, !tbaa !17
  %99 = zext i16 %98 to i64
  %100 = mul i64 8, %99
  %101 = call noalias ptr @malloc(i64 noundef %100) #12
  %102 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  store ptr %101, ptr %102, align 8, !tbaa !15
  br label %103

103:                                              ; preds = %92
  %104 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %105 = load ptr, ptr %104, align 8, !tbaa !15
  %106 = icmp ne ptr %105, null
  %107 = xor i1 %106, true
  %108 = zext i1 %107 to i64
  %109 = call i64 @llvm.expect.i64(i64 %108, i64 0)
  %110 = icmp ne i64 %109, 0
  br i1 %110, label %111, label %116

111:                                              ; preds = %103
  %112 = load ptr, ptr @stderr, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 79) #11
  %114 = load ptr, ptr @stderr, align 8, !tbaa !5
  %115 = call i32 @fflush(ptr noundef %114)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.4)
  br label %116

116:                                              ; preds = %111, %103
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #11
  store i16 0, ptr %11, align 2, !tbaa !18
  br label %119

119:                                              ; preds = %133, %118
  %120 = load i16, ptr %11, align 2, !tbaa !18
  %121 = zext i16 %120 to i32
  %122 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %123 = load i16, ptr %122, align 2, !tbaa !17
  %124 = zext i16 %123 to i32
  %125 = icmp ne i32 %121, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #11
  br label %136

127:                                              ; preds = %119
  %128 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %129 = load ptr, ptr %128, align 8, !tbaa !15
  %130 = load i16, ptr %11, align 2, !tbaa !18
  %131 = zext i16 %130 to i64
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  store ptr null, ptr %132, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %127
  %134 = load i16, ptr %11, align 2, !tbaa !18
  %135 = add i16 %134, 1
  store i16 %135, ptr %11, align 2, !tbaa !18
  br label %119, !llvm.loop !19

136:                                              ; preds = %126
  %137 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %138 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %137, ptr noundef nonnull align 1 dereferenceable(1) %8)
  %139 = load i8, ptr %138, align 1, !tbaa !15
  %140 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  store i8 %139, ptr %140, align 4, !tbaa !16
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !15
  %144 = load i8, ptr %9, align 1, !tbaa !15
  %145 = zext i8 %144 to i32
  %146 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %147 = load i8, ptr %146, align 4, !tbaa !16
  %148 = zext i8 %147 to i32
  %149 = sub nsw i32 %145, %148
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds ptr, ptr %143, i64 %150
  store ptr %141, ptr %151, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #11
  br label %293

152:                                              ; preds = %62
  %153 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %154 = load i8, ptr %153, align 4, !tbaa !16
  %155 = zext i8 %154 to i32
  %156 = load i8, ptr %8, align 1, !tbaa !15
  %157 = zext i8 %156 to i32
  %158 = icmp slt i32 %155, %157
  br i1 %158, label %159, label %214

159:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2, ptr %12) #11
  %160 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %161 = load i16, ptr %160, align 2, !tbaa !17
  store i16 %161, ptr %12, align 2, !tbaa !18
  %162 = load i8, ptr %8, align 1, !tbaa !15
  %163 = zext i8 %162 to i32
  %164 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %165 = load i8, ptr %164, align 4, !tbaa !16
  %166 = zext i8 %165 to i32
  %167 = sub nsw i32 %163, %166
  %168 = add nsw i32 %167, 1
  %169 = trunc i32 %168 to i16
  %170 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  store i16 %169, ptr %170, align 2, !tbaa !17
  %171 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !15
  %173 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %174 = load i16, ptr %173, align 2, !tbaa !17
  %175 = zext i16 %174 to i64
  %176 = mul i64 8, %175
  %177 = call ptr @realloc(ptr noundef %172, i64 noundef %176) #13
  %178 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  store ptr %177, ptr %178, align 8, !tbaa !15
  br label %179

179:                                              ; preds = %159
  %180 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %181 = load ptr, ptr %180, align 8, !tbaa !15
  %182 = icmp ne ptr %181, null
  %183 = xor i1 %182, true
  %184 = zext i1 %183 to i64
  %185 = call i64 @llvm.expect.i64(i64 %184, i64 0)
  %186 = icmp ne i64 %185, 0
  br i1 %186, label %187, label %192

187:                                              ; preds = %179
  %188 = load ptr, ptr @stderr, align 8, !tbaa !5
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 90) #11
  %190 = load ptr, ptr @stderr, align 8, !tbaa !5
  %191 = call i32 @fflush(ptr noundef %190)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.5)
  br label %192

192:                                              ; preds = %187, %179
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 2, ptr %13) #11
  %195 = load i16, ptr %12, align 2, !tbaa !18
  store i16 %195, ptr %13, align 2, !tbaa !18
  br label %196

196:                                              ; preds = %210, %194
  %197 = load i16, ptr %13, align 2, !tbaa !18
  %198 = zext i16 %197 to i32
  %199 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %200 = load i16, ptr %199, align 2, !tbaa !17
  %201 = zext i16 %200 to i32
  %202 = icmp ne i32 %198, %201
  br i1 %202, label %204, label %203

203:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 2, ptr %13) #11
  br label %213

204:                                              ; preds = %196
  %205 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %206 = load ptr, ptr %205, align 8, !tbaa !15
  %207 = load i16, ptr %13, align 2, !tbaa !18
  %208 = zext i16 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  store ptr null, ptr %209, align 8, !tbaa !5
  br label %210

210:                                              ; preds = %204
  %211 = load i16, ptr %13, align 2, !tbaa !18
  %212 = add i16 %211, 1
  store i16 %212, ptr %13, align 2, !tbaa !18
  br label %196, !llvm.loop !21

213:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 2, ptr %12) #11
  br label %292

214:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2, ptr %14) #11
  %215 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %216 = load i16, ptr %215, align 2, !tbaa !17
  store i16 %216, ptr %14, align 2, !tbaa !18
  %217 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %218 = load i8, ptr %217, align 4, !tbaa !16
  %219 = zext i8 %218 to i32
  %220 = load i16, ptr %14, align 2, !tbaa !18
  %221 = zext i16 %220 to i32
  %222 = add nsw i32 %219, %221
  %223 = load i8, ptr %8, align 1, !tbaa !15
  %224 = zext i8 %223 to i32
  %225 = sub nsw i32 %222, %224
  %226 = trunc i32 %225 to i16
  %227 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  store i16 %226, ptr %227, align 2, !tbaa !17
  %228 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %229 = load ptr, ptr %228, align 8, !tbaa !15
  %230 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %231 = load i16, ptr %230, align 2, !tbaa !17
  %232 = zext i16 %231 to i64
  %233 = mul i64 8, %232
  %234 = call ptr @realloc(ptr noundef %229, i64 noundef %233) #13
  %235 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  store ptr %234, ptr %235, align 8, !tbaa !15
  br label %236

236:                                              ; preds = %214
  %237 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %238 = load ptr, ptr %237, align 8, !tbaa !15
  %239 = icmp ne ptr %238, null
  %240 = xor i1 %239, true
  %241 = zext i1 %240 to i64
  %242 = call i64 @llvm.expect.i64(i64 %241, i64 0)
  %243 = icmp ne i64 %242, 0
  br i1 %243, label %244, label %249

244:                                              ; preds = %236
  %245 = load ptr, ptr @stderr, align 8, !tbaa !5
  %246 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %245, ptr noundef @.str, ptr noundef @.str.5, ptr noundef @.str.2, i32 noundef 99) #11
  %247 = load ptr, ptr @stderr, align 8, !tbaa !5
  %248 = call i32 @fflush(ptr noundef %247)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.5)
  br label %249

249:                                              ; preds = %244, %236
  br label %250

250:                                              ; preds = %249
  br label %251

251:                                              ; preds = %250
  %252 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %253 = load ptr, ptr %252, align 8, !tbaa !15
  %254 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %255 = load i8, ptr %254, align 4, !tbaa !16
  %256 = zext i8 %255 to i32
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds ptr, ptr %253, i64 %257
  %259 = load i8, ptr %8, align 1, !tbaa !15
  %260 = zext i8 %259 to i32
  %261 = sext i32 %260 to i64
  %262 = sub i64 0, %261
  %263 = getelementptr inbounds ptr, ptr %258, i64 %262
  %264 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %265 = load ptr, ptr %264, align 8, !tbaa !15
  %266 = load i16, ptr %14, align 2, !tbaa !18
  %267 = zext i16 %266 to i64
  %268 = mul i64 %267, 8
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %263, ptr align 8 %265, i64 %268, i1 false)
  call void @llvm.lifetime.start.p0(i64 2, ptr %15) #11
  store i16 0, ptr %15, align 2, !tbaa !18
  br label %269

269:                                              ; preds = %286, %251
  %270 = load i16, ptr %15, align 2, !tbaa !18
  %271 = zext i16 %270 to i32
  %272 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %273 = load i8, ptr %272, align 4, !tbaa !16
  %274 = zext i8 %273 to i32
  %275 = load i8, ptr %8, align 1, !tbaa !15
  %276 = zext i8 %275 to i32
  %277 = sub nsw i32 %274, %276
  %278 = icmp ne i32 %271, %277
  br i1 %278, label %280, label %279

279:                                              ; preds = %269
  call void @llvm.lifetime.end.p0(i64 2, ptr %15) #11
  br label %289

280:                                              ; preds = %269
  %281 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %282 = load ptr, ptr %281, align 8, !tbaa !15
  %283 = load i16, ptr %15, align 2, !tbaa !18
  %284 = zext i16 %283 to i64
  %285 = getelementptr inbounds ptr, ptr %282, i64 %284
  store ptr null, ptr %285, align 8, !tbaa !5
  br label %286

286:                                              ; preds = %280
  %287 = load i16, ptr %15, align 2, !tbaa !18
  %288 = add i16 %287, 1
  store i16 %288, ptr %15, align 2, !tbaa !18
  br label %269, !llvm.loop !22

289:                                              ; preds = %279
  %290 = load i8, ptr %8, align 1, !tbaa !15
  %291 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  store i8 %290, ptr %291, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 2, ptr %14) #11
  br label %292

292:                                              ; preds = %289, %213
  br label %293

293:                                              ; preds = %292, %136
  br label %294

294:                                              ; preds = %293, %57
  br label %295

295:                                              ; preds = %294, %42
  %296 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 2
  %297 = load i16, ptr %296, align 2, !tbaa !17
  %298 = zext i16 %297 to i32
  %299 = icmp eq i32 %298, 1
  br i1 %299, label %300, label %364

300:                                              ; preds = %295
  %301 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %302 = load ptr, ptr %301, align 8, !tbaa !15
  %303 = icmp ne ptr %302, null
  br i1 %303, label %356, label %304

304:                                              ; preds = %300
  %305 = call noalias noundef ptr @_ZnwmRKSt9nothrow_t(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #14
  %306 = icmp eq ptr %305, null
  store i1 false, ptr %17, align 1
  br i1 %306, label %309, label %307

307:                                              ; preds = %304
  store ptr %305, ptr %16, align 8
  store i1 true, ptr %17, align 1
  invoke void @_ZN3zmq6trie_tC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %305)
          to label %308 unwind label %325

308:                                              ; preds = %307
  br label %309

309:                                              ; preds = %308, %304
  %310 = phi ptr [ %305, %308 ], [ null, %304 ]
  %311 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  store ptr %310, ptr %311, align 8, !tbaa !15
  br label %312

312:                                              ; preds = %309
  %313 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %314 = load ptr, ptr %313, align 8, !tbaa !15
  %315 = icmp ne ptr %314, null
  %316 = xor i1 %315, true
  %317 = zext i1 %316 to i64
  %318 = call i64 @llvm.expect.i64(i64 %317, i64 0)
  %319 = icmp ne i64 %318, 0
  br i1 %319, label %320, label %333

320:                                              ; preds = %312
  %321 = load ptr, ptr @stderr, align 8, !tbaa !5
  %322 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %321, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 112) #11
  %323 = load ptr, ptr @stderr, align 8, !tbaa !5
  %324 = call i32 @fflush(ptr noundef %323)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.4)
  br label %333

325:                                              ; preds = %307
  %326 = landingpad { ptr, i32 }
          cleanup
  %327 = extractvalue { ptr, i32 } %326, 0
  store ptr %327, ptr %18, align 8
  %328 = extractvalue { ptr, i32 } %326, 1
  store i32 %328, ptr %19, align 4
  %329 = load i1, ptr %17, align 1
  br i1 %329, label %330, label %332

330:                                              ; preds = %325
  %331 = load ptr, ptr %16, align 8
  call void @_ZdlPvRKSt9nothrow_t(ptr noundef %331, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #15
  br label %332

332:                                              ; preds = %330, %325
  br label %465

333:                                              ; preds = %320, %312
  br label %334

334:                                              ; preds = %333
  br label %335

335:                                              ; preds = %334
  %336 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 3
  %337 = load i16, ptr %336, align 8, !tbaa !23
  %338 = add i16 %337, 1
  store i16 %338, ptr %336, align 8, !tbaa !23
  br label %339

339:                                              ; preds = %335
  %340 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 3
  %341 = load i16, ptr %340, align 8, !tbaa !23
  %342 = zext i16 %341 to i32
  %343 = icmp eq i32 %342, 1
  %344 = xor i1 %343, true
  %345 = zext i1 %344 to i64
  %346 = call i64 @llvm.expect.i64(i64 %345, i64 0)
  %347 = icmp ne i64 %346, 0
  br i1 %347, label %348, label %353

348:                                              ; preds = %339
  %349 = load ptr, ptr @stderr, align 8, !tbaa !5
  %350 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %349, ptr noundef @.str, ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 114) #11
  %351 = load ptr, ptr @stderr, align 8, !tbaa !5
  %352 = call i32 @fflush(ptr noundef %351)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.6)
  br label %353

353:                                              ; preds = %348, %339
  br label %354

354:                                              ; preds = %353
  br label %355

355:                                              ; preds = %354
  br label %356

356:                                              ; preds = %355, %300
  %357 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %358 = load ptr, ptr %357, align 8, !tbaa !15
  %359 = load ptr, ptr %6, align 8, !tbaa !5
  %360 = getelementptr inbounds i8, ptr %359, i64 1
  %361 = load i64, ptr %7, align 8, !tbaa !9
  %362 = sub i64 %361, 1
  %363 = call noundef zeroext i1 @_ZN3zmq6trie_t3addEPhm(ptr noundef nonnull align 8 dereferenceable(24) %358, ptr noundef %360, i64 noundef %362)
  store i1 %363, ptr %4, align 1
  store i32 1, ptr %20, align 4
  br label %464

364:                                              ; preds = %295
  %365 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %366 = load ptr, ptr %365, align 8, !tbaa !15
  %367 = load i8, ptr %8, align 1, !tbaa !15
  %368 = zext i8 %367 to i32
  %369 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %370 = load i8, ptr %369, align 4, !tbaa !16
  %371 = zext i8 %370 to i32
  %372 = sub nsw i32 %368, %371
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds ptr, ptr %366, i64 %373
  %375 = load ptr, ptr %374, align 8, !tbaa !5
  %376 = icmp ne ptr %375, null
  br i1 %376, label %447, label %377

377:                                              ; preds = %364
  %378 = call noalias noundef ptr @_ZnwmRKSt9nothrow_t(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #14
  %379 = icmp eq ptr %378, null
  store i1 false, ptr %22, align 1
  br i1 %379, label %382, label %380

380:                                              ; preds = %377
  store ptr %378, ptr %21, align 8
  store i1 true, ptr %22, align 1
  invoke void @_ZN3zmq6trie_tC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %378)
          to label %381 unwind label %416

381:                                              ; preds = %380
  br label %382

382:                                              ; preds = %381, %377
  %383 = phi ptr [ %378, %381 ], [ null, %377 ]
  %384 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %385 = load ptr, ptr %384, align 8, !tbaa !15
  %386 = load i8, ptr %8, align 1, !tbaa !15
  %387 = zext i8 %386 to i32
  %388 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %389 = load i8, ptr %388, align 4, !tbaa !16
  %390 = zext i8 %389 to i32
  %391 = sub nsw i32 %387, %390
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds ptr, ptr %385, i64 %392
  store ptr %383, ptr %393, align 8, !tbaa !5
  br label %394

394:                                              ; preds = %382
  %395 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %396 = load ptr, ptr %395, align 8, !tbaa !15
  %397 = load i8, ptr %8, align 1, !tbaa !15
  %398 = zext i8 %397 to i32
  %399 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %400 = load i8, ptr %399, align 4, !tbaa !16
  %401 = zext i8 %400 to i32
  %402 = sub nsw i32 %398, %401
  %403 = sext i32 %402 to i64
  %404 = getelementptr inbounds ptr, ptr %396, i64 %403
  %405 = load ptr, ptr %404, align 8, !tbaa !5
  %406 = icmp ne ptr %405, null
  %407 = xor i1 %406, true
  %408 = zext i1 %407 to i64
  %409 = call i64 @llvm.expect.i64(i64 %408, i64 0)
  %410 = icmp ne i64 %409, 0
  br i1 %410, label %411, label %424

411:                                              ; preds = %394
  %412 = load ptr, ptr @stderr, align 8, !tbaa !5
  %413 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %412, ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 120) #11
  %414 = load ptr, ptr @stderr, align 8, !tbaa !5
  %415 = call i32 @fflush(ptr noundef %414)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.4)
  br label %424

416:                                              ; preds = %380
  %417 = landingpad { ptr, i32 }
          cleanup
  %418 = extractvalue { ptr, i32 } %417, 0
  store ptr %418, ptr %18, align 8
  %419 = extractvalue { ptr, i32 } %417, 1
  store i32 %419, ptr %19, align 4
  %420 = load i1, ptr %22, align 1
  br i1 %420, label %421, label %423

421:                                              ; preds = %416
  %422 = load ptr, ptr %21, align 8
  call void @_ZdlPvRKSt9nothrow_t(ptr noundef %422, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #15
  br label %423

423:                                              ; preds = %421, %416
  br label %465

424:                                              ; preds = %411, %394
  br label %425

425:                                              ; preds = %424
  br label %426

426:                                              ; preds = %425
  %427 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 3
  %428 = load i16, ptr %427, align 8, !tbaa !23
  %429 = add i16 %428, 1
  store i16 %429, ptr %427, align 8, !tbaa !23
  br label %430

430:                                              ; preds = %426
  %431 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 3
  %432 = load i16, ptr %431, align 8, !tbaa !23
  %433 = zext i16 %432 to i32
  %434 = icmp sgt i32 %433, 1
  %435 = xor i1 %434, true
  %436 = zext i1 %435 to i64
  %437 = call i64 @llvm.expect.i64(i64 %436, i64 0)
  %438 = icmp ne i64 %437, 0
  br i1 %438, label %439, label %444

439:                                              ; preds = %430
  %440 = load ptr, ptr @stderr, align 8, !tbaa !5
  %441 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %440, ptr noundef @.str, ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 122) #11
  %442 = load ptr, ptr @stderr, align 8, !tbaa !5
  %443 = call i32 @fflush(ptr noundef %442)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef @.str.7)
  br label %444

444:                                              ; preds = %439, %430
  br label %445

445:                                              ; preds = %444
  br label %446

446:                                              ; preds = %445
  br label %447

447:                                              ; preds = %446, %364
  %448 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 4
  %449 = load ptr, ptr %448, align 8, !tbaa !15
  %450 = load i8, ptr %8, align 1, !tbaa !15
  %451 = zext i8 %450 to i32
  %452 = getelementptr inbounds %"class.zmq::trie_t", ptr %23, i32 0, i32 1
  %453 = load i8, ptr %452, align 4, !tbaa !16
  %454 = zext i8 %453 to i32
  %455 = sub nsw i32 %451, %454
  %456 = sext i32 %455 to i64
  %457 = getelementptr inbounds ptr, ptr %449, i64 %456
  %458 = load ptr, ptr %457, align 8, !tbaa !5
  %459 = load ptr, ptr %6, align 8, !tbaa !5
  %460 = getelementptr inbounds i8, ptr %459, i64 1
  %461 = load i64, ptr %7, align 8, !tbaa !9
  %462 = sub i64 %461, 1
  %463 = call noundef zeroext i1 @_ZN3zmq6trie_t3addEPhm(ptr noundef nonnull align 8 dereferenceable(24) %458, ptr noundef %460, i64 noundef %462)
  store i1 %463, ptr %4, align 1
  store i32 1, ptr %20, align 4
  br label %464

464:                                              ; preds = %447, %356
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  br label %466

465:                                              ; preds = %423, %332
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #11
  br label %468

466:                                              ; preds = %464, %26
  %467 = load i1, ptr %4, align 1
  ret i1 %467

468:                                              ; preds = %465
  %469 = load ptr, ptr %18, align 8
  %470 = load i32, ptr %19, align 4
  %471 = insertvalue { ptr, i32 } poison, ptr %469, 0
  %472 = insertvalue { ptr, i32 } %471, i32 %470, 1
  resume { ptr, i32 } %472
}

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #6

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #7

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

; Function Attrs: nobuiltin nounwind allocsize(0)
declare noalias noundef ptr @_ZnwmRKSt9nothrow_t(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) #9

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvRKSt9nothrow_t(ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) #10

declare void @_ZN3zmq6trie_tC1Ev(ptr)

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind allocsize(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 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 allocsize(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 #8 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { nobuiltin nounwind allocsize(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 #10 = { nobuiltin 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 #11 = { nounwind }
attributes #12 = { nounwind allocsize(0) }
attributes #13 = { nounwind allocsize(1) }
attributes #14 = { builtin nounwind allocsize(0) }
attributes #15 = { builtin 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, !13, i64 0}
!12 = !{!"_ZTSN3zmq6trie_tE", !13, i64 0, !7, i64 4, !14, i64 6, !14, i64 8, !7, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!12, !7, i64 4}
!17 = !{!12, !14, i64 6}
!18 = !{!14, !14, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = !{!12, !14, 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.std::nothrow_t" = type { i8 }

@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 [108 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [12 x i8], align 1
@_ZSt7nothrow = external global %"struct.std::nothrow_t", align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [16 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 i32 @__gxx_personality_v0(...)

declare void @_ZN3zmq9zmq_abortEPKc(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3zmq6trie_t3addEPhm(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr nocapture noundef readonly %1, i64 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i8, align 1
  %.not = icmp eq i64 %2, 0
  br i1 %.not, label %5, label %9

5:                                                ; preds = %3
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = add i32 %6, 1
  store i32 %7, ptr %0, align 8, !tbaa !5
  %8 = icmp eq i32 %6, 0
  br label %219

9:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #10
  %10 = load i8, ptr %1, align 1, !tbaa !11
  store i8 %10, ptr %4, align 1, !tbaa !11
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i8, ptr %11, align 4, !tbaa !12
  %13 = icmp ult i8 %10, %12
  br i1 %13, label %._crit_edge74, label %14

._crit_edge74:                                    ; preds = %9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 6
  %.pre = load i16, ptr %.phi.trans.insert, align 2, !tbaa !13
  br label %21

14:                                               ; preds = %9
  %15 = zext i8 %12 to i32
  %16 = zext i8 %10 to i32
  %17 = getelementptr inbounds i8, ptr %0, i64 6
  %18 = load i16, ptr %17, align 2, !tbaa !13
  %19 = zext i16 %18 to i32
  %20 = add nuw nsw i32 %19, %15
  %.not47 = icmp ugt i32 %20, %16
  br i1 %.not47, label %.loopexit, label %21

21:                                               ; preds = %._crit_edge74, %14
  %22 = phi i16 [ %.pre, %._crit_edge74 ], [ %18, %14 ]
  %23 = getelementptr inbounds i8, ptr %0, i64 6
  %.not48 = icmp eq i16 %22, 0
  br i1 %.not48, label %24, label %26

24:                                               ; preds = %21
  store i8 %10, ptr %11, align 4, !tbaa !12
  store i16 1, ptr %23, align 2, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr null, ptr %25, align 8, !tbaa !11
  br label %.loopexit

26:                                               ; preds = %21
  %27 = zext i16 %22 to i32
  %28 = icmp eq i16 %22, 1
  br i1 %28, label %29, label %69

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = zext i8 %12 to i32
  %33 = zext i8 %10 to i32
  %34 = icmp ult i8 %12, %10
  %35 = sub nsw i32 %33, %32
  %36 = sub nsw i32 %32, %33
  %37 = select i1 %34, i32 %35, i32 %36
  %38 = trunc nsw i32 %37 to i16
  %39 = add nsw i16 %38, 1
  store i16 %39, ptr %23, align 2, !tbaa !13
  %40 = zext i16 %39 to i64
  %41 = shl nuw nsw i64 %40, 3
  %42 = tail call noalias ptr @malloc(i64 noundef %41) #11
  store ptr %42, ptr %30, align 8, !tbaa !11
  %.not53 = icmp eq ptr %42, null
  br i1 %.not53, label %43, label %48, !prof !14

43:                                               ; preds = %29
  %44 = load ptr, ptr @stderr, align 8, !tbaa !15
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 79) #12
  %46 = load ptr, ptr @stderr, align 8, !tbaa !15
  %47 = tail call i32 @fflush(ptr noundef %46)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.4)
  %.pre76 = load i16, ptr %23, align 2, !tbaa !13
  br label %48

48:                                               ; preds = %43, %29
  %49 = phi i16 [ %.pre76, %43 ], [ %39, %29 ]
  %.not5468 = icmp eq i16 %49, 0
  br i1 %.not5468, label %._crit_edge72, label %.lr.ph71.preheader

.lr.ph71.preheader:                               ; preds = %48
  %50 = zext i16 %49 to i64
  %xtraiter89 = and i64 %50, 3
  %51 = icmp ult i16 %49, 4
  br i1 %51, label %._crit_edge72.loopexit.unr-lcssa, label %.lr.ph71.preheader.new

.lr.ph71.preheader.new:                           ; preds = %.lr.ph71.preheader
  %unroll_iter = and i64 %50, 65532
  br label %.lr.ph71

._crit_edge72.loopexit.unr-lcssa:                 ; preds = %.lr.ph71, %.lr.ph71.preheader
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph71.preheader ], [ %indvars.iv.next.3, %.lr.ph71 ]
  %lcmp.mod90.not = icmp eq i64 %xtraiter89, 0
  br i1 %lcmp.mod90.not, label %._crit_edge72, label %.lr.ph71.epil

.lr.ph71.epil:                                    ; preds = %._crit_edge72.loopexit.unr-lcssa, %.lr.ph71.epil
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph71.epil ], [ %indvars.iv.unr, %._crit_edge72.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph71.epil ], [ 0, %._crit_edge72.loopexit.unr-lcssa ]
  %52 = load ptr, ptr %30, align 8, !tbaa !11
  %53 = getelementptr inbounds ptr, ptr %52, i64 %indvars.iv.epil
  store ptr null, ptr %53, align 8, !tbaa !15
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter89
  br i1 %epil.iter.cmp.not, label %._crit_edge72, label %.lr.ph71.epil, !llvm.loop !17

._crit_edge72:                                    ; preds = %._crit_edge72.loopexit.unr-lcssa, %.lr.ph71.epil, %48
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1) %11, ptr noundef nonnull align 1 dereferenceable(1) %4)
  %55 = load i8, ptr %54, align 1, !tbaa !11
  store i8 %55, ptr %11, align 4, !tbaa !12
  %56 = load ptr, ptr %30, align 8, !tbaa !11
  %57 = zext i8 %55 to i32
  %58 = sub nsw i32 %32, %57
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %56, i64 %59
  store ptr %31, ptr %60, align 8, !tbaa !15
  br label %.loopexit

.lr.ph71:                                         ; preds = %.lr.ph71, %.lr.ph71.preheader.new
  %indvars.iv = phi i64 [ 0, %.lr.ph71.preheader.new ], [ %indvars.iv.next.3, %.lr.ph71 ]
  %niter = phi i64 [ 0, %.lr.ph71.preheader.new ], [ %niter.next.3, %.lr.ph71 ]
  %61 = load ptr, ptr %30, align 8, !tbaa !11
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv
  store ptr null, ptr %62, align 8, !tbaa !15
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %63 = load ptr, ptr %30, align 8, !tbaa !11
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv.next
  store ptr null, ptr %64, align 8, !tbaa !15
  %indvars.iv.next.1 = or disjoint i64 %indvars.iv, 2
  %65 = load ptr, ptr %30, align 8, !tbaa !11
  %66 = getelementptr inbounds ptr, ptr %65, i64 %indvars.iv.next.1
  store ptr null, ptr %66, align 8, !tbaa !15
  %indvars.iv.next.2 = or disjoint i64 %indvars.iv, 3
  %67 = load ptr, ptr %30, align 8, !tbaa !11
  %68 = getelementptr inbounds ptr, ptr %67, i64 %indvars.iv.next.2
  store ptr null, ptr %68, align 8, !tbaa !15
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge72.loopexit.unr-lcssa, label %.lr.ph71, !llvm.loop !19

69:                                               ; preds = %26
  %70 = zext i8 %12 to i32
  %71 = zext i8 %10 to i32
  %72 = icmp ult i8 %12, %10
  %73 = getelementptr inbounds i8, ptr %0, i64 16
  br i1 %72, label %74, label %112

74:                                               ; preds = %69
  %75 = sub nsw i32 %71, %70
  %76 = trunc nsw i32 %75 to i16
  %77 = add nsw i16 %76, 1
  store i16 %77, ptr %23, align 2, !tbaa !13
  %78 = load ptr, ptr %73, align 8, !tbaa !11
  %79 = zext i16 %77 to i64
  %80 = shl nuw nsw i64 %79, 3
  %81 = tail call ptr @realloc(ptr noundef %78, i64 noundef %80) #13
  store ptr %81, ptr %73, align 8, !tbaa !11
  %.not51 = icmp eq ptr %81, null
  br i1 %.not51, label %82, label %87, !prof !14

82:                                               ; preds = %74
  %83 = load ptr, ptr @stderr, align 8, !tbaa !15
  %84 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 90) #12
  %85 = load ptr, ptr @stderr, align 8, !tbaa !15
  %86 = tail call i32 @fflush(ptr noundef %85)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.5)
  br label %87

87:                                               ; preds = %82, %74
  %88 = load i16, ptr %23, align 2, !tbaa !13
  %.not5264 = icmp eq i16 %22, %88
  br i1 %.not5264, label %.loopexit, label %.lr.ph67.preheader

.lr.ph67.preheader:                               ; preds = %87
  %89 = sub i16 %88, %22
  %xtraiter = and i16 %89, 3
  %lcmp.mod.not = icmp eq i16 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph67.prol.loopexit, label %.lr.ph67.prol

.lr.ph67.prol:                                    ; preds = %.lr.ph67.preheader, %.lr.ph67.prol
  %.03165.prol = phi i16 [ %93, %.lr.ph67.prol ], [ %22, %.lr.ph67.preheader ]
  %prol.iter = phi i16 [ %prol.iter.next, %.lr.ph67.prol ], [ 0, %.lr.ph67.preheader ]
  %90 = load ptr, ptr %73, align 8, !tbaa !11
  %91 = zext i16 %.03165.prol to i64
  %92 = getelementptr inbounds ptr, ptr %90, i64 %91
  store ptr null, ptr %92, align 8, !tbaa !15
  %93 = add i16 %.03165.prol, 1
  %prol.iter.next = add i16 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i16 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph67.prol.loopexit, label %.lr.ph67.prol, !llvm.loop !21

.lr.ph67.prol.loopexit:                           ; preds = %.lr.ph67.prol, %.lr.ph67.preheader
  %.03165.unr = phi i16 [ %22, %.lr.ph67.preheader ], [ %93, %.lr.ph67.prol ]
  %94 = sub i16 %22, %88
  %95 = icmp ugt i16 %94, -4
  br i1 %95, label %.loopexit, label %.lr.ph67

.lr.ph67:                                         ; preds = %.lr.ph67.prol.loopexit, %.lr.ph67
  %.03165 = phi i16 [ %111, %.lr.ph67 ], [ %.03165.unr, %.lr.ph67.prol.loopexit ]
  %96 = load ptr, ptr %73, align 8, !tbaa !11
  %97 = zext i16 %.03165 to i64
  %98 = getelementptr inbounds ptr, ptr %96, i64 %97
  store ptr null, ptr %98, align 8, !tbaa !15
  %99 = add i16 %.03165, 1
  %100 = load ptr, ptr %73, align 8, !tbaa !11
  %101 = zext i16 %99 to i64
  %102 = getelementptr inbounds ptr, ptr %100, i64 %101
  store ptr null, ptr %102, align 8, !tbaa !15
  %103 = add i16 %.03165, 2
  %104 = load ptr, ptr %73, align 8, !tbaa !11
  %105 = zext i16 %103 to i64
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  store ptr null, ptr %106, align 8, !tbaa !15
  %107 = add i16 %.03165, 3
  %108 = load ptr, ptr %73, align 8, !tbaa !11
  %109 = zext i16 %107 to i64
  %110 = getelementptr inbounds ptr, ptr %108, i64 %109
  store ptr null, ptr %110, align 8, !tbaa !15
  %111 = add i16 %.03165, 4
  %.not52.3 = icmp eq i16 %111, %88
  br i1 %.not52.3, label %.loopexit, label %.lr.ph67, !llvm.loop !22

112:                                              ; preds = %69
  %113 = sub nsw i32 %70, %71
  %114 = add nsw i32 %113, %27
  %115 = trunc i32 %114 to i16
  store i16 %115, ptr %23, align 2, !tbaa !13
  %116 = load ptr, ptr %73, align 8, !tbaa !11
  %.mask = shl nsw i32 %114, 3
  %117 = and i32 %.mask, 524280
  %118 = zext nneg i32 %117 to i64
  %119 = tail call ptr @realloc(ptr noundef %116, i64 noundef %118) #13
  store ptr %119, ptr %73, align 8, !tbaa !11
  %.not49 = icmp eq ptr %119, null
  br i1 %.not49, label %120, label %125, !prof !14

120:                                              ; preds = %112
  %121 = load ptr, ptr @stderr, align 8, !tbaa !15
  %122 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %121, ptr noundef nonnull @.str, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.2, i32 noundef 99) #12
  %123 = load ptr, ptr @stderr, align 8, !tbaa !15
  %124 = tail call i32 @fflush(ptr noundef %123)
  tail call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.5)
  %.pre75 = load ptr, ptr %73, align 8, !tbaa !11
  br label %125

125:                                              ; preds = %120, %112
  %126 = phi ptr [ %.pre75, %120 ], [ %119, %112 ]
  %127 = load i8, ptr %11, align 4, !tbaa !12
  %128 = zext i8 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  %130 = zext i8 %10 to i64
  %131 = sub nsw i64 0, %130
  %132 = getelementptr inbounds ptr, ptr %129, i64 %131
  %133 = zext i16 %22 to i64
  %134 = shl nuw nsw i64 %133, 3
  tail call void @llvm.memmove.p0.p0.i64(ptr align 8 %132, ptr align 8 %126, i64 %134, i1 false)
  %135 = load i8, ptr %11, align 4, !tbaa !12
  %136 = zext i8 %135 to i32
  %137 = sub nsw i32 %136, %71
  %.not5062 = icmp eq i8 %135, %10
  br i1 %.not5062, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %125
  store i8 %10, ptr %11, align 4, !tbaa !12
  br label %.loopexit

.lr.ph:                                           ; preds = %125, %.lr.ph
  %.03063 = phi i16 [ %141, %.lr.ph ], [ 0, %125 ]
  %138 = load ptr, ptr %73, align 8, !tbaa !11
  %139 = zext i16 %.03063 to i64
  %140 = getelementptr inbounds ptr, ptr %138, i64 %139
  store ptr null, ptr %140, align 8, !tbaa !15
  %141 = add i16 %.03063, 1
  %142 = zext i16 %141 to i32
  %.not50 = icmp eq i32 %137, %142
  br i1 %.not50, label %._crit_edge, label %.lr.ph, !llvm.loop !23

.loopexit:                                        ; preds = %.lr.ph67.prol.loopexit, %.lr.ph67, %87, %24, %._crit_edge, %._crit_edge72, %14
  %143 = getelementptr inbounds i8, ptr %0, i64 6
  %144 = load i16, ptr %143, align 2, !tbaa !13
  %145 = icmp eq i16 %144, 1
  %146 = getelementptr inbounds i8, ptr %0, i64 16
  %147 = load ptr, ptr %146, align 8, !tbaa !11
  br i1 %145, label %148, label %170

148:                                              ; preds = %.loopexit
  %.not57 = icmp eq ptr %147, null
  br i1 %.not57, label %149, label %213

149:                                              ; preds = %148
  %150 = call noalias noundef dereferenceable_or_null(24) ptr @_ZnwmRKSt9nothrow_t(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #14
  %151 = icmp eq ptr %150, null
  br i1 %151, label %154, label %152

152:                                              ; preds = %149
  invoke void @_ZN3zmq6trie_tC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %150)
          to label %153 unwind label %159

153:                                              ; preds = %152
  store ptr %150, ptr %146, align 8, !tbaa !11
  br label %161

154:                                              ; preds = %149
  store ptr null, ptr %146, align 8, !tbaa !11
  %155 = load ptr, ptr @stderr, align 8, !tbaa !15
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 112) #12
  %157 = load ptr, ptr @stderr, align 8, !tbaa !15
  %158 = call i32 @fflush(ptr noundef %157)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.4)
  br label %161

159:                                              ; preds = %152
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %218

161:                                              ; preds = %153, %154
  %162 = getelementptr inbounds i8, ptr %0, i64 8
  %163 = load i16, ptr %162, align 8, !tbaa !24
  %164 = add i16 %163, 1
  store i16 %164, ptr %162, align 8, !tbaa !24
  %.not60 = icmp eq i16 %163, 0
  br i1 %.not60, label %213, label %165, !prof !25

165:                                              ; preds = %161
  %166 = load ptr, ptr @stderr, align 8, !tbaa !15
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef nonnull @.str, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.2, i32 noundef 114) #12
  %168 = load ptr, ptr @stderr, align 8, !tbaa !15
  %169 = call i32 @fflush(ptr noundef %168)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.6)
  br label %213

170:                                              ; preds = %.loopexit
  %171 = load i8, ptr %4, align 1, !tbaa !11
  %172 = zext i8 %171 to i64
  %173 = load i8, ptr %11, align 4, !tbaa !12
  %174 = zext i8 %173 to i64
  %175 = sub nsw i64 %172, %174
  %176 = getelementptr inbounds ptr, ptr %147, i64 %175
  %177 = load ptr, ptr %176, align 8, !tbaa !15
  %.not55 = icmp eq ptr %177, null
  br i1 %.not55, label %178, label %205

178:                                              ; preds = %170
  %179 = call noalias noundef dereferenceable_or_null(24) ptr @_ZnwmRKSt9nothrow_t(i64 noundef 24, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #14
  %180 = icmp eq ptr %179, null
  br i1 %180, label %182, label %181

181:                                              ; preds = %178
  invoke void @_ZN3zmq6trie_tC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %179)
          to label %._crit_edge77 unwind label %193

._crit_edge77:                                    ; preds = %181
  %.pre78 = load ptr, ptr %146, align 8, !tbaa !11
  %.pre79 = load i8, ptr %4, align 1, !tbaa !11
  %.pre80 = load i8, ptr %11, align 4, !tbaa !12
  %.pre81 = zext i8 %.pre79 to i64
  %.pre82 = zext i8 %.pre80 to i64
  %.pre84 = sub nsw i64 %.pre81, %.pre82
  br label %182

182:                                              ; preds = %._crit_edge77, %178
  %.pre-phi85 = phi i64 [ %.pre84, %._crit_edge77 ], [ %175, %178 ]
  %183 = phi ptr [ %.pre78, %._crit_edge77 ], [ %147, %178 ]
  %184 = getelementptr inbounds ptr, ptr %183, i64 %.pre-phi85
  store ptr %179, ptr %184, align 8, !tbaa !15
  %185 = load ptr, ptr %146, align 8, !tbaa !11
  %186 = getelementptr inbounds ptr, ptr %185, i64 %.pre-phi85
  %187 = load ptr, ptr %186, align 8, !tbaa !15
  %.not56 = icmp eq ptr %187, null
  br i1 %.not56, label %188, label %195, !prof !14

188:                                              ; preds = %182
  %189 = load ptr, ptr @stderr, align 8, !tbaa !15
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %189, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 120) #12
  %191 = load ptr, ptr @stderr, align 8, !tbaa !15
  %192 = call i32 @fflush(ptr noundef %191)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.4)
  br label %195

193:                                              ; preds = %181
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %218

195:                                              ; preds = %188, %182
  %196 = getelementptr inbounds i8, ptr %0, i64 8
  %197 = load i16, ptr %196, align 8, !tbaa !24
  %198 = add i16 %197, 1
  store i16 %198, ptr %196, align 8, !tbaa !24
  %199 = icmp ult i16 %198, 2
  br i1 %199, label %200, label %205, !prof !14

200:                                              ; preds = %195
  %201 = load ptr, ptr @stderr, align 8, !tbaa !15
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %201, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 122) #12
  %203 = load ptr, ptr @stderr, align 8, !tbaa !15
  %204 = call i32 @fflush(ptr noundef %203)
  call void @_ZN3zmq9zmq_abortEPKc(ptr noundef nonnull @.str.7)
  br label %205

205:                                              ; preds = %195, %200, %170
  %206 = load ptr, ptr %146, align 8, !tbaa !11
  %207 = load i8, ptr %4, align 1, !tbaa !11
  %208 = zext i8 %207 to i64
  %209 = load i8, ptr %11, align 4, !tbaa !12
  %210 = zext i8 %209 to i64
  %211 = sub nsw i64 %208, %210
  %212 = getelementptr inbounds ptr, ptr %206, i64 %211
  br label %213

213:                                              ; preds = %148, %165, %161, %205
  %.sink88 = phi ptr [ %212, %205 ], [ %146, %161 ], [ %146, %165 ], [ %146, %148 ]
  %214 = load ptr, ptr %.sink88, align 8, !tbaa !11
  %215 = getelementptr inbounds i8, ptr %1, i64 1
  %216 = add i64 %2, -1
  %217 = call noundef zeroext i1 @_ZN3zmq6trie_t3addEPhm(ptr noundef nonnull align 8 dereferenceable(24) %214, ptr noundef nonnull %215, i64 noundef %216)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  br label %219

218:                                              ; preds = %193, %159
  %.sink = phi ptr [ %179, %193 ], [ %150, %159 ]
  %.pn = phi { ptr, i32 } [ %194, %193 ], [ %160, %159 ]
  call void @_ZdlPvRKSt9nothrow_t(ptr noundef nonnull %.sink, ptr noundef nonnull align 1 dereferenceable(1) @_ZSt7nothrow) #15
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #10
  resume { ptr, i32 } %.pn

219:                                              ; preds = %213, %5
  %.1 = phi i1 [ %217, %213 ], [ %8, %5 ]
  ret i1 %.1
}

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZSt3minIhERKT_S2_S2_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #6

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

; Function Attrs: nobuiltin nounwind allocsize(0)
declare noalias noundef ptr @_ZnwmRKSt9nothrow_t(i64 noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #8

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvRKSt9nothrow_t(ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #9

declare void @_ZN3zmq6trie_tC1Ev(ptr) local_unnamed_addr

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 = { 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 #6 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #8 = { nobuiltin nounwind allocsize(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 #9 = { nobuiltin 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 #10 = { nounwind }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { cold nounwind }
attributes #13 = { nounwind allocsize(1) }
attributes #14 = { builtin nounwind allocsize(0) }
attributes #15 = { builtin 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 = !{!"_ZTSN3zmq6trie_tE", !7, i64 0, !8, i64 4, !10, i64 6, !10, i64 8, !8, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!8, !8, i64 0}
!12 = !{!6, !8, i64 4}
!13 = !{!6, !10, i64 6}
!14 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!15 = !{!16, !16, i64 0}
!16 = !{!"any pointer", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !18}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = !{!6, !10, i64 8}
!25 = !{!"branch_weights", !"expected", i32 2000, i32 1}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LowerExpectIntrinsicPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass