; 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.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.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.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [9 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_clip_2(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 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 0
  store ptr %0, ptr %35, align 8
  %36 = getelementptr inbounds { ptr, i64 }, ptr %4, i32 0, i32 1
  store i64 %1, ptr %36, 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
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.StrSlice, ptr %7, i32 0, i32 0
  store ptr @.str.20, ptr %38, align 8, !tbaa !11
  %39 = getelementptr inbounds %struct.StrSlice, ptr %7, i32 0, i32 1
  store i64 6, ptr %39, align 8, !tbaa !14
  %40 = getelementptr inbounds %struct.StrSlice, ptr %8, i32 0, i32 0
  store ptr @.str.1, ptr %40, align 8, !tbaa !11
  %41 = getelementptr inbounds %struct.StrSlice, ptr %8, i32 0, i32 1
  store i64 5, ptr %41, align 8, !tbaa !14
  %42 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, i64 }, ptr %7, i32 0, i32 1
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %8, i32 0, i32 1
  %49 = load i64, ptr %48, align 8
  %50 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %37, ptr %43, i64 %45, ptr %47, i64 %49)
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %285

52:                                               ; preds = %3
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.StrSlice, ptr %9, i32 0, i32 0
  store ptr @.str.17, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.StrSlice, ptr %9, i32 0, i32 1
  store i64 9, ptr %55, align 8, !tbaa !14
  %56 = getelementptr inbounds %struct.StrSlice, ptr %10, i32 0, i32 0
  store ptr @.str.17, ptr %56, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.StrSlice, ptr %10, i32 0, i32 1
  store i64 9, ptr %57, align 8, !tbaa !14
  %58 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %59 = load ptr, ptr %58, align 8
  %60 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %61 = load i64, ptr %60, align 8
  %62 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i64 }, ptr %10, i32 0, i32 1
  %65 = load i64, ptr %64, align 8
  %66 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %53, ptr %59, i64 %61, ptr %63, i64 %65)
  %67 = icmp ne i32 %66, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %52
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %284

69:                                               ; preds = %52
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.StrSlice, ptr %11, i32 0, i32 0
  store ptr @.str.6, ptr %71, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.StrSlice, ptr %11, i32 0, i32 1
  store i64 16, ptr %72, align 8, !tbaa !14
  %73 = getelementptr inbounds %struct.StrSlice, ptr %12, i32 0, i32 0
  store ptr @.str.21, ptr %73, align 8, !tbaa !11
  %74 = getelementptr inbounds %struct.StrSlice, ptr %12, i32 0, i32 1
  store i64 12, ptr %74, align 8, !tbaa !14
  %75 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8
  %77 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %78 = load i64, ptr %77, align 8
  %79 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8
  %81 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %82 = load i64, ptr %81, align 8
  %83 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %70, ptr %76, i64 %78, ptr %80, i64 %82)
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

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

86:                                               ; preds = %69
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.StrSlice, ptr %13, i32 0, i32 0
  store ptr @.str.22, ptr %88, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.StrSlice, ptr %13, i32 0, i32 1
  store i64 20, ptr %89, align 8, !tbaa !14
  %90 = getelementptr inbounds %struct.StrSlice, ptr %14, i32 0, i32 0
  store ptr @.str.23, ptr %90, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.StrSlice, ptr %14, i32 0, i32 1
  store i64 21, ptr %91, align 8, !tbaa !14
  %92 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8
  %94 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8
  %98 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %99 = load i64, ptr %98, align 8
  %100 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %87, ptr %93, i64 %95, ptr %97, i64 %99)
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %102, label %103

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

103:                                              ; preds = %86
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.StrSlice, ptr %15, i32 0, i32 0
  store ptr @.str.18, ptr %105, align 8, !tbaa !11
  %106 = getelementptr inbounds %struct.StrSlice, ptr %15, i32 0, i32 1
  store i64 15, ptr %106, align 8, !tbaa !14
  %107 = getelementptr inbounds %struct.StrSlice, ptr %16, i32 0, i32 0
  store ptr @.str.19, ptr %107, align 8, !tbaa !11
  %108 = getelementptr inbounds %struct.StrSlice, ptr %16, i32 0, i32 1
  store i64 9, ptr %108, align 8, !tbaa !14
  %109 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8
  %111 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %112 = load i64, ptr %111, align 8
  %113 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8
  %115 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %116 = load i64, ptr %115, align 8
  %117 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %104, ptr %110, i64 %112, ptr %114, i64 %116)
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %120

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

120:                                              ; preds = %103
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.StrSlice, ptr %17, i32 0, i32 0
  store ptr @.str.24, ptr %122, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.StrSlice, ptr %17, i32 0, i32 1
  store i64 22, ptr %123, align 8, !tbaa !14
  %124 = getelementptr inbounds %struct.StrSlice, ptr %18, i32 0, i32 0
  store ptr @.str.8, ptr %124, align 8, !tbaa !11
  %125 = getelementptr inbounds %struct.StrSlice, ptr %18, i32 0, i32 1
  store i64 15, ptr %125, align 8, !tbaa !14
  %126 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %129 = load i64, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %133 = load i64, ptr %132, align 8
  %134 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %121, ptr %127, i64 %129, ptr %131, i64 %133)
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %280

136:                                              ; preds = %120
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = call i32 @tnconv_number_match_push(ptr noundef %4, ptr noundef %137)
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.StrSlice, ptr %19, i32 0, i32 0
  store ptr @.str.25, ptr %140, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.StrSlice, ptr %19, i32 0, i32 1
  store i64 5, ptr %141, align 8, !tbaa !14
  %142 = getelementptr inbounds %struct.StrSlice, ptr %20, i32 0, i32 0
  store ptr @.str.10, ptr %142, align 8, !tbaa !11
  %143 = getelementptr inbounds %struct.StrSlice, ptr %20, i32 0, i32 1
  store i64 6, ptr %143, align 8, !tbaa !14
  %144 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8
  %146 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %147 = load i64, ptr %146, align 8
  %148 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8
  %150 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %151 = load i64, ptr %150, align 8
  %152 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %139, ptr %145, i64 %147, ptr %149, i64 %151)
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %136
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %279

155:                                              ; preds = %136
  %156 = load ptr, ptr %5, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.StrSlice, ptr %21, i32 0, i32 0
  store ptr @.str.26, ptr %157, align 8, !tbaa !11
  %158 = getelementptr inbounds %struct.StrSlice, ptr %21, i32 0, i32 1
  store i64 5, ptr %158, align 8, !tbaa !14
  %159 = getelementptr inbounds %struct.StrSlice, ptr %22, i32 0, i32 0
  store ptr @.str.12, ptr %159, align 8, !tbaa !11
  %160 = getelementptr inbounds %struct.StrSlice, ptr %22, i32 0, i32 1
  store i64 6, ptr %160, align 8, !tbaa !14
  %161 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 0
  %162 = load ptr, ptr %161, align 8
  %163 = getelementptr inbounds { ptr, i64 }, ptr %21, i32 0, i32 1
  %164 = load i64, ptr %163, align 8
  %165 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8
  %167 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %168 = load i64, ptr %167, align 8
  %169 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %156, ptr %162, i64 %164, ptr %166, i64 %168)
  %170 = icmp ne i32 %169, 0
  br i1 %170, label %171, label %172

171:                                              ; preds = %155
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %278

172:                                              ; preds = %155
  %173 = load ptr, ptr %5, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.StrSlice, ptr %23, i32 0, i32 0
  store ptr @.str.14, ptr %174, align 8, !tbaa !11
  %175 = getelementptr inbounds %struct.StrSlice, ptr %23, i32 0, i32 1
  store i64 5, ptr %175, align 8, !tbaa !14
  %176 = getelementptr inbounds %struct.StrSlice, ptr %24, i32 0, i32 0
  store ptr @.str.14, ptr %176, align 8, !tbaa !11
  %177 = getelementptr inbounds %struct.StrSlice, ptr %24, i32 0, i32 1
  store i64 5, ptr %177, align 8, !tbaa !14
  %178 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8
  %180 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %181 = load i64, ptr %180, align 8
  %182 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8
  %184 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %185 = load i64, ptr %184, align 8
  %186 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %173, ptr %179, i64 %181, ptr %183, i64 %185)
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %188, label %241

188:                                              ; preds = %172
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.StrSlice, ptr %25, i32 0, i32 0
  store ptr @.str.27, ptr %190, align 8, !tbaa !11
  %191 = getelementptr inbounds %struct.StrSlice, ptr %25, i32 0, i32 1
  store i64 12, ptr %191, align 8, !tbaa !14
  %192 = getelementptr inbounds %struct.StrSlice, ptr %26, i32 0, i32 0
  store ptr @.str.27, ptr %192, align 8, !tbaa !11
  %193 = getelementptr inbounds %struct.StrSlice, ptr %26, i32 0, i32 1
  store i64 12, ptr %193, align 8, !tbaa !14
  %194 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8
  %196 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %197 = load i64, ptr %196, align 8
  %198 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8
  %200 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %201 = load i64, ptr %200, align 8
  %202 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %189, ptr %195, i64 %197, ptr %199, i64 %201)
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %205

204:                                              ; preds = %188
  store i32 2, ptr %6, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %204, %188
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.StrSlice, ptr %27, i32 0, i32 0
  store ptr @.str.28, ptr %207, align 8, !tbaa !11
  %208 = getelementptr inbounds %struct.StrSlice, ptr %27, i32 0, i32 1
  store i64 14, ptr %208, align 8, !tbaa !14
  %209 = getelementptr inbounds %struct.StrSlice, ptr %28, i32 0, i32 0
  store ptr @.str.28, ptr %209, align 8, !tbaa !11
  %210 = getelementptr inbounds %struct.StrSlice, ptr %28, i32 0, i32 1
  store i64 14, ptr %210, align 8, !tbaa !14
  %211 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %212 = load ptr, ptr %211, align 8
  %213 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %214 = load i64, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8
  %217 = getelementptr inbounds { ptr, i64 }, ptr %28, i32 0, i32 1
  %218 = load i64, ptr %217, align 8
  %219 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %206, ptr %212, i64 %214, ptr %216, i64 %218)
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %221, label %222

221:                                              ; preds = %205
  store i32 2, ptr %6, align 4, !tbaa !9
  br label %240

222:                                              ; preds = %205
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.StrSlice, ptr %29, i32 0, i32 0
  store ptr @.str.29, ptr %224, align 8, !tbaa !11
  %225 = getelementptr inbounds %struct.StrSlice, ptr %29, i32 0, i32 1
  store i64 9, ptr %225, align 8, !tbaa !14
  %226 = getelementptr inbounds %struct.StrSlice, ptr %30, i32 0, i32 0
  store ptr @.str.29, ptr %226, align 8, !tbaa !11
  %227 = getelementptr inbounds %struct.StrSlice, ptr %30, i32 0, i32 1
  store i64 9, ptr %227, align 8, !tbaa !14
  %228 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %229 = load ptr, ptr %228, align 8
  %230 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %231 = load i64, ptr %230, align 8
  %232 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8
  %234 = getelementptr inbounds { ptr, i64 }, ptr %30, i32 0, i32 1
  %235 = load i64, ptr %234, align 8
  %236 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %223, ptr %229, i64 %231, ptr %233, i64 %235)
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %238, label %239

238:                                              ; preds = %222
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %239

239:                                              ; preds = %238, %222
  br label %240

240:                                              ; preds = %239, %221
  br label %277

241:                                              ; preds = %172
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.StrSlice, ptr %31, i32 0, i32 0
  store ptr @.str.30, ptr %243, align 8, !tbaa !11
  %244 = getelementptr inbounds %struct.StrSlice, ptr %31, i32 0, i32 1
  store i64 9, ptr %244, align 8, !tbaa !14
  %245 = getelementptr inbounds %struct.StrSlice, ptr %32, i32 0, i32 0
  store ptr @.str.31, ptr %245, align 8, !tbaa !11
  %246 = getelementptr inbounds %struct.StrSlice, ptr %32, i32 0, i32 1
  store i64 8, ptr %246, align 8, !tbaa !14
  %247 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8
  %249 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %250 = load i64, ptr %249, align 8
  %251 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8
  %253 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %254 = load i64, ptr %253, align 8
  %255 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %242, ptr %248, i64 %250, ptr %252, i64 %254)
  %256 = icmp ne i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %241
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %276

258:                                              ; preds = %241
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.StrSlice, ptr %33, i32 0, i32 0
  store ptr @.str.32, ptr %260, align 8, !tbaa !11
  %261 = getelementptr inbounds %struct.StrSlice, ptr %33, i32 0, i32 1
  store i64 11, ptr %261, align 8, !tbaa !14
  %262 = getelementptr inbounds %struct.StrSlice, ptr %34, i32 0, i32 0
  store ptr @.str.33, ptr %262, align 8, !tbaa !11
  %263 = getelementptr inbounds %struct.StrSlice, ptr %34, i32 0, i32 1
  store i64 8, ptr %263, align 8, !tbaa !14
  %264 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %265 = load ptr, ptr %264, align 8
  %266 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %267 = load i64, ptr %266, align 8
  %268 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8
  %270 = getelementptr inbounds { ptr, i64 }, ptr %34, i32 0, i32 1
  %271 = load i64, ptr %270, align 8
  %272 = call i32 @tnconv_prefix_match_replace(ptr noundef %4, ptr noundef %259, ptr %265, i64 %267, ptr %269, i64 %271)
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %274, label %275

274:                                              ; preds = %258
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %275

275:                                              ; preds = %274, %258
  br label %276

276:                                              ; preds = %275, %257
  br label %277

277:                                              ; preds = %276, %240
  br label %278

278:                                              ; preds = %277, %171
  br label %279

279:                                              ; preds = %278, %154
  br label %280

280:                                              ; preds = %279, %120
  br label %281

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

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

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

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

285:                                              ; preds = %284, %3
  %286 = load i32, ptr %6, align 4, !tbaa !9
  %287 = icmp sgt i32 %286, 0
  br i1 %287, label %288, label %297

288:                                              ; preds = %285
  %289 = load ptr, ptr %5, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.StrSlice, ptr %4, i32 0, i32 1
  %291 = load i64, ptr %290, align 8, !tbaa !14
  %292 = trunc i64 %291 to i32
  %293 = getelementptr inbounds %struct.StrSlice, ptr %4, i32 0, i32 0
  %294 = load ptr, ptr %293, align 8, !tbaa !11
  %295 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !5
  %296 = call ptr @dynbuf_append(ptr noundef %289, i32 noundef %292, ptr noundef %294, i64 noundef 1, i32 noundef 1, ptr noundef %295)
  br label %297

297:                                              ; preds = %288, %285
  %298 = load i32, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  ret i32 %298
}

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.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [16 x i8], align 1
@.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.14 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [9 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, 3) i32 @tnconv_clip_2(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.20, i64 6, ptr nonnull @.str.1, i64 5)
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.thread91, label %7

7:                                                ; preds = %3
  %8 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.17, i64 9, ptr nonnull @.str.17, i64 9)
  %.not71 = icmp eq i32 %8, 0
  br i1 %.not71, label %9, label %.thread

9:                                                ; preds = %7
  %10 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.6, i64 16, ptr nonnull @.str.21, i64 12)
  %.not72 = icmp eq i32 %10, 0
  br i1 %.not72, label %11, label %.thread

11:                                               ; preds = %9
  %12 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.22, i64 20, ptr nonnull @.str.23, i64 21)
  %.not73 = icmp eq i32 %12, 0
  br i1 %.not73, label %13, label %.thread

13:                                               ; preds = %11
  %14 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.18, i64 15, ptr nonnull @.str.19, i64 9)
  %.not74 = icmp eq i32 %14, 0
  br i1 %.not74, label %15, label %.thread

15:                                               ; preds = %13
  %16 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.24, i64 22, ptr nonnull @.str.8, i64 15)
  %.not75 = icmp eq i32 %16, 0
  br i1 %.not75, label %.thread91, label %17

17:                                               ; preds = %15
  %18 = call i32 @tnconv_number_match_push(ptr noundef nonnull %4, ptr noundef %2)
  %19 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.25, i64 5, ptr nonnull @.str.10, i64 6)
  %.not76 = icmp eq i32 %19, 0
  br i1 %.not76, label %20, label %.thread

20:                                               ; preds = %17
  %21 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.26, i64 5, ptr nonnull @.str.12, i64 6)
  %.not77 = icmp eq i32 %21, 0
  br i1 %.not77, label %22, label %.thread

22:                                               ; preds = %20
  %23 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.14, i64 5, ptr nonnull @.str.14, i64 5)
  %.not78 = icmp eq i32 %23, 0
  br i1 %.not78, label %29, label %24

24:                                               ; preds = %22
  %25 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.27, i64 12, ptr nonnull @.str.27, i64 12)
  %26 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.28, i64 14, ptr nonnull @.str.28, i64 14)
  %.not82 = icmp eq i32 %26, 0
  br i1 %.not82, label %27, label %.thread

27:                                               ; preds = %24
  %.not81 = icmp ne i32 %25, 0
  %28 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.29, i64 9, ptr nonnull @.str.29, i64 9)
  %.not83 = icmp ne i32 %28, 0
  %brmerge = select i1 %.not83, i1 true, i1 %.not81
  %.mux = select i1 %.not83, i32 1, i32 2
  br i1 %brmerge, label %.thread, label %.thread91

29:                                               ; preds = %22
  %30 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.30, i64 9, ptr nonnull @.str.31, i64 8)
  %.not79 = icmp eq i32 %30, 0
  br i1 %.not79, label %31, label %.thread

31:                                               ; preds = %29
  %32 = call i32 @tnconv_prefix_match_replace(ptr noundef nonnull %4, ptr noundef %2, ptr nonnull @.str.32, i64 11, ptr nonnull @.str.33, i64 8)
  %.not80 = icmp eq i32 %32, 0
  br i1 %.not80, label %.thread91, label %.thread

.thread:                                          ; preds = %27, %31, %29, %24, %20, %17, %13, %11, %9, %7
  %.189 = phi i32 [ 1, %31 ], [ 1, %29 ], [ %.mux, %27 ], [ 2, %24 ], [ 1, %20 ], [ 1, %17 ], [ 1, %13 ], [ 1, %11 ], [ 1, %9 ], [ 1, %7 ]
  %33 = load i64, ptr %5, align 8, !tbaa !5
  %34 = trunc i64 %33 to i32
  %35 = load ptr, ptr %4, align 8, !tbaa !11
  %36 = load ptr, ptr @g_allocator_dopt, align 8, !tbaa !12
  %37 = call ptr @dynbuf_append(ptr noundef %2, i32 noundef %34, ptr noundef %35, i64 noundef 1, i32 noundef 1, ptr noundef %36)
  br label %.thread91

.thread91:                                        ; preds = %27, %31, %3, %15, %.thread
  %.188 = phi i32 [ %.189, %.thread ], [ 0, %15 ], [ 0, %3 ], [ 0, %31 ], [ 0, %27 ]
  ret i32 %.188
}

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: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass