; LLVM IR from aagdev/mlimgsynth :: src (tensor_name_conv)

; 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.StrSlice = type { ptr, i64 }

@g_allocator_dopt = external global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [10 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @tnconv_prefix_match_replace(ptr noundef, ptr noundef, ptr, i64, ptr, i64) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @dynbuf_append(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @tnconv_number_match_push(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @tnconv_unet_block(ptr %0, i64 %1, ptr noundef %2) #1 {
  %4 = alloca %struct.StrSlice, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %struct.StrSlice, align 8
  %8 = alloca %struct.StrSlice, align 8
  %9 = alloca %struct.StrSlice, align 8
  %10 = alloca %struct.StrSlice, align 8
  %11 = alloca %struct.StrSlice, align 8
  %12 = alloca %struct.StrSlice, align 8
  %13 = alloca %struct.StrSlice, align 8
  %14 = alloca %struct.StrSlice, align 8
  %15 = alloca %struct.StrSlice, align 8
  %16 = alloca %struct.StrSlice, align 8
  %17 = alloca %struct.StrSlice, align 8
  %18 = alloca %struct.StrSlice, align 8
  %19 = alloca %struct.StrSlice, align 8
  %20 = alloca %struct.StrSlice, align 8
  %21 = alloca %struct.StrSlice, align 8
  %22 = alloca %struct.StrSlice, align 8
  %23 = alloca %struct.StrSlice, align 8
  %24 = alloca %struct.StrSlice, align 8
  %25 = alloca %struct.StrSlice, align 8
  %26 = alloca %struct.StrSlice, align 8
  %27 = alloca %struct.StrSlice, align 8
  %28 = alloca %struct.StrSlice, align 8
  %29 = alloca %struct.StrSlice, align 8
  %30 = alloca %struct.StrSlice, align 8
  %31 = alloca %struct.StrSlice, align 8
  %32 = alloca %struct.StrSlice, align 8
  %33 = alloca %struct.StrSlice, align 8
  %34 = alloca %struct.StrSlice, align 8
  %35 = alloca %struct.StrSlice, align 8
  %36 = alloca %struct.StrSlice, align 8
  %37 = alloca %struct.StrSlice, align 8
  %38 = alloca %struct.StrSlice, align 8
  %39 = alloca %struct.StrSlice, align 8
  %40 = alloca %struct.StrSlice, align 8
  %41 = alloca %struct.StrSlice, align 8
  %42 = alloca %struct.StrSlice, align 8
  %43 = alloca %struct.StrSlice, align 8
  %44 = alloca %struct.StrSlice, align 8
  %45 = alloca %struct.StrSlice, align 8
  %46 = alloca %struct.StrSlice, align 8
  %47 = alloca %struct.StrSlice, align 8
  %48 = alloca %struct.StrSlice, align 8
  %49 = alloca %struct.StrSlice, align 8
  %50 = alloca %struct.StrSlice, align 8
  %51 = alloca %struct.StrSlice, align 8
  %52 = alloca %struct.StrSlice, align 8
  %53 = alloca %struct.StrSlice, align 8
  %54 = alloca %struct.StrSlice, align 8
  %55 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  store ptr %0, ptr %55, align 8
  %56 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  store i64 %1, ptr %56, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !9
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.StrSlice, ptr %7, i32 0, i32 0
  store ptr @.str.44, ptr %58, align 8, !tbaa !11
  %59 = getelementptr inbounds %struct.StrSlice, ptr %7, i32 0, i32 1
  store i64 19, ptr %59, align 8, !tbaa !14
  %60 = getelementptr inbounds %struct.StrSlice, ptr %8, i32 0, i32 0
  store ptr @.str.45, ptr %60, align 8, !tbaa !11
  %61 = getelementptr inbounds %struct.StrSlice, ptr %8, i32 0, i32 1
  store i64 7, ptr %61, align 8, !tbaa !14
  %62 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %65 = load i64, ptr %64, align 8
  %66 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8
  %68 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %69 = load i64, ptr %68, align 8
  %70 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %57, ptr %63, i64 %65, ptr %67, i64 %69)
  %71 = icmp ne i32 %70, 0
  br i1 %71, label %72, label %286

72:                                               ; preds = %3
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = call i32 @tnconv_number_match_push(ptr noundef %4, ptr noundef %73)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.StrSlice, ptr %9, i32 0, i32 0
  store ptr @.str.46, ptr %76, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.StrSlice, ptr %9, i32 0, i32 1
  store i64 6, ptr %77, align 8, !tbaa !14
  %78 = getelementptr inbounds %struct.StrSlice, ptr %10, i32 0, i32 0
  store ptr @.str.46, ptr %78, align 8, !tbaa !11
  %79 = getelementptr inbounds %struct.StrSlice, ptr %10, i32 0, i32 1
  store i64 6, ptr %79, align 8, !tbaa !14
  %80 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8
  %82 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %83 = load i64, ptr %82, align 8
  %84 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8
  %86 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  %88 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %75, ptr %81, i64 %83, ptr %85, i64 %87)
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %106, label %90

90:                                               ; preds = %72
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.StrSlice, ptr %11, i32 0, i32 0
  store ptr @.str.47, ptr %92, align 8, !tbaa !11
  %93 = getelementptr inbounds %struct.StrSlice, ptr %11, i32 0, i32 1
  store i64 6, ptr %93, align 8, !tbaa !14
  %94 = getelementptr inbounds %struct.StrSlice, ptr %12, i32 0, i32 0
  store ptr @.str.47, ptr %94, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.StrSlice, ptr %12, i32 0, i32 1
  store i64 6, ptr %95, align 8, !tbaa !14
  %96 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %99 = load i64, ptr %98, align 8
  %100 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %101 = load ptr, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %103 = load i64, ptr %102, align 8
  %104 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %91, ptr %97, i64 %99, ptr %101, i64 %103)
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %178

106:                                              ; preds = %90, %72
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.StrSlice, ptr %13, i32 0, i32 0
  store ptr @.str.48, ptr %108, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.StrSlice, ptr %13, i32 0, i32 1
  store i64 5, ptr %109, align 8, !tbaa !14
  %110 = getelementptr inbounds %struct.StrSlice, ptr %14, i32 0, i32 0
  store ptr @.str.49, ptr %110, align 8, !tbaa !11
  %111 = getelementptr inbounds %struct.StrSlice, ptr %14, i32 0, i32 1
  store i64 7, ptr %111, align 8, !tbaa !14
  %112 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8
  %114 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %115 = load i64, ptr %114, align 8
  %116 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8
  %118 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %119 = load i64, ptr %118, align 8
  %120 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %107, ptr %113, i64 %115, ptr %117, i64 %119)
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %106
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %177

123:                                              ; preds = %106
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.StrSlice, ptr %15, i32 0, i32 0
  store ptr @.str.50, ptr %125, align 8, !tbaa !11
  %126 = getelementptr inbounds %struct.StrSlice, ptr %15, i32 0, i32 1
  store i64 5, ptr %126, align 8, !tbaa !14
  %127 = getelementptr inbounds %struct.StrSlice, ptr %16, i32 0, i32 0
  store ptr @.str.51, ptr %127, align 8, !tbaa !11
  %128 = getelementptr inbounds %struct.StrSlice, ptr %16, i32 0, i32 1
  store i64 7, ptr %128, align 8, !tbaa !14
  %129 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %130 = load ptr, ptr %129, align 8
  %131 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %132 = load i64, ptr %131, align 8
  %133 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %134 = load ptr, ptr %133, align 8
  %135 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %136 = load i64, ptr %135, align 8
  %137 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %124, ptr %130, i64 %132, ptr %134, i64 %136)
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %140

139:                                              ; preds = %123
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %176

140:                                              ; preds = %123
  %141 = load ptr, ptr %5, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.StrSlice, ptr %17, i32 0, i32 0
  store ptr @.str.52, ptr %142, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.StrSlice, ptr %17, i32 0, i32 1
  store i64 5, ptr %143, align 8, !tbaa !14
  %144 = getelementptr inbounds %struct.StrSlice, ptr %18, i32 0, i32 0
  store ptr @.str.53, ptr %144, align 8, !tbaa !11
  %145 = getelementptr inbounds %struct.StrSlice, ptr %18, i32 0, i32 1
  store i64 7, ptr %145, align 8, !tbaa !14
  %146 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %147 = load ptr, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %149 = load i64, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %151 = load ptr, ptr %150, align 8
  %152 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %153 = load i64, ptr %152, align 8
  %154 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %141, ptr %147, i64 %149, ptr %151, i64 %153)
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %140
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %175

157:                                              ; preds = %140
  %158 = load ptr, ptr %5, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.StrSlice, ptr %19, i32 0, i32 0
  store ptr @.str.54, ptr %159, align 8, !tbaa !11
  %160 = getelementptr inbounds %struct.StrSlice, ptr %19, i32 0, i32 1
  store i64 9, ptr %160, align 8, !tbaa !14
  %161 = getelementptr inbounds %struct.StrSlice, ptr %20, i32 0, i32 0
  store ptr @.str.29, ptr %161, align 8, !tbaa !11
  %162 = getelementptr inbounds %struct.StrSlice, ptr %20, i32 0, i32 1
  store i64 9, ptr %162, align 8, !tbaa !14
  %163 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %166 = load i64, ptr %165, align 8
  %167 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %168 = load ptr, ptr %167, align 8
  %169 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %170 = load i64, ptr %169, align 8
  %171 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %158, ptr %164, i64 %166, ptr %168, i64 %170)
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %174

173:                                              ; preds = %157
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %173, %157
  br label %175

175:                                              ; preds = %174, %156
  br label %176

176:                                              ; preds = %175, %139
  br label %177

177:                                              ; preds = %176, %122
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %285

178:                                              ; preds = %90
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.StrSlice, ptr %21, i32 0, i32 0
  store ptr @.str.55, ptr %180, align 8, !tbaa !11
  %181 = getelementptr inbounds %struct.StrSlice, ptr %21, i32 0, i32 1
  store i64 3, ptr %181, align 8, !tbaa !14
  %182 = getelementptr inbounds %struct.StrSlice, ptr %22, i32 0, i32 0
  store ptr @.str.55, ptr %182, align 8, !tbaa !11
  %183 = getelementptr inbounds %struct.StrSlice, ptr %22, i32 0, i32 1
  store i64 3, ptr %183, align 8, !tbaa !14
  %184 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8
  %186 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %187 = load i64, ptr %186, align 8
  %188 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8
  %190 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %191 = load i64, ptr %190, align 8
  %192 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %179, ptr %185, i64 %187, ptr %189, i64 %191)
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %230

194:                                              ; preds = %178
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.StrSlice, ptr %23, i32 0, i32 0
  store ptr @.str.56, ptr %196, align 8, !tbaa !11
  %197 = getelementptr inbounds %struct.StrSlice, ptr %23, i32 0, i32 1
  store i64 6, ptr %197, align 8, !tbaa !14
  %198 = getelementptr inbounds %struct.StrSlice, ptr %24, i32 0, i32 0
  store ptr @.str.56, ptr %198, align 8, !tbaa !11
  %199 = getelementptr inbounds %struct.StrSlice, ptr %24, i32 0, i32 1
  store i64 6, ptr %199, align 8, !tbaa !14
  %200 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %201 = load ptr, ptr %200, align 8
  %202 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %203 = load i64, ptr %202, align 8
  %204 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8
  %206 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %207 = load i64, ptr %206, align 8
  %208 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %195, ptr %201, i64 %203, ptr %205, i64 %207)
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %210, label %211

210:                                              ; preds = %194
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %229

211:                                              ; preds = %194
  %212 = load ptr, ptr %5, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.StrSlice, ptr %25, i32 0, i32 0
  store ptr @.str.57, ptr %213, align 8, !tbaa !11
  %214 = getelementptr inbounds %struct.StrSlice, ptr %25, i32 0, i32 1
  store i64 6, ptr %214, align 8, !tbaa !14
  %215 = getelementptr inbounds %struct.StrSlice, ptr %26, i32 0, i32 0
  store ptr @.str.57, ptr %215, align 8, !tbaa !11
  %216 = getelementptr inbounds %struct.StrSlice, ptr %26, i32 0, i32 1
  store i64 6, ptr %216, align 8, !tbaa !14
  %217 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8
  %219 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %220 = load i64, ptr %219, align 8
  %221 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8
  %223 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %224 = load i64, ptr %223, align 8
  %225 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %212, ptr %218, i64 %220, ptr %222, i64 %224)
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %211
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %228

228:                                              ; preds = %227, %211
  br label %229

229:                                              ; preds = %228, %210
  br label %284

230:                                              ; preds = %178
  %231 = load ptr, ptr %5, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.StrSlice, ptr %27, i32 0, i32 0
  store ptr @.str.10, ptr %232, align 8, !tbaa !11
  %233 = getelementptr inbounds %struct.StrSlice, ptr %27, i32 0, i32 1
  store i64 6, ptr %233, align 8, !tbaa !14
  %234 = getelementptr inbounds %struct.StrSlice, ptr %28, i32 0, i32 0
  store ptr @.str.10, ptr %234, align 8, !tbaa !11
  %235 = getelementptr inbounds %struct.StrSlice, ptr %28, i32 0, i32 1
  store i64 6, ptr %235, align 8, !tbaa !14
  %236 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8
  %238 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %239 = load i64, ptr %238, align 8
  %240 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %241 = load ptr, ptr %240, align 8
  %242 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %243 = load i64, ptr %242, align 8
  %244 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %231, ptr %237, i64 %239, ptr %241, i64 %243)
  %245 = icmp ne i32 %244, 0
  br i1 %245, label %246, label %247

246:                                              ; preds = %230
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %283

247:                                              ; preds = %230
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.StrSlice, ptr %29, i32 0, i32 0
  store ptr @.str.12, ptr %249, align 8, !tbaa !11
  %250 = getelementptr inbounds %struct.StrSlice, ptr %29, i32 0, i32 1
  store i64 6, ptr %250, align 8, !tbaa !14
  %251 = getelementptr inbounds %struct.StrSlice, ptr %30, i32 0, i32 0
  store ptr @.str.12, ptr %251, align 8, !tbaa !11
  %252 = getelementptr inbounds %struct.StrSlice, ptr %30, i32 0, i32 1
  store i64 6, ptr %252, align 8, !tbaa !14
  %253 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %254 = load ptr, ptr %253, align 8
  %255 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %256 = load i64, ptr %255, align 8
  %257 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %258 = load ptr, ptr %257, align 8
  %259 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %260 = load i64, ptr %259, align 8
  %261 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %248, ptr %254, i64 %256, ptr %258, i64 %260)
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %247
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %282

264:                                              ; preds = %247
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.StrSlice, ptr %31, i32 0, i32 0
  store ptr @.str.58, ptr %266, align 8, !tbaa !11
  %267 = getelementptr inbounds %struct.StrSlice, ptr %31, i32 0, i32 1
  store i64 6, ptr %267, align 8, !tbaa !14
  %268 = getelementptr inbounds %struct.StrSlice, ptr %32, i32 0, i32 0
  store ptr @.str.58, ptr %268, align 8, !tbaa !11
  %269 = getelementptr inbounds %struct.StrSlice, ptr %32, i32 0, i32 1
  store i64 6, ptr %269, align 8, !tbaa !14
  %270 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8
  %272 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %273 = load i64, ptr %272, align 8
  %274 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %275 = load ptr, ptr %274, align 8
  %276 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %277 = load i64, ptr %276, align 8
  %278 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %265, ptr %271, i64 %273, ptr %275, i64 %277)
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %281

280:                                              ; preds = %264
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %281

281:                                              ; preds = %280, %264
  br label %282

282:                                              ; preds = %281, %263
  br label %283

283:                                              ; preds = %282, %246
  br label %284

284:                                              ; preds = %283, %229
  br label %285

285:                                              ; preds = %284, %177
  br label %484

286:                                              ; preds = %3
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.StrSlice, ptr %33, i32 0, i32 0
  store ptr @.str.59, ptr %288, align 8, !tbaa !11
  %289 = getelementptr inbounds %struct.StrSlice, ptr %33, i32 0, i32 1
  store i64 12, ptr %289, align 8, !tbaa !14
  %290 = getelementptr inbounds %struct.StrSlice, ptr %34, i32 0, i32 0
  store ptr @.str.10, ptr %290, align 8, !tbaa !11
  %291 = getelementptr inbounds %struct.StrSlice, ptr %34, i32 0, i32 1
  store i64 6, ptr %291, align 8, !tbaa !14
  %292 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %293 = load ptr, ptr %292, align 8
  %294 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %295 = load i64, ptr %294, align 8
  %296 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %297 = load ptr, ptr %296, align 8
  %298 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %299 = load i64, ptr %298, align 8
  %300 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %287, ptr %293, i64 %295, ptr %297, i64 %299)
  %301 = icmp ne i32 %300, 0
  br i1 %301, label %302, label %303

302:                                              ; preds = %286
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %483

303:                                              ; preds = %286
  %304 = load ptr, ptr %5, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.StrSlice, ptr %35, i32 0, i32 0
  store ptr @.str.60, ptr %305, align 8, !tbaa !11
  %306 = getelementptr inbounds %struct.StrSlice, ptr %35, i32 0, i32 1
  store i64 12, ptr %306, align 8, !tbaa !14
  %307 = getelementptr inbounds %struct.StrSlice, ptr %36, i32 0, i32 0
  store ptr @.str.61, ptr %307, align 8, !tbaa !11
  %308 = getelementptr inbounds %struct.StrSlice, ptr %36, i32 0, i32 1
  store i64 6, ptr %308, align 8, !tbaa !14
  %309 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %310 = load ptr, ptr %309, align 8
  %311 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %312 = load i64, ptr %311, align 8
  %313 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 0
  %314 = load ptr, ptr %313, align 8
  %315 = getelementptr inbounds { ptr, i64 }, ptr %36, i32 0, i32 1
  %316 = load i64, ptr %315, align 8
  %317 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %304, ptr %310, i64 %312, ptr %314, i64 %316)
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %319, label %320

319:                                              ; preds = %303
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %482

320:                                              ; preds = %303
  %321 = load ptr, ptr %5, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.StrSlice, ptr %37, i32 0, i32 0
  store ptr @.str.62, ptr %322, align 8, !tbaa !11
  %323 = getelementptr inbounds %struct.StrSlice, ptr %37, i32 0, i32 1
  store i64 13, ptr %323, align 8, !tbaa !14
  %324 = getelementptr inbounds %struct.StrSlice, ptr %38, i32 0, i32 0
  store ptr @.str.12, ptr %324, align 8, !tbaa !11
  %325 = getelementptr inbounds %struct.StrSlice, ptr %38, i32 0, i32 1
  store i64 6, ptr %325, align 8, !tbaa !14
  %326 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 0
  %327 = load ptr, ptr %326, align 8
  %328 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 1
  %329 = load i64, ptr %328, align 8
  %330 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 0
  %331 = load ptr, ptr %330, align 8
  %332 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 1
  %333 = load i64, ptr %332, align 8
  %334 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %321, ptr %327, i64 %329, ptr %331, i64 %333)
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %336, label %337

336:                                              ; preds = %320
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %481

337:                                              ; preds = %320
  %338 = load ptr, ptr %5, align 8, !tbaa !5
  %339 = getelementptr inbounds %struct.StrSlice, ptr %39, i32 0, i32 0
  store ptr @.str.63, ptr %339, align 8, !tbaa !11
  %340 = getelementptr inbounds %struct.StrSlice, ptr %39, i32 0, i32 1
  store i64 13, ptr %340, align 8, !tbaa !14
  %341 = getelementptr inbounds %struct.StrSlice, ptr %40, i32 0, i32 0
  store ptr @.str.64, ptr %341, align 8, !tbaa !11
  %342 = getelementptr inbounds %struct.StrSlice, ptr %40, i32 0, i32 1
  store i64 6, ptr %342, align 8, !tbaa !14
  %343 = getelementptr inbounds { ptr, i64 }, ptr %39, i32 0, i32 0
  %344 = load ptr, ptr %343, align 8
  %345 = getelementptr inbounds { ptr, i64 }, ptr %39, i32 0, i32 1
  %346 = load i64, ptr %345, align 8
  %347 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %348 = load ptr, ptr %347, align 8
  %349 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %350 = load i64, ptr %349, align 8
  %351 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %338, ptr %344, i64 %346, ptr %348, i64 %350)
  %352 = icmp ne i32 %351, 0
  br i1 %352, label %353, label %354

353:                                              ; preds = %337
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %480

354:                                              ; preds = %337
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.StrSlice, ptr %41, i32 0, i32 0
  store ptr @.str.65, ptr %356, align 8, !tbaa !11
  %357 = getelementptr inbounds %struct.StrSlice, ptr %41, i32 0, i32 1
  store i64 13, ptr %357, align 8, !tbaa !14
  %358 = getelementptr inbounds %struct.StrSlice, ptr %42, i32 0, i32 0
  store ptr @.str.66, ptr %358, align 8, !tbaa !11
  %359 = getelementptr inbounds %struct.StrSlice, ptr %42, i32 0, i32 1
  store i64 9, ptr %359, align 8, !tbaa !14
  %360 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 0
  %361 = load ptr, ptr %360, align 8
  %362 = getelementptr inbounds { ptr, i64 }, ptr %41, i32 0, i32 1
  %363 = load i64, ptr %362, align 8
  %364 = getelementptr inbounds { ptr, i64 }, ptr %42, i32 0, i32 0
  %365 = load ptr, ptr %364, align 8
  %366 = getelementptr inbounds { ptr, i64 }, ptr %42, i32 0, i32 1
  %367 = load i64, ptr %366, align 8
  %368 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %355, ptr %361, i64 %363, ptr %365, i64 %367)
  %369 = icmp ne i32 %368, 0
  br i1 %369, label %370, label %371

370:                                              ; preds = %354
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %479

371:                                              ; preds = %354
  %372 = load ptr, ptr %5, align 8, !tbaa !5
  %373 = getelementptr inbounds %struct.StrSlice, ptr %43, i32 0, i32 0
  store ptr @.str.67, ptr %373, align 8, !tbaa !11
  %374 = getelementptr inbounds %struct.StrSlice, ptr %43, i32 0, i32 1
  store i64 16, ptr %374, align 8, !tbaa !14
  %375 = getelementptr inbounds %struct.StrSlice, ptr %44, i32 0, i32 0
  store ptr @.str.39, ptr %375, align 8, !tbaa !11
  %376 = getelementptr inbounds %struct.StrSlice, ptr %44, i32 0, i32 1
  store i64 10, ptr %376, align 8, !tbaa !14
  %377 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 0
  %378 = load ptr, ptr %377, align 8
  %379 = getelementptr inbounds { ptr, i64 }, ptr %43, i32 0, i32 1
  %380 = load i64, ptr %379, align 8
  %381 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %382 = load ptr, ptr %381, align 8
  %383 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %384 = load i64, ptr %383, align 8
  %385 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %372, ptr %378, i64 %380, ptr %382, i64 %384)
  %386 = icmp ne i32 %385, 0
  br i1 %386, label %387, label %388

387:                                              ; preds = %371
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %478

388:                                              ; preds = %371
  %389 = load ptr, ptr %5, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.StrSlice, ptr %45, i32 0, i32 0
  store ptr @.str.68, ptr %390, align 8, !tbaa !11
  %391 = getelementptr inbounds %struct.StrSlice, ptr %45, i32 0, i32 1
  store i64 3, ptr %391, align 8, !tbaa !14
  %392 = getelementptr inbounds %struct.StrSlice, ptr %46, i32 0, i32 0
  store ptr @.str.69, ptr %392, align 8, !tbaa !11
  %393 = getelementptr inbounds %struct.StrSlice, ptr %46, i32 0, i32 1
  store i64 5, ptr %393, align 8, !tbaa !14
  %394 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 0
  %395 = load ptr, ptr %394, align 8
  %396 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 1
  %397 = load i64, ptr %396, align 8
  %398 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 0
  %399 = load ptr, ptr %398, align 8
  %400 = getelementptr inbounds { ptr, i64 }, ptr %46, i32 0, i32 1
  %401 = load i64, ptr %400, align 8
  %402 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %389, ptr %395, i64 %397, ptr %399, i64 %401)
  %403 = icmp ne i32 %402, 0
  br i1 %403, label %404, label %405

404:                                              ; preds = %388
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %477

405:                                              ; preds = %388
  %406 = load ptr, ptr %5, align 8, !tbaa !5
  %407 = getelementptr inbounds %struct.StrSlice, ptr %47, i32 0, i32 0
  store ptr @.str.70, ptr %407, align 8, !tbaa !11
  %408 = getelementptr inbounds %struct.StrSlice, ptr %47, i32 0, i32 1
  store i64 5, ptr %408, align 8, !tbaa !14
  %409 = getelementptr inbounds %struct.StrSlice, ptr %48, i32 0, i32 0
  store ptr @.str.70, ptr %409, align 8, !tbaa !11
  %410 = getelementptr inbounds %struct.StrSlice, ptr %48, i32 0, i32 1
  store i64 5, ptr %410, align 8, !tbaa !14
  %411 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 0
  %412 = load ptr, ptr %411, align 8
  %413 = getelementptr inbounds { ptr, i64 }, ptr %47, i32 0, i32 1
  %414 = load i64, ptr %413, align 8
  %415 = getelementptr inbounds { ptr, i64 }, ptr %48, i32 0, i32 0
  %416 = load ptr, ptr %415, align 8
  %417 = getelementptr inbounds { ptr, i64 }, ptr %48, i32 0, i32 1
  %418 = load i64, ptr %417, align 8
  %419 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %406, ptr %412, i64 %414, ptr %416, i64 %418)
  %420 = icmp ne i32 %419, 0
  br i1 %420, label %421, label %422

421:                                              ; preds = %405
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %476

422:                                              ; preds = %405
  %423 = load ptr, ptr %5, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.StrSlice, ptr %49, i32 0, i32 0
  store ptr @.str.71, ptr %424, align 8, !tbaa !11
  %425 = getelementptr inbounds %struct.StrSlice, ptr %49, i32 0, i32 1
  store i64 8, ptr %425, align 8, !tbaa !14
  %426 = getelementptr inbounds %struct.StrSlice, ptr %50, i32 0, i32 0
  store ptr @.str.71, ptr %426, align 8, !tbaa !11
  %427 = getelementptr inbounds %struct.StrSlice, ptr %50, i32 0, i32 1
  store i64 8, ptr %427, align 8, !tbaa !14
  %428 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 0
  %429 = load ptr, ptr %428, align 8
  %430 = getelementptr inbounds { ptr, i64 }, ptr %49, i32 0, i32 1
  %431 = load i64, ptr %430, align 8
  %432 = getelementptr inbounds { ptr, i64 }, ptr %50, i32 0, i32 0
  %433 = load ptr, ptr %432, align 8
  %434 = getelementptr inbounds { ptr, i64 }, ptr %50, i32 0, i32 1
  %435 = load i64, ptr %434, align 8
  %436 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %423, ptr %429, i64 %431, ptr %433, i64 %435)
  %437 = icmp ne i32 %436, 0
  br i1 %437, label %438, label %439

438:                                              ; preds = %422
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %475

439:                                              ; preds = %422
  %440 = load ptr, ptr %5, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.StrSlice, ptr %51, i32 0, i32 0
  store ptr @.str.72, ptr %441, align 8, !tbaa !11
  %442 = getelementptr inbounds %struct.StrSlice, ptr %51, i32 0, i32 1
  store i64 9, ptr %442, align 8, !tbaa !14
  %443 = getelementptr inbounds %struct.StrSlice, ptr %52, i32 0, i32 0
  store ptr @.str.72, ptr %443, align 8, !tbaa !11
  %444 = getelementptr inbounds %struct.StrSlice, ptr %52, i32 0, i32 1
  store i64 9, ptr %444, align 8, !tbaa !14
  %445 = getelementptr inbounds { ptr, i64 }, ptr %51, i32 0, i32 0
  %446 = load ptr, ptr %445, align 8
  %447 = getelementptr inbounds { ptr, i64 }, ptr %51, i32 0, i32 1
  %448 = load i64, ptr %447, align 8
  %449 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 0
  %450 = load ptr, ptr %449, align 8
  %451 = getelementptr inbounds { ptr, i64 }, ptr %52, i32 0, i32 1
  %452 = load i64, ptr %451, align 8
  %453 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %440, ptr %446, i64 %448, ptr %450, i64 %452)
  %454 = icmp ne i32 %453, 0
  br i1 %454, label %455, label %456

455:                                              ; preds = %439
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %474

456:                                              ; preds = %439
  %457 = load ptr, ptr %5, align 8, !tbaa !5
  %458 = getelementptr inbounds %struct.StrSlice, ptr %53, i32 0, i32 0
  store ptr @.str.69, ptr %458, align 8, !tbaa !11
  %459 = getelementptr inbounds %struct.StrSlice, ptr %53, i32 0, i32 1
  store i64 5, ptr %459, align 8, !tbaa !14
  %460 = getelementptr inbounds %struct.StrSlice, ptr %54, i32 0, i32 0
  store ptr @.str.69, ptr %460, align 8, !tbaa !11
  %461 = getelementptr inbounds %struct.StrSlice, ptr %54, i32 0, i32 1
  store i64 5, ptr %461, align 8, !tbaa !14
  %462 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 0
  %463 = load ptr, ptr %462, align 8
  %464 = getelementptr inbounds { ptr, i64 }, ptr %53, i32 0, i32 1
  %465 = load i64, ptr %464, align 8
  %466 = getelementptr inbounds { ptr, i64 }, ptr %54, i32 0, i32 0
  %467 = load ptr, ptr %466, align 8
  %468 = getelementptr inbounds { ptr, i64 }, ptr %54, i32 0, i32 1
  %469 = load i64, ptr %468, align 8
  %470 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %457, ptr %463, i64 %465, ptr %467, i64 %469)
  %471 = icmp ne i32 %470, 0
  br i1 %471, label %472, label %473

472:                                              ; preds = %456
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %473

473:                                              ; preds = %472, %456
  br label %474

474:                                              ; preds = %473, %455
  br label %475

475:                                              ; preds = %474, %438
  br label %476

476:                                              ; preds = %475, %421
  br label %477

477:                                              ; preds = %476, %404
  br label %478

478:                                              ; preds = %477, %387
  br label %479

479:                                              ; preds = %478, %370
  br label %480

480:                                              ; preds = %479, %353
  br label %481

481:                                              ; preds = %480, %336
  br label %482

482:                                              ; preds = %481, %319
  br label %483

483:                                              ; preds = %482, %302
  br label %484

484:                                              ; preds = %483, %285
  %485 = load i32, ptr %6, align 4, !tbaa !9
  %486 = icmp sgt i32 %485, 0
  br i1 %486, label %487, label %496

487:                                              ; preds = %484
  %488 = load ptr, ptr %5, align 8, !tbaa !5
  %489 = getelementptr inbounds %struct.StrSlice, ptr %4, i32 0, i32 1
  %490 = load i64, ptr %489, align 8, !tbaa !14
  %491 = trunc i64 %490 to i32
  %492 = getelementptr inbounds %struct.StrSlice, ptr %4, i32 0, i32 0
  %493 = load ptr, ptr %492, align 8, !tbaa !11
  %494 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  %495 = call ptr @dynbuf_append(ptr noundef %488, i32 noundef %491, ptr noundef %493, i64 noundef 1, i32 noundef 1, ptr noundef %494)
  br label %496

496:                                              ; preds = %487, %484
  %497 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  ret i32 %497
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"StrSlice", !6, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!12, !13, 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.StrSlice = type { ptr, i64 }

@g_allocator_dopt = external local_unnamed_addr global ptr, align 8
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.55 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.56 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.57 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.58 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [10 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @tnconv_prefix_match_replace(ptr noundef, ptr noundef, ptr, i64, ptr, i64) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @dynbuf_append(ptr noundef, i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @tnconv_number_match_push(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @tnconv_unet_block(ptr %0, i64 %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = alloca %struct.StrSlice, align 8
  store ptr %0, ptr %4, align 8
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  store i64 %1, ptr %5, align 8
  %6 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.44, i64 19, ptr nonnull @.str.45, i64 7)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %32, label %7

7:                                                ; preds = %3
  %8 = call i32 @tnconv_number_match_push(ptr noundef nonnull %4, ptr noundef %2)
  %9 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.46, i64 6, ptr nonnull @.str.46, i64 6)
  %.not132 = icmp eq i32 %9, 0
  br i1 %.not132, label %10, label %12

10:                                               ; preds = %7
  %11 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.47, i64 6, ptr nonnull @.str.47, i64 6)
  %.not133 = icmp eq i32 %11, 0
  br i1 %.not133, label %20, label %12

12:                                               ; preds = %10, %7
  %13 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.48, i64 5, ptr nonnull @.str.49, i64 7)
  %.not140 = icmp eq i32 %13, 0
  br i1 %.not140, label %14, label %.thread

14:                                               ; preds = %12
  %15 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.50, i64 5, ptr nonnull @.str.51, i64 7)
  %.not141 = icmp eq i32 %15, 0
  br i1 %.not141, label %16, label %.thread

16:                                               ; preds = %14
  %17 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.52, i64 5, ptr nonnull @.str.53, i64 7)
  %.not142 = icmp eq i32 %17, 0
  br i1 %.not142, label %18, label %.thread

18:                                               ; preds = %16
  %19 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.54, i64 9, ptr nonnull @.str.29, i64 9)
  br label %.thread

20:                                               ; preds = %10
  %21 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.55, i64 3, ptr nonnull @.str.55, i64 3)
  %.not134 = icmp eq i32 %21, 0
  br i1 %.not134, label %26, label %22

22:                                               ; preds = %20
  %23 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.56, i64 6, ptr nonnull @.str.56, i64 6)
  %.not138 = icmp eq i32 %23, 0
  br i1 %.not138, label %24, label %.thread

24:                                               ; preds = %22
  %25 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.57, i64 6, ptr nonnull @.str.57, i64 6)
  %.not139.not.not = icmp eq i32 %25, 0
  br i1 %.not139.not.not, label %59, label %.thread

26:                                               ; preds = %20
  %27 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.10, i64 6, ptr nonnull @.str.10, i64 6)
  %.not135 = icmp eq i32 %27, 0
  br i1 %.not135, label %28, label %.thread

28:                                               ; preds = %26
  %29 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.12, i64 6, ptr nonnull @.str.12, i64 6)
  %.not136 = icmp eq i32 %29, 0
  br i1 %.not136, label %30, label %.thread

30:                                               ; preds = %28
  %31 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.58, i64 6, ptr nonnull @.str.58, i64 6)
  %.not137.not.not = icmp eq i32 %31, 0
  br i1 %.not137.not.not, label %59, label %.thread

32:                                               ; preds = %3
  %33 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.59, i64 12, ptr nonnull @.str.10, i64 6)
  %.not121 = icmp eq i32 %33, 0
  br i1 %.not121, label %34, label %.thread

34:                                               ; preds = %32
  %35 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.60, i64 12, ptr nonnull @.str.61, i64 6)
  %.not122 = icmp eq i32 %35, 0
  br i1 %.not122, label %36, label %.thread

36:                                               ; preds = %34
  %37 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.62, i64 13, ptr nonnull @.str.12, i64 6)
  %.not123 = icmp eq i32 %37, 0
  br i1 %.not123, label %38, label %.thread

38:                                               ; preds = %36
  %39 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.63, i64 13, ptr nonnull @.str.64, i64 6)
  %.not124 = icmp eq i32 %39, 0
  br i1 %.not124, label %40, label %.thread

40:                                               ; preds = %38
  %41 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.65, i64 13, ptr nonnull @.str.66, i64 9)
  %.not125 = icmp eq i32 %41, 0
  br i1 %.not125, label %42, label %.thread

42:                                               ; preds = %40
  %43 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.67, i64 16, ptr nonnull @.str.39, i64 10)
  %.not126 = icmp eq i32 %43, 0
  br i1 %.not126, label %44, label %.thread

44:                                               ; preds = %42
  %45 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.68, i64 3, ptr nonnull @.str.69, i64 5)
  %.not127 = icmp eq i32 %45, 0
  br i1 %.not127, label %46, label %.thread

46:                                               ; preds = %44
  %47 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.70, i64 5, ptr nonnull @.str.70, i64 5)
  %.not128 = icmp eq i32 %47, 0
  br i1 %.not128, label %48, label %.thread

48:                                               ; preds = %46
  %49 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.71, i64 8, ptr nonnull @.str.71, i64 8)
  %.not129 = icmp eq i32 %49, 0
  br i1 %.not129, label %50, label %.thread

50:                                               ; preds = %48
  %51 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.72, i64 9, ptr nonnull @.str.72, i64 9)
  %.not130 = icmp eq i32 %51, 0
  br i1 %.not130, label %52, label %.thread

52:                                               ; preds = %50
  %53 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.69, i64 5, ptr nonnull @.str.69, i64 5)
  %.not131.not.not = icmp eq i32 %53, 0
  br i1 %.not131.not.not, label %59, label %.thread

.thread:                                          ; preds = %50, %48, %46, %44, %42, %40, %38, %36, %34, %32, %28, %26, %22, %18, %12, %14, %16, %30, %24, %52
  %54 = load i64, ptr %5, align 8, !tbaa !5
  %55 = trunc i64 %54 to i32
  %56 = load ptr, ptr %4, align 8, !tbaa !11
  %57 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !12
  %58 = call ptr @dynbuf_append(ptr noundef %2, i32 noundef %55, ptr noundef %56, i64 noundef 1, i32 noundef 1, ptr noundef %57)
  br label %59

59:                                               ; preds = %30, %24, %.thread, %52
  %.0150 = phi i32 [ 1, %.thread ], [ 0, %52 ], [ 0, %24 ], [ 0, %30 ]
  ret i32 %.0150
}

attributes #0 = { 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 #1 = { inlinehint 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" }

!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, !10, i64 8}
!6 = !{!"StrSlice", !7, i64 0, !10, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!7, !7, i64 0}


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