; LLVM IR from begeekmyfriend/leetcode :: 0126_word_ladder_ii (word_ladder)

; 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.list_head = type { ptr, ptr }
%struct.word_node = type { ptr, %struct.list_head, %struct.list_head, %struct.list_head, i32, i32, [0 x ptr] }

; Function Attrs: nounwind uwtable
define dso_local ptr @findLadders(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.list_head, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = call i64 @strlen(ptr noundef %39) #8
  %41 = trunc i64 %40 to i32
  store i32 %41, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %42 = load i32, ptr %11, align 4, !tbaa !9
  %43 = mul nsw i32 %42, 2
  store i32 %43, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  %46 = sext i32 %45 to i64
  %47 = call noalias ptr @malloc(i64 noundef %46) #9
  store ptr %47, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %48 = load i32, ptr %16, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = mul i64 %49, 16
  %51 = call noalias ptr @malloc(i64 noundef %50) #9
  store ptr %51, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %61, %6
  %53 = load i32, ptr %14, align 4, !tbaa !9
  %54 = load i32, ptr %16, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %56, label %64

56:                                               ; preds = %52
  %57 = load ptr, ptr %18, align 8, !tbaa !5
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds %struct.list_head, ptr %57, i64 %59
  call void @INIT_LIST_HEAD(ptr noundef %60)
  br label %61

61:                                               ; preds = %56
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %14, align 4, !tbaa !9
  br label %52, !llvm.loop !11

64:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %65 = load i32, ptr %11, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = mul i64 %66, 16
  %68 = call noalias ptr @malloc(i64 noundef %67) #9
  store ptr %68, ptr %19, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %78, %64
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load i32, ptr %11, align 4, !tbaa !9
  %72 = icmp slt i32 %70, %71
  br i1 %72, label %73, label %81

73:                                               ; preds = %69
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %struct.list_head, ptr %74, i64 %76
  call void @INIT_LIST_HEAD(ptr noundef %77)
  br label %78

78:                                               ; preds = %73
  %79 = load i32, ptr %14, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %14, align 4, !tbaa !9
  br label %69, !llvm.loop !13

81:                                               ; preds = %69
  %82 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %82, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  store i8 0, ptr %20, align 1, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %121, %81
  %84 = load i32, ptr %14, align 4, !tbaa !9
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = icmp slt i32 %84, %85
  br i1 %86, label %87, label %124

87:                                               ; preds = %83
  %88 = call noalias ptr @malloc(i64 noundef 64) #9
  store ptr %88, ptr %21, align 8, !tbaa !5
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i32, ptr %14, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load ptr, ptr %21, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.word_node, ptr %94, i32 0, i32 0
  store ptr %93, ptr %95, align 8, !tbaa !5
  %96 = load ptr, ptr %21, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.word_node, ptr %96, i32 0, i32 5
  store i32 0, ptr %97, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %14, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds ptr, ptr %98, i64 %100
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = call i32 @BKDRHash(ptr noundef %102, i32 noundef %103)
  store i32 %104, ptr %23, align 4, !tbaa !9
  %105 = load ptr, ptr %21, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.word_node, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load i32, ptr %23, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds %struct.list_head, ptr %107, i64 %109
  call void @list_add(ptr noundef %106, ptr noundef %110)
  %111 = load ptr, ptr %9, align 8, !tbaa !5
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i32, ptr %14, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = call i32 @strcmp(ptr noundef %111, ptr noundef %116) #8
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %120, label %119

119:                                              ; preds = %87
  store i8 1, ptr %20, align 1, !tbaa !14
  br label %120

120:                                              ; preds = %119, %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %121

121:                                              ; preds = %120
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %14, align 4, !tbaa !9
  br label %83, !llvm.loop !16

124:                                              ; preds = %83
  %125 = load i8, ptr %20, align 1, !tbaa !14, !range !17, !noundef !18
  %126 = trunc i8 %125 to i1
  br i1 %126, label %128, label %127

127:                                              ; preds = %124
  store ptr null, ptr %7, align 8
  store i32 1, ptr %24, align 4
  br label %486

128:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  call void @INIT_LIST_HEAD(ptr noundef %25)
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %129 = call noalias ptr @malloc(i64 noundef 72) #9
  store ptr %129, ptr %26, align 8, !tbaa !5
  %130 = load ptr, ptr %8, align 8, !tbaa !5
  %131 = load ptr, ptr %26, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.word_node, ptr %131, i32 0, i32 0
  store ptr %130, ptr %132, align 8, !tbaa !5
  %133 = load ptr, ptr %26, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.word_node, ptr %133, i32 0, i32 5
  store i32 1, ptr %134, align 4, !tbaa !9
  %135 = load ptr, ptr %26, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.word_node, ptr %135, i32 0, i32 4
  store i32 1, ptr %136, align 8, !tbaa !9
  %137 = load ptr, ptr %26, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.word_node, ptr %137, i32 0, i32 6
  %139 = getelementptr inbounds [0 x ptr], ptr %138, i64 0, i64 0
  store ptr null, ptr %139, align 8, !tbaa !5
  %140 = load ptr, ptr %26, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.word_node, ptr %140, i32 0, i32 2
  %142 = load ptr, ptr %19, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.list_head, ptr %142, i64 0
  call void @list_add_tail(ptr noundef %141, ptr noundef %143)
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = call ptr @find(ptr noundef %144, ptr noundef %145, i32 noundef %146, i32 noundef 1)
  store ptr %147, ptr %21, align 8, !tbaa !5
  %148 = load ptr, ptr %21, align 8, !tbaa !5
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %153

150:                                              ; preds = %128
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.word_node, ptr %151, i32 0, i32 5
  store i32 1, ptr %152, align 4, !tbaa !9
  br label %153

153:                                              ; preds = %150, %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %154 = load ptr, ptr %26, align 8, !tbaa !5
  store ptr %154, ptr %27, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %316, %153
  %156 = load ptr, ptr %27, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.word_node, ptr %156, i32 0, i32 0
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load ptr, ptr %9, align 8, !tbaa !5
  %160 = call i32 @strcmp(ptr noundef %158, ptr noundef %159) #8
  %161 = icmp ne i32 %160, 0
  br i1 %161, label %162, label %317

162:                                              ; preds = %155
  %163 = load ptr, ptr %17, align 8, !tbaa !5
  %164 = load ptr, ptr %27, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.word_node, ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !5
  %167 = call ptr @strcpy(ptr noundef %163, ptr noundef %166) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %303, %162
  %169 = load i32, ptr %14, align 4, !tbaa !9
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = icmp slt i32 %169, %170
  br i1 %171, label %172, label %306

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #7
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i8, ptr %173, i64 %175
  %177 = load i8, ptr %176, align 1, !tbaa !19
  store i8 %177, ptr %29, align 1, !tbaa !19
  store i8 97, ptr %28, align 1, !tbaa !19
  br label %178

178:                                              ; preds = %294, %172
  %179 = load i8, ptr %28, align 1, !tbaa !19
  %180 = sext i8 %179 to i32
  %181 = icmp sle i32 %180, 122
  br i1 %181, label %182, label %297

182:                                              ; preds = %178
  %183 = load i8, ptr %28, align 1, !tbaa !19
  %184 = sext i8 %183 to i32
  %185 = load i8, ptr %29, align 1, !tbaa !19
  %186 = sext i8 %185 to i32
  %187 = icmp eq i32 %184, %186
  br i1 %187, label %188, label %189

188:                                              ; preds = %182
  br label %294

189:                                              ; preds = %182
  %190 = load i8, ptr %28, align 1, !tbaa !19
  %191 = load ptr, ptr %17, align 8, !tbaa !5
  %192 = load i32, ptr %14, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %191, i64 %193
  store i8 %190, ptr %194, align 1, !tbaa !19
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  %196 = load ptr, ptr %18, align 8, !tbaa !5
  %197 = load i32, ptr %16, align 4, !tbaa !9
  %198 = load ptr, ptr %27, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.word_node, ptr %198, i32 0, i32 5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  %202 = call ptr @find(ptr noundef %195, ptr noundef %196, i32 noundef %197, i32 noundef %201)
  store ptr %202, ptr %21, align 8, !tbaa !5
  %203 = load ptr, ptr %21, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %293

205:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 1, ptr %30, align 4, !tbaa !9
  %206 = load ptr, ptr %19, align 8, !tbaa !5
  %207 = load ptr, ptr %27, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.word_node, ptr %207, i32 0, i32 5
  %209 = load i32, ptr %208, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds %struct.list_head, ptr %206, i64 %210
  %212 = getelementptr inbounds %struct.list_head, ptr %211, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !20
  %214 = getelementptr inbounds i8, ptr %213, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 2) to i64))
  store ptr %214, ptr %22, align 8, !tbaa !5
  br label %215

215:                                              ; preds = %244, %205
  %216 = load ptr, ptr %22, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.word_node, ptr %216, i32 0, i32 2
  %218 = load ptr, ptr %19, align 8, !tbaa !5
  %219 = load ptr, ptr %27, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.word_node, ptr %219, i32 0, i32 5
  %221 = load i32, ptr %220, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds %struct.list_head, ptr %218, i64 %222
  %224 = icmp ne ptr %217, %223
  br i1 %224, label %225, label %250

225:                                              ; preds = %215
  %226 = load ptr, ptr %22, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.word_node, ptr %226, i32 0, i32 0
  %228 = load ptr, ptr %227, align 8, !tbaa !5
  %229 = load ptr, ptr %21, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.word_node, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = icmp eq ptr %228, %231
  br i1 %232, label %233, label %243

233:                                              ; preds = %225
  store i32 0, ptr %30, align 4, !tbaa !9
  %234 = load ptr, ptr %27, align 8, !tbaa !5
  %235 = load ptr, ptr %22, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.word_node, ptr %235, i32 0, i32 6
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.word_node, ptr %237, i32 0, i32 4
  %239 = load i32, ptr %238, align 8, !tbaa !9
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %238, align 8, !tbaa !9
  %241 = sext i32 %239 to i64
  %242 = getelementptr inbounds [0 x ptr], ptr %236, i64 0, i64 %241
  store ptr %234, ptr %242, align 8, !tbaa !5
  br label %250

243:                                              ; preds = %225
  br label %244

244:                                              ; preds = %243
  %245 = load ptr, ptr %22, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.word_node, ptr %245, i32 0, i32 2
  %247 = getelementptr inbounds %struct.list_head, ptr %246, i32 0, i32 0
  %248 = load ptr, ptr %247, align 8, !tbaa !20
  %249 = getelementptr inbounds i8, ptr %248, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 2) to i64))
  store ptr %249, ptr %22, align 8, !tbaa !5
  br label %215, !llvm.loop !22

250:                                              ; preds = %233, %215
  %251 = load i32, ptr %30, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %292

253:                                              ; preds = %250
  %254 = load ptr, ptr %27, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.word_node, ptr %254, i32 0, i32 5
  %256 = load i32, ptr %255, align 4, !tbaa !9
  %257 = add nsw i32 %256, 1
  %258 = load ptr, ptr %21, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.word_node, ptr %258, i32 0, i32 5
  store i32 %257, ptr %259, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %260 = call noalias ptr @malloc(i64 noundef 184) #9
  store ptr %260, ptr %31, align 8, !tbaa !5
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.word_node, ptr %261, i32 0, i32 0
  %263 = load ptr, ptr %262, align 8, !tbaa !5
  %264 = load ptr, ptr %31, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.word_node, ptr %264, i32 0, i32 0
  store ptr %263, ptr %265, align 8, !tbaa !5
  %266 = load ptr, ptr %21, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.word_node, ptr %266, i32 0, i32 5
  %268 = load i32, ptr %267, align 4, !tbaa !9
  %269 = load ptr, ptr %31, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.word_node, ptr %269, i32 0, i32 5
  store i32 %268, ptr %270, align 4, !tbaa !9
  %271 = load ptr, ptr %31, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.word_node, ptr %271, i32 0, i32 4
  store i32 0, ptr %272, align 8, !tbaa !9
  %273 = load ptr, ptr %31, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.word_node, ptr %273, i32 0, i32 2
  %275 = load ptr, ptr %19, align 8, !tbaa !5
  %276 = load ptr, ptr %27, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.word_node, ptr %276, i32 0, i32 5
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = sext i32 %278 to i64
  %280 = getelementptr inbounds %struct.list_head, ptr %275, i64 %279
  call void @list_add_tail(ptr noundef %274, ptr noundef %280)
  %281 = load ptr, ptr %31, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.word_node, ptr %281, i32 0, i32 3
  call void @list_add_tail(ptr noundef %282, ptr noundef %25)
  %283 = load ptr, ptr %27, align 8, !tbaa !5
  %284 = load ptr, ptr %31, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.word_node, ptr %284, i32 0, i32 6
  %286 = load ptr, ptr %31, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.word_node, ptr %286, i32 0, i32 4
  %288 = load i32, ptr %287, align 8, !tbaa !9
  %289 = add nsw i32 %288, 1
  store i32 %289, ptr %287, align 8, !tbaa !9
  %290 = sext i32 %288 to i64
  %291 = getelementptr inbounds [0 x ptr], ptr %285, i64 0, i64 %290
  store ptr %283, ptr %291, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %292

292:                                              ; preds = %253, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %293

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

294:                                              ; preds = %293, %188
  %295 = load i8, ptr %28, align 1, !tbaa !19
  %296 = add i8 %295, 1
  store i8 %296, ptr %28, align 1, !tbaa !19
  br label %178, !llvm.loop !23

297:                                              ; preds = %178
  %298 = load i8, ptr %29, align 1, !tbaa !19
  %299 = load ptr, ptr %17, align 8, !tbaa !5
  %300 = load i32, ptr %14, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds i8, ptr %299, i64 %301
  store i8 %298, ptr %302, align 1, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #7
  br label %303

303:                                              ; preds = %297
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %14, align 4, !tbaa !9
  br label %168, !llvm.loop !24

306:                                              ; preds = %168
  %307 = call i32 @list_empty(ptr noundef %25)
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %310

309:                                              ; preds = %306
  store ptr null, ptr %7, align 8
  store i32 1, ptr %24, align 4
  br label %485

310:                                              ; preds = %306
  %311 = getelementptr inbounds %struct.list_head, ptr %25, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !20
  %313 = getelementptr inbounds i8, ptr %312, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 3) to i64))
  store ptr %313, ptr %27, align 8, !tbaa !5
  %314 = load ptr, ptr %27, align 8, !tbaa !5
  %315 = getelementptr inbounds %struct.word_node, ptr %314, i32 0, i32 3
  call void @list_del(ptr noundef %315)
  br label %316

316:                                              ; preds = %310
  br label %155, !llvm.loop !25

317:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %318 = load ptr, ptr %27, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.word_node, ptr %318, i32 0, i32 5
  %320 = load i32, ptr %319, align 4, !tbaa !9
  store i32 %320, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %321 = call noalias ptr @malloc(i64 noundef 8000) #9
  store ptr %321, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %322 = load i32, ptr %32, align 4, !tbaa !9
  %323 = sext i32 %322 to i64
  %324 = mul i64 %323, 4
  %325 = call noalias ptr @malloc(i64 noundef %324) #9
  store ptr %325, ptr %34, align 8, !tbaa !5
  %326 = load ptr, ptr %34, align 8, !tbaa !5
  %327 = load i32, ptr %32, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = mul i64 %328, 4
  call void @llvm.memset.p0.i64(ptr align 4 %326, i8 0, i64 %329, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %330 = load i32, ptr %32, align 4, !tbaa !9
  %331 = sext i32 %330 to i64
  %332 = mul i64 %331, 8
  %333 = call noalias ptr @malloc(i64 noundef %332) #9
  store ptr %333, ptr %35, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %334 = load ptr, ptr %19, align 8, !tbaa !5
  %335 = load i32, ptr %32, align 4, !tbaa !9
  %336 = sub nsw i32 %335, 1
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds %struct.list_head, ptr %334, i64 %337
  %339 = getelementptr inbounds %struct.list_head, ptr %338, i32 0, i32 0
  %340 = load ptr, ptr %339, align 8, !tbaa !20
  %341 = getelementptr inbounds i8, ptr %340, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 2) to i64))
  store ptr %341, ptr %36, align 8, !tbaa !5
  br label %342

342:                                              ; preds = %455, %317
  %343 = load ptr, ptr %36, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.word_node, ptr %343, i32 0, i32 2
  %345 = load ptr, ptr %19, align 8, !tbaa !5
  %346 = load i32, ptr %32, align 4, !tbaa !9
  %347 = sub nsw i32 %346, 1
  %348 = sext i32 %347 to i64
  %349 = getelementptr inbounds %struct.list_head, ptr %345, i64 %348
  %350 = icmp ne ptr %344, %349
  br i1 %350, label %351, label %461

351:                                              ; preds = %342
  %352 = load ptr, ptr %36, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.word_node, ptr %352, i32 0, i32 0
  %354 = load ptr, ptr %353, align 8, !tbaa !5
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  %356 = call i32 @strcmp(ptr noundef %354, ptr noundef %355) #8
  %357 = icmp ne i32 %356, 0
  br i1 %357, label %454, label %358

358:                                              ; preds = %351
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  store i32 1, ptr %37, align 4, !tbaa !9
  br label %359

359:                                              ; preds = %449, %358
  %360 = load i32, ptr %37, align 4, !tbaa !9
  %361 = icmp ne i32 %360, 0
  br i1 %361, label %362, label %453

362:                                              ; preds = %359
  store i32 0, ptr %37, align 4, !tbaa !9
  %363 = load ptr, ptr %36, align 8, !tbaa !5
  store ptr %363, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %364 = load i32, ptr %32, align 4, !tbaa !9
  %365 = sext i32 %364 to i64
  %366 = mul i64 %365, 8
  %367 = call noalias ptr @malloc(i64 noundef %366) #9
  %368 = load ptr, ptr %33, align 8, !tbaa !5
  %369 = load ptr, ptr %12, align 8, !tbaa !5
  %370 = load i32, ptr %369, align 4, !tbaa !9
  %371 = sext i32 %370 to i64
  %372 = getelementptr inbounds ptr, ptr %368, i64 %371
  store ptr %367, ptr %372, align 8, !tbaa !5
  store ptr %367, ptr %38, align 8, !tbaa !5
  %373 = load i32, ptr %32, align 4, !tbaa !9
  %374 = sub nsw i32 %373, 1
  store i32 %374, ptr %14, align 4, !tbaa !9
  br label %375

375:                                              ; preds = %411, %362
  %376 = load i32, ptr %14, align 4, !tbaa !9
  %377 = icmp sge i32 %376, 0
  br i1 %377, label %378, label %414

378:                                              ; preds = %375
  %379 = load i32, ptr %15, align 4, !tbaa !9
  %380 = add nsw i32 %379, 1
  %381 = sext i32 %380 to i64
  %382 = call noalias ptr @malloc(i64 noundef %381) #9
  %383 = load ptr, ptr %38, align 8, !tbaa !5
  %384 = load i32, ptr %14, align 4, !tbaa !9
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds ptr, ptr %383, i64 %385
  store ptr %382, ptr %386, align 8, !tbaa !5
  %387 = load ptr, ptr %38, align 8, !tbaa !5
  %388 = load i32, ptr %14, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds ptr, ptr %387, i64 %389
  %391 = load ptr, ptr %390, align 8, !tbaa !5
  %392 = load ptr, ptr %22, align 8, !tbaa !5
  %393 = getelementptr inbounds %struct.word_node, ptr %392, i32 0, i32 0
  %394 = load ptr, ptr %393, align 8, !tbaa !5
  %395 = call ptr @strcpy(ptr noundef %391, ptr noundef %394) #7
  %396 = load ptr, ptr %22, align 8, !tbaa !5
  %397 = load ptr, ptr %35, align 8, !tbaa !5
  %398 = load i32, ptr %14, align 4, !tbaa !9
  %399 = sext i32 %398 to i64
  %400 = getelementptr inbounds ptr, ptr %397, i64 %399
  store ptr %396, ptr %400, align 8, !tbaa !5
  %401 = load ptr, ptr %22, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.word_node, ptr %401, i32 0, i32 6
  %403 = load ptr, ptr %34, align 8, !tbaa !5
  %404 = load i32, ptr %14, align 4, !tbaa !9
  %405 = sext i32 %404 to i64
  %406 = getelementptr inbounds i32, ptr %403, i64 %405
  %407 = load i32, ptr %406, align 4, !tbaa !9
  %408 = sext i32 %407 to i64
  %409 = getelementptr inbounds [0 x ptr], ptr %402, i64 0, i64 %408
  %410 = load ptr, ptr %409, align 8, !tbaa !5
  store ptr %410, ptr %22, align 8, !tbaa !5
  br label %411

411:                                              ; preds = %378
  %412 = load i32, ptr %14, align 4, !tbaa !9
  %413 = add nsw i32 %412, -1
  store i32 %413, ptr %14, align 4, !tbaa !9
  br label %375, !llvm.loop !26

414:                                              ; preds = %375
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %415

415:                                              ; preds = %446, %414
  %416 = load i32, ptr %14, align 4, !tbaa !9
  %417 = load i32, ptr %32, align 4, !tbaa !9
  %418 = icmp slt i32 %416, %417
  br i1 %418, label %419, label %449

419:                                              ; preds = %415
  %420 = load ptr, ptr %34, align 8, !tbaa !5
  %421 = load i32, ptr %14, align 4, !tbaa !9
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds i32, ptr %420, i64 %422
  %424 = load i32, ptr %423, align 4, !tbaa !9
  %425 = load ptr, ptr %35, align 8, !tbaa !5
  %426 = load i32, ptr %14, align 4, !tbaa !9
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds ptr, ptr %425, i64 %427
  %429 = load ptr, ptr %428, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.word_node, ptr %429, i32 0, i32 4
  %431 = load i32, ptr %430, align 8, !tbaa !9
  %432 = sub nsw i32 %431, 1
  %433 = icmp slt i32 %424, %432
  br i1 %433, label %434, label %445

434:                                              ; preds = %419
  %435 = load ptr, ptr %34, align 8, !tbaa !5
  %436 = load i32, ptr %14, align 4, !tbaa !9
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds i32, ptr %435, i64 %437
  %439 = load i32, ptr %438, align 4, !tbaa !9
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %438, align 4, !tbaa !9
  %441 = load ptr, ptr %34, align 8, !tbaa !5
  %442 = load i32, ptr %14, align 4, !tbaa !9
  %443 = sext i32 %442 to i64
  %444 = mul i64 %443, 4
  call void @llvm.memset.p0.i64(ptr align 4 %441, i8 0, i64 %444, i1 false)
  store i32 1, ptr %37, align 4, !tbaa !9
  br label %449

445:                                              ; preds = %419
  br label %446

446:                                              ; preds = %445
  %447 = load i32, ptr %14, align 4, !tbaa !9
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %14, align 4, !tbaa !9
  br label %415, !llvm.loop !27

449:                                              ; preds = %434, %415
  %450 = load ptr, ptr %12, align 8, !tbaa !5
  %451 = load i32, ptr %450, align 4, !tbaa !9
  %452 = add nsw i32 %451, 1
  store i32 %452, ptr %450, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  br label %359, !llvm.loop !28

453:                                              ; preds = %359
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %454

454:                                              ; preds = %453, %351
  br label %455

455:                                              ; preds = %454
  %456 = load ptr, ptr %36, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.word_node, ptr %456, i32 0, i32 2
  %458 = getelementptr inbounds %struct.list_head, ptr %457, i32 0, i32 0
  %459 = load ptr, ptr %458, align 8, !tbaa !20
  %460 = getelementptr inbounds i8, ptr %459, i64 sub (i64 0, i64 ptrtoint (ptr getelementptr inbounds (%struct.word_node, ptr null, i32 0, i32 2) to i64))
  store ptr %460, ptr %36, align 8, !tbaa !5
  br label %342, !llvm.loop !29

461:                                              ; preds = %342
  %462 = load ptr, ptr %12, align 8, !tbaa !5
  %463 = load i32, ptr %462, align 4, !tbaa !9
  %464 = sext i32 %463 to i64
  %465 = mul i64 %464, 4
  %466 = call noalias ptr @malloc(i64 noundef %465) #9
  %467 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %466, ptr %467, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %468

468:                                              ; preds = %480, %461
  %469 = load i32, ptr %14, align 4, !tbaa !9
  %470 = load ptr, ptr %12, align 8, !tbaa !5
  %471 = load i32, ptr %470, align 4, !tbaa !9
  %472 = icmp slt i32 %469, %471
  br i1 %472, label %473, label %483

473:                                              ; preds = %468
  %474 = load i32, ptr %32, align 4, !tbaa !9
  %475 = load ptr, ptr %13, align 8, !tbaa !5
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = load i32, ptr %14, align 4, !tbaa !9
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds i32, ptr %476, i64 %478
  store i32 %474, ptr %479, align 4, !tbaa !9
  br label %480

480:                                              ; preds = %473
  %481 = load i32, ptr %14, align 4, !tbaa !9
  %482 = add nsw i32 %481, 1
  store i32 %482, ptr %14, align 4, !tbaa !9
  br label %468, !llvm.loop !30

483:                                              ; preds = %468
  %484 = load ptr, ptr %33, align 8, !tbaa !5
  store ptr %484, ptr %7, align 8
  store i32 1, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  br label %485

485:                                              ; preds = %483, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %486

486:                                              ; preds = %485, %127
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %487 = load ptr, ptr %7, align 8
  ret ptr %487
}

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @INIT_LIST_HEAD(ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden i32 @BKDRHash(ptr noundef, i32 noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add_tail(ptr noundef, ptr noundef) #4

; Function Attrs: nounwind uwtable
declare hidden ptr @find(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @list_empty(ptr noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_del(ptr noundef) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind willreturn memory(read) "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 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 #4 = { 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 #5 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !6, i64 0}
!21 = !{!"list_head", !6, i64 0, !6, i64 8}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = distinct !{!24, !12}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !12}
!28 = distinct !{!28, !12}
!29 = distinct !{!29, !12}
!30 = distinct !{!30, !12}


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

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @findLadders(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = alloca %struct.list_head, align 8
  %8 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %0) #9
  %9 = trunc i64 %8 to i32
  %10 = shl nsw i32 %3, 1
  %11 = shl i64 %8, 32
  %sext = add i64 %11, 4294967296
  %12 = ashr exact i64 %sext, 32
  %13 = tail call noalias ptr @malloc(i64 noundef %12) #10
  %14 = sext i32 %10 to i64
  %15 = shl nsw i64 %14, 4
  %16 = tail call noalias ptr @malloc(i64 noundef %15) #10
  %17 = icmp sgt i32 %3, 0
  br i1 %17, label %.lr.ph.preheader, label %._crit_edge193.thread

.lr.ph.preheader:                                 ; preds = %6
  %smax = tail call i32 @llvm.smax.i32(i32 %10, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %18 = getelementptr inbounds %struct.list_head, ptr %16, i64 %indvars.iv
  tail call void @INIT_LIST_HEAD(ptr noundef %18)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !5

._crit_edge:                                      ; preds = %.lr.ph
  %19 = zext nneg i32 %3 to i64
  %20 = shl nuw nsw i64 %19, 4
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #10
  br i1 %17, label %.lr.ph192.preheader, label %._crit_edge193.thread

.lr.ph192.preheader:                              ; preds = %._crit_edge
  %wide.trip.count273 = zext nneg i32 %3 to i64
  br label %.lr.ph192

.lr.ph192:                                        ; preds = %.lr.ph192.preheader, %.lr.ph192
  %indvars.iv270 = phi i64 [ 0, %.lr.ph192.preheader ], [ %indvars.iv.next271, %.lr.ph192 ]
  %22 = getelementptr inbounds %struct.list_head, ptr %21, i64 %indvars.iv270
  tail call void @INIT_LIST_HEAD(ptr noundef %22)
  %indvars.iv.next271 = add nuw nsw i64 %indvars.iv270, 1
  %exitcond274.not = icmp eq i64 %indvars.iv.next271, %wide.trip.count273
  br i1 %exitcond274.not, label %._crit_edge193, label %.lr.ph192, !llvm.loop !7

._crit_edge193.thread:                            ; preds = %._crit_edge, %6
  store i32 0, ptr %4, align 4, !tbaa !8
  br label %.critedge248

._crit_edge193:                                   ; preds = %.lr.ph192
  store i32 0, ptr %4, align 4, !tbaa !8
  br i1 %17, label %.lr.ph197.preheader, label %.critedge248

.lr.ph197.preheader:                              ; preds = %._crit_edge193
  %wide.trip.count277 = zext nneg i32 %3 to i64
  br label %.lr.ph197

.lr.ph197:                                        ; preds = %.lr.ph197.preheader, %.lr.ph197
  %indvars.iv275 = phi i64 [ 0, %.lr.ph197.preheader ], [ %indvars.iv.next276, %.lr.ph197 ]
  %.0156194 = phi i1 [ false, %.lr.ph197.preheader ], [ %spec.select, %.lr.ph197 ]
  %23 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #10
  %24 = getelementptr inbounds ptr, ptr %2, i64 %indvars.iv275
  %25 = load ptr, ptr %24, align 8, !tbaa !12
  store ptr %25, ptr %23, align 8, !tbaa !12
  %26 = getelementptr inbounds i8, ptr %23, i64 60
  store i32 0, ptr %26, align 4, !tbaa !8
  %27 = tail call i32 @BKDRHash(ptr noundef %25, i32 noundef %10)
  %28 = getelementptr inbounds i8, ptr %23, i64 8
  %29 = sext i32 %27 to i64
  %30 = getelementptr inbounds %struct.list_head, ptr %16, i64 %29
  tail call void @list_add(ptr noundef nonnull %28, ptr noundef %30)
  %31 = load ptr, ptr %24, align 8, !tbaa !12
  %32 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %1, ptr noundef nonnull dereferenceable(1) %31) #9
  %.not180 = icmp eq i32 %32, 0
  %spec.select = select i1 %.not180, i1 true, i1 %.0156194
  %indvars.iv.next276 = add nuw nsw i64 %indvars.iv275, 1
  %exitcond278.not = icmp eq i64 %indvars.iv.next276, %wide.trip.count277
  br i1 %exitcond278.not, label %._crit_edge198, label %.lr.ph197, !llvm.loop !14

._crit_edge198:                                   ; preds = %.lr.ph197
  br i1 %spec.select, label %33, label %.critedge248

33:                                               ; preds = %._crit_edge198
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #11
  call void @INIT_LIST_HEAD(ptr noundef nonnull %7)
  %34 = call noalias dereferenceable_or_null(72) ptr @malloc(i64 noundef 72) #10
  store ptr %0, ptr %34, align 8, !tbaa !12
  %35 = getelementptr inbounds i8, ptr %34, i64 60
  store i32 1, ptr %35, align 4, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %34, i64 56
  store i32 1, ptr %36, align 8, !tbaa !8
  %37 = getelementptr inbounds i8, ptr %34, i64 64
  store ptr null, ptr %37, align 8, !tbaa !12
  %38 = getelementptr inbounds i8, ptr %34, i64 24
  call void @list_add_tail(ptr noundef nonnull %38, ptr noundef %21)
  %39 = call ptr @find(ptr noundef %0, ptr noundef %16, i32 noundef %10, i32 noundef 1)
  %.not = icmp eq ptr %39, null
  br i1 %.not, label %42, label %40

40:                                               ; preds = %33
  %41 = getelementptr inbounds i8, ptr %39, i64 60
  store i32 1, ptr %41, align 4, !tbaa !8
  br label %42

42:                                               ; preds = %40, %33
  %43 = load ptr, ptr %34, align 8, !tbaa !12
  %44 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %43, ptr noundef nonnull dereferenceable(1) %1) #9
  %.not171204 = icmp eq i32 %44, 0
  br i1 %.not171204, label %._crit_edge208, label %.lr.ph207

.lr.ph207:                                        ; preds = %42
  %45 = icmp sgt i32 %9, 0
  %wide.trip.count283 = and i64 %8, 2147483647
  br label %46

46:                                               ; preds = %.lr.ph207, %91
  %47 = phi ptr [ %43, %.lr.ph207 ], [ %94, %91 ]
  %.0161205 = phi ptr [ %34, %.lr.ph207 ], [ %93, %91 ]
  %48 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %13, ptr noundef nonnull dereferenceable(1) %47) #11
  br i1 %45, label %.lr.ph202, label %._crit_edge203

.lr.ph202:                                        ; preds = %46
  %49 = getelementptr inbounds i8, ptr %.0161205, i64 60
  br label %50

50:                                               ; preds = %.lr.ph202, %89
  %indvars.iv280 = phi i64 [ 0, %.lr.ph202 ], [ %indvars.iv.next281, %89 ]
  %51 = getelementptr inbounds i8, ptr %13, i64 %indvars.iv280
  %52 = load i8, ptr %51, align 1, !tbaa !15
  br label %53

53:                                               ; preds = %50, %87
  %.0162199 = phi i8 [ 97, %50 ], [ %88, %87 ]
  %54 = icmp eq i8 %.0162199, %52
  br i1 %54, label %87, label %55

55:                                               ; preds = %53
  store i8 %.0162199, ptr %51, align 1, !tbaa !15
  %56 = load i32, ptr %49, align 4, !tbaa !8
  %57 = add nsw i32 %56, 1
  %58 = call ptr @find(ptr noundef %13, ptr noundef %16, i32 noundef %10, i32 noundef %57)
  %.not176 = icmp eq ptr %58, null
  br i1 %.not176, label %87, label %59

59:                                               ; preds = %55
  %60 = load i32, ptr %49, align 4, !tbaa !8
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %struct.list_head, ptr %21, i64 %61
  br label %63

63:                                               ; preds = %64, %59
  %.pn177.in = phi ptr [ %62, %59 ], [ %.pn177, %64 ]
  %.pn177 = load ptr, ptr %.pn177.in, align 8, !tbaa !16
  %.not178.not = icmp eq ptr %.pn177, %62
  br i1 %.not178.not, label %.critedge, label %64

64:                                               ; preds = %63
  %.0158 = getelementptr inbounds i8, ptr %.pn177, i64 -24
  %65 = load ptr, ptr %.0158, align 8, !tbaa !12
  %66 = load ptr, ptr %58, align 8, !tbaa !12
  %67 = icmp eq ptr %65, %66
  br i1 %67, label %68, label %63, !llvm.loop !18

68:                                               ; preds = %64
  %69 = getelementptr inbounds i8, ptr %.pn177, i64 40
  %70 = getelementptr inbounds i8, ptr %.pn177, i64 32
  br label %.sink.split

.critedge:                                        ; preds = %63
  %71 = add nsw i32 %60, 1
  %72 = getelementptr inbounds i8, ptr %58, i64 60
  store i32 %71, ptr %72, align 4, !tbaa !8
  %73 = call noalias dereferenceable_or_null(184) ptr @malloc(i64 noundef 184) #10
  %74 = load ptr, ptr %58, align 8, !tbaa !12
  store ptr %74, ptr %73, align 8, !tbaa !12
  %75 = getelementptr inbounds i8, ptr %73, i64 60
  store i32 %71, ptr %75, align 4, !tbaa !8
  %76 = getelementptr inbounds i8, ptr %73, i64 56
  store i32 0, ptr %76, align 8, !tbaa !8
  %77 = getelementptr inbounds i8, ptr %73, i64 24
  %78 = load i32, ptr %49, align 4, !tbaa !8
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %struct.list_head, ptr %21, i64 %79
  call void @list_add_tail(ptr noundef nonnull %77, ptr noundef %80)
  %81 = getelementptr inbounds i8, ptr %73, i64 40
  call void @list_add_tail(ptr noundef nonnull %81, ptr noundef nonnull %7)
  %82 = getelementptr inbounds i8, ptr %73, i64 64
  br label %.sink.split

.sink.split:                                      ; preds = %.critedge, %68
  %.sink327 = phi ptr [ %70, %68 ], [ %76, %.critedge ]
  %.sink322 = phi ptr [ %69, %68 ], [ %82, %.critedge ]
  %83 = load i32, ptr %.sink327, align 8, !tbaa !8
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %.sink327, align 8, !tbaa !8
  %85 = sext i32 %83 to i64
  %86 = getelementptr inbounds [0 x ptr], ptr %.sink322, i64 0, i64 %85
  store ptr %.0161205, ptr %86, align 8, !tbaa !12
  br label %87

87:                                               ; preds = %.sink.split, %55, %53
  %88 = add nuw nsw i8 %.0162199, 1
  %exitcond279.not = icmp eq i8 %88, 123
  br i1 %exitcond279.not, label %89, label %53, !llvm.loop !19

89:                                               ; preds = %87
  store i8 %52, ptr %51, align 1, !tbaa !15
  %indvars.iv.next281 = add nuw nsw i64 %indvars.iv280, 1
  %exitcond284.not = icmp eq i64 %indvars.iv.next281, %wide.trip.count283
  br i1 %exitcond284.not, label %._crit_edge203, label %50, !llvm.loop !20

._crit_edge203:                                   ; preds = %89, %46
  %90 = call i32 @list_empty(ptr noundef nonnull %7)
  %.not175 = icmp eq i32 %90, 0
  br i1 %.not175, label %91, label %.loopexit

91:                                               ; preds = %._crit_edge203
  %92 = load ptr, ptr %7, align 8, !tbaa !16
  %93 = getelementptr inbounds i8, ptr %92, i64 -40
  call void @list_del(ptr noundef %92)
  %94 = load ptr, ptr %93, align 8, !tbaa !12
  %95 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %94, ptr noundef nonnull dereferenceable(1) %1) #9
  %.not171 = icmp eq i32 %95, 0
  br i1 %.not171, label %._crit_edge208, label %46, !llvm.loop !21

._crit_edge208:                                   ; preds = %91, %42
  %.0161.lcssa = phi ptr [ %34, %42 ], [ %93, %91 ]
  %96 = getelementptr inbounds i8, ptr %.0161.lcssa, i64 60
  %97 = load i32, ptr %96, align 4, !tbaa !8
  %.fr249 = freeze i32 %97
  %98 = call noalias dereferenceable_or_null(8000) ptr @malloc(i64 noundef 8000) #10
  %99 = sext i32 %.fr249 to i64
  %100 = shl nsw i64 %99, 2
  %calloc = call ptr @calloc(i64 1, i64 %100)
  %101 = shl nsw i64 %99, 3
  %102 = call noalias ptr @malloc(i64 noundef %101) #10
  %103 = add nsw i32 %.fr249, -1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds %struct.list_head, ptr %21, i64 %104
  %.pn227 = load ptr, ptr %105, align 8, !tbaa !16
  %.0153228 = getelementptr inbounds i8, ptr %.pn227, i64 -24
  %.not172229 = icmp eq ptr %.pn227, %105
  br i1 %.not172229, label %._crit_edge234, label %.lr.ph233

.lr.ph233:                                        ; preds = %._crit_edge208
  %106 = icmp sgt i32 %.fr249, 0
  br i1 %106, label %.lr.ph233.split.us.split.us.preheader, label %.lr.ph233.split.split

.lr.ph233.split.us.split.us.preheader:            ; preds = %.lr.ph233
  %107 = zext nneg i32 %103 to i64
  %wide.trip.count302 = zext nneg i32 %.fr249 to i64
  br label %.lr.ph233.split.us.split.us

.lr.ph233.split.us.split.us:                      ; preds = %.lr.ph233.split.us.split.us.preheader, %.loopexit183.split.us.us.split.us.us
  %.0153231.us.us = phi ptr [ %.0153.us.us, %.loopexit183.split.us.us.split.us.us ], [ %.0153228, %.lr.ph233.split.us.split.us.preheader ]
  %.pn230.us.us = phi ptr [ %.pn.us.us, %.loopexit183.split.us.us.split.us.us ], [ %.pn227, %.lr.ph233.split.us.split.us.preheader ]
  %108 = load ptr, ptr %.0153231.us.us, align 8, !tbaa !12
  %109 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %108, ptr noundef nonnull dereferenceable(1) %1) #9
  %.not173.us.us = icmp eq i32 %109, 0
  br i1 %.not173.us.us, label %.preheader182.us.us, label %.loopexit183.split.us.us.split.us.us

.loopexit183.split.us.us.split.us.us:             ; preds = %..loopexit181_crit_edge.us.us.us.us.thread, %.lr.ph233.split.us.split.us
  %.pn.us.us = load ptr, ptr %.pn230.us.us, align 8, !tbaa !16
  %.0153.us.us = getelementptr inbounds i8, ptr %.pn.us.us, i64 -24
  %.not172.us.us = icmp eq ptr %.pn.us.us, %105
  br i1 %.not172.us.us, label %._crit_edge234, label %.lr.ph233.split.us.split.us, !llvm.loop !22

.preheader182.us.us:                              ; preds = %.lr.ph233.split.us.split.us
  %.promoted.us.us = load i32, ptr %4, align 4, !tbaa !8
  %110 = sext i32 %.promoted.us.us to i64
  br label %.lr.ph213.us.us.us.us

.lr.ph213.us.us.us.us:                            ; preds = %..loopexit181_crit_edge.us.us.us.us, %.preheader182.us.us
  %indvars.iv304 = phi i64 [ %indvars.iv.next305, %..loopexit181_crit_edge.us.us.us.us ], [ %110, %.preheader182.us.us ]
  %111 = call noalias ptr @malloc(i64 noundef %101) #10
  %112 = getelementptr inbounds ptr, ptr %98, i64 %indvars.iv304
  store ptr %111, ptr %112, align 8, !tbaa !12
  br label %127

113:                                              ; preds = %..preheader_crit_edge.us.us.us.us
  %indvars.iv.next300 = add nuw nsw i64 %indvars.iv299, 1
  %exitcond303.not = icmp eq i64 %indvars.iv.next300, %wide.trip.count302
  br i1 %exitcond303.not, label %..loopexit181_crit_edge.us.us.us.us.thread, label %..preheader_crit_edge.us.us.us.us, !llvm.loop !23

..loopexit181_crit_edge.us.us.us.us.thread:       ; preds = %113
  %114 = trunc i64 %indvars.iv304 to i32
  %115 = add i32 %114, 1
  store i32 %115, ptr %4, align 4, !tbaa !8
  br label %.loopexit183.split.us.us.split.us.us

..preheader_crit_edge.us.us.us.us:                ; preds = %127, %113
  %indvars.iv299 = phi i64 [ %indvars.iv.next300, %113 ], [ 0, %127 ]
  %116 = getelementptr inbounds i32, ptr %calloc, i64 %indvars.iv299
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv299
  %119 = load ptr, ptr %118, align 8, !tbaa !12
  %120 = getelementptr inbounds i8, ptr %119, i64 56
  %121 = load i32, ptr %120, align 8, !tbaa !8
  %122 = add nsw i32 %121, -1
  %.not251 = icmp slt i32 %117, %122
  br i1 %.not251, label %..loopexit181_crit_edge.us.us.us.us, label %113

..loopexit181_crit_edge.us.us.us.us:              ; preds = %..preheader_crit_edge.us.us.us.us
  %123 = getelementptr inbounds i32, ptr %calloc, i64 %indvars.iv299
  %124 = add nsw i32 %117, 1
  store i32 %124, ptr %123, align 4, !tbaa !8
  %125 = shl nuw nsw i64 %indvars.iv299, 2
  call void @llvm.memset.p0.i64(ptr nonnull align 4 %calloc, i8 0, i64 %125, i1 false)
  %indvars.iv.next305 = add nsw i64 %indvars.iv304, 1
  %126 = trunc nsw i64 %indvars.iv.next305 to i32
  store i32 %126, ptr %4, align 4, !tbaa !8
  br label %.lr.ph213.us.us.us.us

127:                                              ; preds = %127, %.lr.ph213.us.us.us.us
  %indvars.iv296 = phi i64 [ %indvars.iv.next297, %127 ], [ %107, %.lr.ph213.us.us.us.us ]
  %.1159210.us.us.us.us = phi ptr [ %138, %127 ], [ %.0153231.us.us, %.lr.ph213.us.us.us.us ]
  %128 = call noalias ptr @malloc(i64 noundef %12) #10
  %129 = getelementptr inbounds ptr, ptr %111, i64 %indvars.iv296
  store ptr %128, ptr %129, align 8, !tbaa !12
  %130 = load ptr, ptr %.1159210.us.us.us.us, align 8, !tbaa !12
  %131 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %128, ptr noundef nonnull dereferenceable(1) %130) #11
  %132 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv296
  store ptr %.1159210.us.us.us.us, ptr %132, align 8, !tbaa !12
  %133 = getelementptr inbounds i8, ptr %.1159210.us.us.us.us, i64 64
  %134 = getelementptr inbounds i32, ptr %calloc, i64 %indvars.iv296
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [0 x ptr], ptr %133, i64 0, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !12
  %indvars.iv.next297 = add nsw i64 %indvars.iv296, -1
  %139 = icmp sgt i64 %indvars.iv296, 0
  br i1 %139, label %127, label %..preheader_crit_edge.us.us.us.us, !llvm.loop !24

.lr.ph233.split.split:                            ; preds = %.lr.ph233, %146
  %.0153231 = phi ptr [ %.0153, %146 ], [ %.0153228, %.lr.ph233 ]
  %.pn230 = phi ptr [ %.pn, %146 ], [ %.pn227, %.lr.ph233 ]
  %140 = load ptr, ptr %.0153231, align 8, !tbaa !12
  %141 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %140, ptr noundef nonnull dereferenceable(1) %1) #9
  %.not173 = icmp eq i32 %141, 0
  br i1 %.not173, label %.preheader182, label %146

.preheader182:                                    ; preds = %.lr.ph233.split.split
  %.promoted = load i32, ptr %4, align 4, !tbaa !8
  %142 = call noalias ptr @malloc(i64 noundef %101) #10
  %143 = sext i32 %.promoted to i64
  %144 = getelementptr inbounds ptr, ptr %98, i64 %143
  store ptr %142, ptr %144, align 8, !tbaa !12
  %145 = add nsw i32 %.promoted, 1
  store i32 %145, ptr %4, align 4, !tbaa !8
  br label %146

146:                                              ; preds = %.preheader182, %.lr.ph233.split.split
  %.pn = load ptr, ptr %.pn230, align 8, !tbaa !16
  %.0153 = getelementptr inbounds i8, ptr %.pn, i64 -24
  %.not172 = icmp eq ptr %.pn, %105
  br i1 %.not172, label %._crit_edge234, label %.lr.ph233.split.split, !llvm.loop !22

._crit_edge234:                                   ; preds = %146, %.loopexit183.split.us.us.split.us.us, %._crit_edge208
  %147 = load i32, ptr %4, align 4, !tbaa !8
  %148 = sext i32 %147 to i64
  %149 = shl nsw i64 %148, 2
  %150 = call noalias ptr @malloc(i64 noundef %149) #10
  store ptr %150, ptr %5, align 8, !tbaa !12
  %151 = icmp sgt i32 %147, 0
  br i1 %151, label %.lr.ph247.preheader, label %.loopexit

.lr.ph247.preheader:                              ; preds = %._crit_edge234
  %wide.trip.count310 = zext nneg i32 %147 to i64
  %min.iters.check = icmp ult i32 %147, 8
  br i1 %min.iters.check, label %.lr.ph247.preheader334, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph247.preheader
  %n.vec = and i64 %wide.trip.count310, 2147483640
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.fr249, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %152 = getelementptr inbounds i32, ptr %150, i64 %index
  %153 = getelementptr inbounds i8, ptr %152, i64 16
  store <4 x i32> %broadcast.splat, ptr %152, align 4, !tbaa !8
  store <4 x i32> %broadcast.splat, ptr %153, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %154 = icmp eq i64 %index.next, %n.vec
  br i1 %154, label %middle.block, label %vector.body, !llvm.loop !25

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count310
  br i1 %cmp.n, label %.loopexit, label %.lr.ph247.preheader334

.lr.ph247.preheader334:                           ; preds = %middle.block, %.lr.ph247.preheader
  %indvars.iv307.ph = phi i64 [ 0, %.lr.ph247.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph247

.lr.ph247:                                        ; preds = %.lr.ph247.preheader334, %.lr.ph247
  %indvars.iv307 = phi i64 [ %indvars.iv.next308, %.lr.ph247 ], [ %indvars.iv307.ph, %.lr.ph247.preheader334 ]
  %155 = getelementptr inbounds i32, ptr %150, i64 %indvars.iv307
  store i32 %.fr249, ptr %155, align 4, !tbaa !8
  %indvars.iv.next308 = add nuw nsw i64 %indvars.iv307, 1
  %exitcond311.not = icmp eq i64 %indvars.iv.next308, %wide.trip.count310
  br i1 %exitcond311.not, label %.loopexit, label %.lr.ph247, !llvm.loop !28

.loopexit:                                        ; preds = %._crit_edge203, %.lr.ph247, %middle.block, %._crit_edge234
  %.0 = phi ptr [ %98, %._crit_edge234 ], [ %98, %middle.block ], [ %98, %.lr.ph247 ], [ null, %._crit_edge203 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #11
  br label %.critedge248

.critedge248:                                     ; preds = %._crit_edge193.thread, %._crit_edge193, %._crit_edge198, %.loopexit
  %.1 = phi ptr [ %.0, %.loopexit ], [ null, %._crit_edge198 ], [ null, %._crit_edge193 ], [ null, %._crit_edge193.thread ]
  ret ptr %.1
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @INIT_LIST_HEAD(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_add_tail(ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @list_empty(ptr noundef) local_unnamed_addr #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @list_del(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #7

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #8

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(argmem: read) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { 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 #5 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #9 = { nounwind willreturn memory(read) }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !10, i64 0}
!14 = distinct !{!14, !6}
!15 = !{!10, !10, i64 0}
!16 = !{!17, !13, i64 0}
!17 = !{!"list_head", !13, i64 0, !13, i64 8}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}
!20 = distinct !{!20, !6}
!21 = distinct !{!21, !6}
!22 = distinct !{!22, !6}
!23 = distinct !{!23, !6}
!24 = distinct !{!24, !6}
!25 = distinct !{!25, !6, !26, !27}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = !{!"llvm.loop.unroll.runtime.disable"}
!28 = distinct !{!28, !6, !27, !26}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass