; LLVM IR from zisisvakras/crossw :: src (dict)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @init_dictionary(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5) #0 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca [256 x i32], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #10
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = call noalias ptr @fopen(ptr noundef %31, ptr noundef @.str)
  store ptr %32, ptr %13, align 8, !tbaa !5
  %33 = load ptr, ptr %13, align 8, !tbaa !5
  %34 = icmp eq ptr %33, null
  br i1 %34, label %35, label %38

35:                                               ; preds = %6
  call void @perror(ptr noundef @.str.1)
  %36 = call ptr @__errno_location() #11
  %37 = load i32, ptr %36, align 4, !tbaa !9
  call void @exit(i32 noundef %37) #12
  unreachable

38:                                               ; preds = %6
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = call i32 @fseek(ptr noundef %39, i64 noundef 0, i32 noundef 2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  %41 = load ptr, ptr %13, align 8, !tbaa !5
  %42 = call i64 @ftell(ptr noundef %41)
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %14, align 4, !tbaa !9
  %44 = load ptr, ptr %13, align 8, !tbaa !5
  %45 = call i32 @fseek(ptr noundef %44, i64 noundef 0, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %46 = load i32, ptr %14, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  %48 = sext i32 %47 to i64
  %49 = mul i64 %48, 1
  %50 = call noalias ptr @malloc(i64 noundef %49) #13
  store ptr %50, ptr %15, align 8, !tbaa !5
  %51 = load ptr, ptr %15, align 8, !tbaa !5
  %52 = icmp eq ptr %51, null
  br i1 %52, label %53, label %56

53:                                               ; preds = %38
  call void @perror(ptr noundef @.str.2)
  %54 = call ptr @__errno_location() #11
  %55 = load i32, ptr %54, align 4, !tbaa !9
  call void @exit(i32 noundef %55) #12
  unreachable

56:                                               ; preds = %38
  %57 = load ptr, ptr %15, align 8, !tbaa !5
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = load ptr, ptr %13, align 8, !tbaa !5
  %61 = call i64 @fread(ptr noundef %57, i64 noundef 1, i64 noundef %59, ptr noundef %60)
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = icmp ne i64 %61, %63
  br i1 %64, label %65, label %68

65:                                               ; preds = %56
  call void @perror(ptr noundef @.str.3)
  %66 = call ptr @__errno_location() #11
  %67 = load i32, ptr %66, align 4, !tbaa !9
  call void @exit(i32 noundef %67) #12
  unreachable

68:                                               ; preds = %56
  %69 = load ptr, ptr %15, align 8, !tbaa !5
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i8, ptr %69, i64 %71
  store i8 0, ptr %72, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = call noalias ptr @calloc(i64 noundef %74, i64 noundef 4) #14
  store ptr %75, ptr %16, align 8, !tbaa !5
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = icmp eq ptr %76, null
  br i1 %77, label %78, label %81

78:                                               ; preds = %68
  call void @perror(ptr noundef @.str.4)
  %79 = call ptr @__errno_location() #11
  %80 = load i32, ptr %79, align 4, !tbaa !9
  call void @exit(i32 noundef %80) #12
  unreachable

81:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 1024, ptr %17) #10
  call void @llvm.memset.p0.i64(ptr align 16 %17, i8 0, i64 1024, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #10
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #10
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %82

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

86:                                               ; preds = %82
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #10
  br label %165

87:                                               ; preds = %82
  %88 = load ptr, ptr %15, align 8, !tbaa !5
  %89 = load i32, ptr %19, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %88, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !11
  %93 = sext i8 %92 to i32
  %94 = icmp eq i32 %93, 10
  br i1 %94, label %95, label %140

95:                                               ; preds = %87
  %96 = load i32, ptr %18, align 4, !tbaa !9
  %97 = load i32, ptr %8, align 4, !tbaa !9
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %99, label %115

99:                                               ; preds = %95
  %100 = load ptr, ptr %11, align 8, !tbaa !5
  %101 = load i32, ptr %18, align 4, !tbaa !9
  %102 = sub nsw i32 %101, 1
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %100, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %115

107:                                              ; preds = %99
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load i32, ptr %18, align 4, !tbaa !9
  %110 = sub nsw i32 %109, 1
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %108, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 4, !tbaa !9
  br label %139

115:                                              ; preds = %99, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #10
  %116 = load i32, ptr %19, align 4, !tbaa !9
  %117 = load i32, ptr %18, align 4, !tbaa !9
  %118 = sub nsw i32 %116, %117
  store i32 %118, ptr %21, align 4, !tbaa !9
  br label %119

119:                                              ; preds = %135, %115
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #10
  br label %138

124:                                              ; preds = %119
  %125 = load ptr, ptr %15, align 8, !tbaa !5
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds i8, ptr %125, i64 %127
  %129 = load i8, ptr %128, align 1, !tbaa !11
  %130 = sext i8 %129 to i32
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !9
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr %132, align 4, !tbaa !9
  br label %135

135:                                              ; preds = %124
  %136 = load i32, ptr %21, align 4, !tbaa !9
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %21, align 4, !tbaa !9
  br label %119, !llvm.loop !12

138:                                              ; preds = %123
  br label %139

139:                                              ; preds = %138, %107
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %162

140:                                              ; preds = %87
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load i32, ptr %19, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds i8, ptr %142, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !11
  %147 = sext i8 %146 to i32
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds i32, ptr %141, i64 %148
  store i32 1, ptr %149, align 4, !tbaa !9
  %150 = load ptr, ptr %15, align 8, !tbaa !5
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i8, ptr %150, i64 %152
  %154 = load i8, ptr %153, align 1, !tbaa !11
  %155 = sext i8 %154 to i32
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %157, align 4, !tbaa !9
  %160 = load i32, ptr %18, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %18, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %140, %139
  %163 = load i32, ptr %19, align 4, !tbaa !9
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %19, align 4, !tbaa !9
  br label %82, !llvm.loop !14

165:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #10
  %166 = load i32, ptr %8, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = call noalias ptr @calloc(i64 noundef %167, i64 noundef 8) #14
  store ptr %168, ptr %22, align 8, !tbaa !5
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  %170 = icmp eq ptr %169, null
  br i1 %170, label %171, label %174

171:                                              ; preds = %165
  call void @perror(ptr noundef @.str.5)
  %172 = call ptr @__errno_location() #11
  %173 = load i32, ptr %172, align 4, !tbaa !9
  call void @exit(i32 noundef %173) #12
  unreachable

174:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %175 = load i32, ptr %8, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = call noalias ptr @calloc(i64 noundef %176, i64 noundef 8) #14
  store ptr %177, ptr %23, align 8, !tbaa !5
  %178 = load ptr, ptr %23, align 8, !tbaa !5
  %179 = icmp eq ptr %178, null
  br i1 %179, label %180, label %183

180:                                              ; preds = %174
  call void @perror(ptr noundef @.str.6)
  %181 = call ptr @__errno_location() #11
  %182 = load i32, ptr %181, align 4, !tbaa !9
  call void @exit(i32 noundef %182) #12
  unreachable

183:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #10
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %242, %183
  %185 = load i32, ptr %24, align 4, !tbaa !9
  %186 = load i32, ptr %8, align 4, !tbaa !9
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #10
  br label %245

189:                                              ; preds = %184
  %190 = load ptr, ptr %11, align 8, !tbaa !5
  %191 = load i32, ptr %24, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %190, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %197

196:                                              ; preds = %189
  br label %242

197:                                              ; preds = %189
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !9
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = mul i64 %203, 8
  %205 = call noalias ptr @malloc(i64 noundef %204) #13
  %206 = load ptr, ptr %22, align 8, !tbaa !5
  %207 = load i32, ptr %24, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds ptr, ptr %206, i64 %208
  store ptr %205, ptr %209, align 8, !tbaa !5
  %210 = load ptr, ptr %22, align 8, !tbaa !5
  %211 = load i32, ptr %24, align 4, !tbaa !9
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds ptr, ptr %210, i64 %212
  %214 = load ptr, ptr %213, align 8, !tbaa !5
  %215 = icmp eq ptr %214, null
  br i1 %215, label %216, label %219

216:                                              ; preds = %197
  call void @perror(ptr noundef @.str.7)
  %217 = call ptr @__errno_location() #11
  %218 = load i32, ptr %217, align 4, !tbaa !9
  call void @exit(i32 noundef %218) #12
  unreachable

219:                                              ; preds = %197
  %220 = load ptr, ptr %16, align 8, !tbaa !5
  %221 = load i32, ptr %24, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = getelementptr inbounds i32, ptr %220, i64 %222
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = mul i64 %225, 8
  %227 = call noalias ptr @malloc(i64 noundef %226) #13
  %228 = load ptr, ptr %23, align 8, !tbaa !5
  %229 = load i32, ptr %24, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds ptr, ptr %228, i64 %230
  store ptr %227, ptr %231, align 8, !tbaa !5
  %232 = load ptr, ptr %23, align 8, !tbaa !5
  %233 = load i32, ptr %24, align 4, !tbaa !9
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds ptr, ptr %232, i64 %234
  %236 = load ptr, ptr %235, align 8, !tbaa !5
  %237 = icmp eq ptr %236, null
  br i1 %237, label %238, label %241

238:                                              ; preds = %219
  call void @perror(ptr noundef @.str.8)
  %239 = call ptr @__errno_location() #11
  %240 = load i32, ptr %239, align 4, !tbaa !9
  call void @exit(i32 noundef %240) #12
  unreachable

241:                                              ; preds = %219
  br label %242

242:                                              ; preds = %241, %196
  %243 = load i32, ptr %24, align 4, !tbaa !9
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %24, align 4, !tbaa !9
  br label %184, !llvm.loop !15

245:                                              ; preds = %188
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #10
  %246 = load i32, ptr %8, align 4, !tbaa !9
  %247 = sext i32 %246 to i64
  %248 = call noalias ptr @calloc(i64 noundef %247, i64 noundef 4) #14
  store ptr %248, ptr %25, align 8, !tbaa !5
  %249 = load ptr, ptr %25, align 8, !tbaa !5
  %250 = icmp eq ptr %249, null
  br i1 %250, label %251, label %254

251:                                              ; preds = %245
  call void @perror(ptr noundef @.str.9)
  %252 = call ptr @__errno_location() #11
  %253 = load i32, ptr %252, align 4, !tbaa !9
  call void @exit(i32 noundef %253) #12
  unreachable

254:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  %256 = call ptr @strtok(ptr noundef %255, ptr noundef @.str.10) #10
  store ptr %256, ptr %26, align 8, !tbaa !5
  br label %257

257:                                              ; preds = %316, %314, %254
  %258 = load ptr, ptr %26, align 8, !tbaa !5
  %259 = icmp ne ptr %258, null
  br i1 %259, label %260, label %317

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #10
  %261 = load ptr, ptr %26, align 8, !tbaa !5
  %262 = call i64 @strlen(ptr noundef %261) #15
  %263 = trunc i64 %262 to i32
  store i32 %263, ptr %27, align 4, !tbaa !9
  %264 = load i32, ptr %27, align 4, !tbaa !9
  %265 = load i32, ptr %8, align 4, !tbaa !9
  %266 = icmp sgt i32 %264, %265
  br i1 %266, label %275, label %267

267:                                              ; preds = %260
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = load i32, ptr %27, align 4, !tbaa !9
  %270 = sub nsw i32 %269, 1
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds i32, ptr %268, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !9
  %274 = icmp eq i32 %273, 0
  br i1 %274, label %275, label %277

275:                                              ; preds = %267, %260
  %276 = call ptr @strtok(ptr noundef null, ptr noundef @.str.10) #10
  store ptr %276, ptr %26, align 8, !tbaa !5
  store i32 11, ptr %20, align 4
  br label %314, !llvm.loop !16

277:                                              ; preds = %267
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #10
  %278 = load ptr, ptr %25, align 8, !tbaa !5
  %279 = load i32, ptr %27, align 4, !tbaa !9
  %280 = sub nsw i32 %279, 1
  %281 = sext i32 %280 to i64
  %282 = getelementptr inbounds i32, ptr %278, i64 %281
  %283 = load i32, ptr %282, align 4, !tbaa !9
  store i32 %283, ptr %28, align 4, !tbaa !9
  %284 = load ptr, ptr %26, align 8, !tbaa !5
  %285 = load ptr, ptr %22, align 8, !tbaa !5
  %286 = load i32, ptr %27, align 4, !tbaa !9
  %287 = sub nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds ptr, ptr %285, i64 %288
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = load i32, ptr %28, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds ptr, ptr %290, i64 %292
  store ptr %284, ptr %293, align 8, !tbaa !5
  %294 = load ptr, ptr %26, align 8, !tbaa !5
  %295 = getelementptr inbounds [256 x i32], ptr %17, i64 0, i64 0
  %296 = call i32 @word_val(ptr noundef %294, ptr noundef %295)
  %297 = load ptr, ptr %23, align 8, !tbaa !5
  %298 = load i32, ptr %27, align 4, !tbaa !9
  %299 = sub nsw i32 %298, 1
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds ptr, ptr %297, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = load i32, ptr %28, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds i32, ptr %302, i64 %304
  store i32 %296, ptr %305, align 4, !tbaa !9
  %306 = load ptr, ptr %25, align 8, !tbaa !5
  %307 = load i32, ptr %27, align 4, !tbaa !9
  %308 = sub nsw i32 %307, 1
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds i32, ptr %306, i64 %309
  %311 = load i32, ptr %310, align 4, !tbaa !9
  %312 = add nsw i32 %311, 1
  store i32 %312, ptr %310, align 4, !tbaa !9
  %313 = call ptr @strtok(ptr noundef null, ptr noundef @.str.10) #10
  store ptr %313, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #10
  store i32 0, ptr %20, align 4
  br label %314

314:                                              ; preds = %277, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #10
  %315 = load i32, ptr %20, align 4
  switch i32 %315, label %376 [
    i32 0, label %316
    i32 11, label %257
  ]

316:                                              ; preds = %314
  br label %257, !llvm.loop !16

317:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #10
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %318

318:                                              ; preds = %348, %317
  %319 = load i32, ptr %29, align 4, !tbaa !9
  %320 = load i32, ptr %8, align 4, !tbaa !9
  %321 = icmp slt i32 %319, %320
  br i1 %321, label %323, label %322

322:                                              ; preds = %318
  store i32 13, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #10
  br label %351

323:                                              ; preds = %318
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = load i32, ptr %29, align 4, !tbaa !9
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds i32, ptr %324, i64 %326
  %328 = load i32, ptr %327, align 4, !tbaa !9
  %329 = icmp eq i32 %328, 0
  br i1 %329, label %330, label %331

330:                                              ; preds = %323
  br label %348

331:                                              ; preds = %323
  %332 = load ptr, ptr %22, align 8, !tbaa !5
  %333 = load i32, ptr %29, align 4, !tbaa !9
  %334 = sext i32 %333 to i64
  %335 = getelementptr inbounds ptr, ptr %332, i64 %334
  %336 = load ptr, ptr %335, align 8, !tbaa !5
  %337 = load ptr, ptr %23, align 8, !tbaa !5
  %338 = load i32, ptr %29, align 4, !tbaa !9
  %339 = sext i32 %338 to i64
  %340 = getelementptr inbounds ptr, ptr %337, i64 %339
  %341 = load ptr, ptr %340, align 8, !tbaa !5
  %342 = load ptr, ptr %25, align 8, !tbaa !5
  %343 = load i32, ptr %29, align 4, !tbaa !9
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds i32, ptr %342, i64 %344
  %346 = load i32, ptr %345, align 4, !tbaa !9
  %347 = sub nsw i32 %346, 1
  call void @sort_dictionary(ptr noundef %336, ptr noundef %341, i32 noundef 0, i32 noundef %347)
  br label %348

348:                                              ; preds = %331, %330
  %349 = load i32, ptr %29, align 4, !tbaa !9
  %350 = add nsw i32 %349, 1
  store i32 %350, ptr %29, align 4, !tbaa !9
  br label %318, !llvm.loop !17

351:                                              ; preds = %322
  %352 = load ptr, ptr %16, align 8, !tbaa !5
  %353 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %352, ptr %353, align 8, !tbaa !5
  %354 = load ptr, ptr %15, align 8, !tbaa !5
  %355 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %354, ptr %355, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #10
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %356

356:                                              ; preds = %367, %351
  %357 = load i32, ptr %30, align 4, !tbaa !9
  %358 = load i32, ptr %8, align 4, !tbaa !9
  %359 = icmp slt i32 %357, %358
  br i1 %359, label %361, label %360

360:                                              ; preds = %356
  store i32 16, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #10
  br label %370

361:                                              ; preds = %356
  %362 = load ptr, ptr %23, align 8, !tbaa !5
  %363 = load i32, ptr %30, align 4, !tbaa !9
  %364 = sext i32 %363 to i64
  %365 = getelementptr inbounds ptr, ptr %362, i64 %364
  %366 = load ptr, ptr %365, align 8, !tbaa !5
  call void @free(ptr noundef %366) #10
  br label %367

367:                                              ; preds = %361
  %368 = load i32, ptr %30, align 4, !tbaa !9
  %369 = add nsw i32 %368, 1
  store i32 %369, ptr %30, align 4, !tbaa !9
  br label %356, !llvm.loop !18

370:                                              ; preds = %360
  %371 = load ptr, ptr %23, align 8, !tbaa !5
  call void @free(ptr noundef %371) #10
  %372 = load ptr, ptr %25, align 8, !tbaa !5
  call void @free(ptr noundef %372) #10
  %373 = load ptr, ptr %13, align 8, !tbaa !5
  %374 = call i32 @fclose(ptr noundef %373)
  %375 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #10
  ret ptr %375

376:                                              ; preds = %314
  unreachable
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

declare void @perror(ptr noundef) #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #4

declare i32 @fseek(ptr noundef, i64 noundef, i32 noundef) #2

declare i64 @ftell(ptr noundef) #2

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

declare i64 @fread(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #6

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

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

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #8

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

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

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

; Function Attrs: nounwind
declare void @free(ptr noundef) #8

declare i32 @fclose(ptr noundef) #2

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 = { "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 = { noreturn 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 #4 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind allocsize(0,1) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { 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 #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { noreturn nounwind }
attributes #13 = { nounwind allocsize(0) }
attributes #14 = { nounwind allocsize(0,1) }
attributes #15 = { nounwind willreturn memory(read) }

!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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noalias noundef ptr @init_dictionary(ptr nocapture noundef readonly %0, i32 noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef readonly %4, ptr nocapture noundef writeonly %5) local_unnamed_addr #0 {
  %7 = alloca [256 x i32], align 16
  %8 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str)
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %13

10:                                               ; preds = %6
  tail call void @perror(ptr noundef nonnull @.str.1) #11
  %11 = tail call ptr @__errno_location() #12
  %12 = load i32, ptr %11, align 4, !tbaa !5
  tail call void @exit(i32 noundef %12) #13
  unreachable

13:                                               ; preds = %6
  %14 = tail call i32 @fseek(ptr noundef nonnull %8, i64 noundef 0, i32 noundef 2)
  %15 = tail call i64 @ftell(ptr noundef nonnull %8)
  %16 = trunc i64 %15 to i32
  %17 = tail call i32 @fseek(ptr noundef nonnull %8, i64 noundef 0, i32 noundef 0)
  %18 = shl i64 %15, 32
  %sext = add i64 %18, 4294967296
  %19 = ashr exact i64 %sext, 32
  %20 = tail call noalias ptr @malloc(i64 noundef %19) #14
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %25

22:                                               ; preds = %13
  tail call void @perror(ptr noundef nonnull @.str.2) #11
  %23 = tail call ptr @__errno_location() #12
  %24 = load i32, ptr %23, align 4, !tbaa !5
  tail call void @exit(i32 noundef %24) #13
  unreachable

25:                                               ; preds = %13
  %26 = ashr exact i64 %18, 32
  %27 = tail call i64 @fread(ptr noundef nonnull %20, i64 noundef 1, i64 noundef %26, ptr noundef nonnull %8)
  %.not = icmp eq i64 %27, %26
  br i1 %.not, label %31, label %28

28:                                               ; preds = %25
  tail call void @perror(ptr noundef nonnull @.str.3) #11
  %29 = tail call ptr @__errno_location() #12
  %30 = load i32, ptr %29, align 4, !tbaa !5
  tail call void @exit(i32 noundef %30) #13
  unreachable

31:                                               ; preds = %25
  %32 = getelementptr inbounds i8, ptr %20, i64 %26
  store i8 0, ptr %32, align 1, !tbaa !9
  %33 = sext i32 %1 to i64
  %34 = tail call noalias ptr @calloc(i64 noundef %33, i64 noundef 4) #15
  %35 = icmp eq ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %31
  tail call void @perror(ptr noundef nonnull @.str.4) #11
  %37 = tail call ptr @__errno_location() #12
  %38 = load i32, ptr %37, align 4, !tbaa !5
  tail call void @exit(i32 noundef %38) #13
  unreachable

39:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %7, i8 0, i64 1024, i1 false)
  %40 = icmp sgt i32 %16, 0
  br i1 %40, label %.lr.ph131.preheader, label %._crit_edge

.lr.ph131.preheader:                              ; preds = %39
  %wide.trip.count = and i64 %15, 2147483647
  br label %.lr.ph131

._crit_edge:                                      ; preds = %.loopexit, %39
  %41 = tail call noalias ptr @calloc(i64 noundef %33, i64 noundef 8) #15
  %42 = icmp eq ptr %41, null
  br i1 %42, label %75, label %78

.lr.ph131:                                        ; preds = %.lr.ph131.preheader, %.loopexit
  %indvars.iv147 = phi i64 [ 0, %.lr.ph131.preheader ], [ %indvars.iv.next148, %.loopexit ]
  %.0105130 = phi i32 [ 0, %.lr.ph131.preheader ], [ %.1, %.loopexit ]
  %43 = getelementptr inbounds i8, ptr %20, i64 %indvars.iv147
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %45 = icmp eq i8 %44, 10
  br i1 %45, label %46, label %68

46:                                               ; preds = %.lr.ph131
  %.not124 = icmp sgt i32 %.0105130, %1
  br i1 %.not124, label %56, label %47

47:                                               ; preds = %46
  %48 = add nsw i32 %.0105130, -1
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds i32, ptr %4, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %.not125 = icmp eq i32 %51, 0
  br i1 %.not125, label %56, label %52

52:                                               ; preds = %47
  %53 = getelementptr inbounds i32, ptr %34, i64 %49
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %53, align 4, !tbaa !5
  br label %.loopexit

56:                                               ; preds = %47, %46
  %57 = icmp sgt i32 %.0105130, 0
  br i1 %57, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %56
  %58 = trunc nuw nsw i64 %indvars.iv147 to i32
  %59 = sub i32 %58, %.0105130
  %60 = sext i32 %59 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %60, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %61 = getelementptr inbounds i8, ptr %20, i64 %indvars.iv
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = sext i8 %62 to i64
  %64 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %64, align 4, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %67 = icmp slt i64 %indvars.iv.next, %indvars.iv147
  br i1 %67, label %.lr.ph, label %.loopexit, !llvm.loop !10

68:                                               ; preds = %.lr.ph131
  %69 = sext i8 %44 to i64
  %70 = getelementptr inbounds i32, ptr %5, i64 %69
  store i32 1, ptr %70, align 4, !tbaa !5
  %71 = getelementptr inbounds [256 x i32], ptr %7, i64 0, i64 %69
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %71, align 4, !tbaa !5
  %74 = add nsw i32 %.0105130, 1
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %56, %52, %68
  %.1 = phi i32 [ %74, %68 ], [ 0, %52 ], [ 0, %56 ], [ 0, %.lr.ph ]
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph131, !llvm.loop !12

75:                                               ; preds = %._crit_edge
  tail call void @perror(ptr noundef nonnull @.str.5) #11
  %76 = tail call ptr @__errno_location() #12
  %77 = load i32, ptr %76, align 4, !tbaa !5
  tail call void @exit(i32 noundef %77) #13
  unreachable

78:                                               ; preds = %._crit_edge
  %79 = tail call noalias ptr @calloc(i64 noundef %33, i64 noundef 8) #15
  %80 = icmp eq ptr %79, null
  br i1 %80, label %82, label %.preheader126

.preheader126:                                    ; preds = %78
  %81 = icmp sgt i32 %1, 0
  br i1 %81, label %.lr.ph133.preheader, label %._crit_edge134

.lr.ph133.preheader:                              ; preds = %.preheader126
  %wide.trip.count153 = zext nneg i32 %1 to i64
  br label %.lr.ph133

82:                                               ; preds = %78
  tail call void @perror(ptr noundef nonnull @.str.6) #11
  %83 = tail call ptr @__errno_location() #12
  %84 = load i32, ptr %83, align 4, !tbaa !5
  tail call void @exit(i32 noundef %84) #13
  unreachable

._crit_edge134:                                   ; preds = %108, %.preheader126
  %85 = tail call noalias ptr @calloc(i64 noundef %33, i64 noundef 4) #15
  %86 = icmp eq ptr %85, null
  br i1 %86, label %109, label %112

.lr.ph133:                                        ; preds = %.lr.ph133.preheader, %108
  %indvars.iv150 = phi i64 [ 0, %.lr.ph133.preheader ], [ %indvars.iv.next151, %108 ]
  %87 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv150
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %108, label %90

90:                                               ; preds = %.lr.ph133
  %91 = getelementptr inbounds i32, ptr %34, i64 %indvars.iv150
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = shl nsw i64 %93, 3
  %95 = tail call noalias ptr @malloc(i64 noundef %94) #14
  %96 = getelementptr inbounds ptr, ptr %41, i64 %indvars.iv150
  store ptr %95, ptr %96, align 8, !tbaa !13
  %97 = icmp eq ptr %95, null
  br i1 %97, label %98, label %101

98:                                               ; preds = %90
  tail call void @perror(ptr noundef nonnull @.str.7) #11
  %99 = tail call ptr @__errno_location() #12
  %100 = load i32, ptr %99, align 4, !tbaa !5
  tail call void @exit(i32 noundef %100) #13
  unreachable

101:                                              ; preds = %90
  %102 = tail call noalias ptr @malloc(i64 noundef %94) #14
  %103 = getelementptr inbounds ptr, ptr %79, i64 %indvars.iv150
  store ptr %102, ptr %103, align 8, !tbaa !13
  %104 = icmp eq ptr %102, null
  br i1 %104, label %105, label %108

105:                                              ; preds = %101
  tail call void @perror(ptr noundef nonnull @.str.8) #11
  %106 = tail call ptr @__errno_location() #12
  %107 = load i32, ptr %106, align 4, !tbaa !5
  tail call void @exit(i32 noundef %107) #13
  unreachable

108:                                              ; preds = %101, %.lr.ph133
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %wide.trip.count153
  br i1 %exitcond154.not, label %._crit_edge134, label %.lr.ph133, !llvm.loop !15

109:                                              ; preds = %._crit_edge134
  tail call void @perror(ptr noundef nonnull @.str.9) #11
  %110 = tail call ptr @__errno_location() #12
  %111 = load i32, ptr %110, align 4, !tbaa !5
  tail call void @exit(i32 noundef %111) #13
  unreachable

112:                                              ; preds = %._crit_edge134
  %113 = tail call ptr @strtok(ptr noundef nonnull %20, ptr noundef nonnull @.str.10) #16
  %.not122135 = icmp eq ptr %113, null
  br i1 %.not122135, label %.preheader, label %.lr.ph138

.preheader:                                       ; preds = %136, %112
  br i1 %81, label %.lr.ph140.preheader, label %._crit_edge141.thread

._crit_edge141.thread:                            ; preds = %.preheader
  store ptr %34, ptr %3, align 8, !tbaa !13
  store ptr %20, ptr %2, align 8, !tbaa !13
  br label %._crit_edge145

.lr.ph140.preheader:                              ; preds = %.preheader
  %wide.trip.count158 = zext nneg i32 %1 to i64
  br label %.lr.ph140

.lr.ph138:                                        ; preds = %112, %136
  %.0107136 = phi ptr [ %137, %136 ], [ %113, %112 ]
  %114 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.0107136) #17
  %115 = trunc i64 %114 to i32
  %116 = icmp sgt i32 %115, %1
  br i1 %116, label %136, label %117, !llvm.loop !16

117:                                              ; preds = %.lr.ph138
  %118 = shl i64 %114, 32
  %sext123 = add i64 %118, -4294967296
  %119 = ashr exact i64 %sext123, 32
  %120 = getelementptr inbounds i32, ptr %4, i64 %119
  %121 = load i32, ptr %120, align 4, !tbaa !5
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %136, label %123, !llvm.loop !16

123:                                              ; preds = %117
  %124 = getelementptr inbounds i32, ptr %85, i64 %119
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = getelementptr inbounds ptr, ptr %41, i64 %119
  %127 = load ptr, ptr %126, align 8, !tbaa !13
  %128 = sext i32 %125 to i64
  %129 = getelementptr inbounds ptr, ptr %127, i64 %128
  store ptr %.0107136, ptr %129, align 8, !tbaa !13
  %130 = call i32 @word_val(ptr noundef nonnull %.0107136, ptr noundef nonnull %7)
  %131 = getelementptr inbounds ptr, ptr %79, i64 %119
  %132 = load ptr, ptr %131, align 8, !tbaa !13
  %133 = getelementptr inbounds i32, ptr %132, i64 %128
  store i32 %130, ptr %133, align 4, !tbaa !5
  %134 = load i32, ptr %124, align 4, !tbaa !5
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %124, align 4, !tbaa !5
  br label %136

136:                                              ; preds = %.lr.ph138, %117, %123
  %137 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.10) #16
  %.not122 = icmp eq ptr %137, null
  br i1 %.not122, label %.preheader, label %.lr.ph138

._crit_edge141:                                   ; preds = %149
  store ptr %34, ptr %3, align 8, !tbaa !13
  store ptr %20, ptr %2, align 8, !tbaa !13
  br i1 %81, label %.lr.ph144.preheader, label %._crit_edge145

.lr.ph144.preheader:                              ; preds = %._crit_edge141
  %wide.trip.count163 = zext nneg i32 %1 to i64
  br label %.lr.ph144

.lr.ph140:                                        ; preds = %.lr.ph140.preheader, %149
  %indvars.iv155 = phi i64 [ 0, %.lr.ph140.preheader ], [ %indvars.iv.next156, %149 ]
  %138 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv155
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %149, label %141

141:                                              ; preds = %.lr.ph140
  %142 = getelementptr inbounds ptr, ptr %41, i64 %indvars.iv155
  %143 = load ptr, ptr %142, align 8, !tbaa !13
  %144 = getelementptr inbounds ptr, ptr %79, i64 %indvars.iv155
  %145 = load ptr, ptr %144, align 8, !tbaa !13
  %146 = getelementptr inbounds i32, ptr %85, i64 %indvars.iv155
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = add nsw i32 %147, -1
  call void @sort_dictionary(ptr noundef %143, ptr noundef %145, i32 noundef 0, i32 noundef %148)
  br label %149

149:                                              ; preds = %.lr.ph140, %141
  %indvars.iv.next156 = add nuw nsw i64 %indvars.iv155, 1
  %exitcond159.not = icmp eq i64 %indvars.iv.next156, %wide.trip.count158
  br i1 %exitcond159.not, label %._crit_edge141, label %.lr.ph140, !llvm.loop !17

._crit_edge145:                                   ; preds = %.lr.ph144, %._crit_edge141.thread, %._crit_edge141
  call void @free(ptr noundef %79) #16
  call void @free(ptr noundef %85) #16
  %150 = call i32 @fclose(ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #16
  ret ptr %41

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %.lr.ph144
  %indvars.iv160 = phi i64 [ 0, %.lr.ph144.preheader ], [ %indvars.iv.next161, %.lr.ph144 ]
  %151 = getelementptr inbounds ptr, ptr %79, i64 %indvars.iv160
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  call void @free(ptr noundef %152) #16
  %indvars.iv.next161 = add nuw nsw i64 %indvars.iv160, 1
  %exitcond164.not = icmp eq i64 %indvars.iv.next161, %wide.trip.count163
  br i1 %exitcond164.not, label %._crit_edge145, label %.lr.ph144, !llvm.loop !18
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare void @perror(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

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

; Function Attrs: nofree nounwind
declare noundef i64 @ftell(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 #5

; Function Attrs: nofree nounwind
declare noundef i64 @fread(ptr nocapture noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #8

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

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

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

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #10

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

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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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 #4 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress nofree nounwind willreturn "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { 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 #10 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #11 = { cold }
attributes #12 = { nounwind willreturn memory(none) }
attributes #13 = { noreturn nounwind }
attributes #14 = { nounwind allocsize(0) }
attributes #15 = { nounwind allocsize(0,1) }
attributes #16 = { nounwind }
attributes #17 = { nounwind willreturn memory(read) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !11}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass