; LLVM IR from fmela/libdict :: anagram (main)

; 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.dict_insert_result = type { ptr, i8 }
%struct.WordList = type { ptr, ptr }

@.str = external hidden unnamed_addr constant [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main(i32 noundef %0, ptr noundef %1) #0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca [512 x i8], align 16
  %9 = alloca [256 x i32], align 16
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [1024 x i8], align 16
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca %struct.dict_insert_result, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %23 = load i32, ptr %4, align 4, !tbaa !5
  %24 = icmp ne i32 %23, 2
  br i1 %24, label %25, label %27

25:                                               ; preds = %2
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  call void @exit(i32 noundef 1) #8
  unreachable

27:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %28 = load ptr, ptr %5, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %28, i64 1
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = call noalias ptr @fopen(ptr noundef %30, ptr noundef @.str.1)
  store ptr %31, ptr %6, align 8, !tbaa !9
  %32 = load ptr, ptr %6, align 8, !tbaa !9
  %33 = icmp ne ptr %32, null
  br i1 %33, label %39, label %34

34:                                               ; preds = %27
  %35 = load ptr, ptr %5, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %35, i64 1
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %37)
  call void @exit(i32 noundef 1) #8
  unreachable

39:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %40 = call ptr @rb_tree_new(ptr noundef @dict_str_cmp)
  store ptr %40, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #9
  br label %41

41:                                               ; preds = %149, %58, %39
  %42 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %43 = load ptr, ptr %6, align 8, !tbaa !9
  %44 = call ptr @fgets(ptr noundef %42, i32 noundef 512, ptr noundef %43)
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %172

46:                                               ; preds = %41
  %47 = call ptr @__ctype_b_loc() #10
  %48 = load ptr, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %50 = load i8, ptr %49, align 16, !tbaa !11
  %51 = sext i8 %50 to i32
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds i16, ptr %48, i64 %52
  %54 = load i16, ptr %53, align 2, !tbaa !12
  %55 = zext i16 %54 to i32
  %56 = and i32 %55, 256
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %46
  br label %41, !llvm.loop !14

59:                                               ; preds = %46
  %60 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %61 = call ptr @strtok(ptr noundef %60, ptr noundef @.str.3) #9
  call void @llvm.lifetime.start.p0(i64 1024, ptr %9) #9
  call void @llvm.memset.p0.i64(ptr align 16 %9, i8 0, i64 1024, i1 false)
  %62 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %62, i8 0, i64 1024, i1 false)
  br label %63

63:                                               ; preds = %59
  %64 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %65 = load i8, ptr %64, align 16, !tbaa !11
  %66 = sext i8 %65 to i32
  %67 = icmp ne i32 %66, 0
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 1)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %75, label %72

72:                                               ; preds = %63
  %73 = load ptr, ptr @stderr, align 8, !tbaa !9
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 43, ptr noundef @__func__.main, ptr noundef @.str.6) #9
  call void @abort() #8
  unreachable

75:                                               ; preds = %63
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %78 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  store ptr %78, ptr %10, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %99, %77
  %80 = load ptr, ptr %10, align 8, !tbaa !9
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = icmp ne i8 %81, 0
  br i1 %82, label %84, label %83

83:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  br label %102

84:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  %85 = call ptr @__ctype_tolower_loc() #10
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = load ptr, ptr %10, align 8, !tbaa !9
  %88 = load i8, ptr %87, align 1, !tbaa !11
  %89 = sext i8 %88 to i32
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i32, ptr %86, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  store i32 %92, ptr %11, align 4, !tbaa !5
  %93 = load i32, ptr %11, align 4, !tbaa !5
  store i32 %93, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  %94 = load i32, ptr %12, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %96, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %84
  %100 = load ptr, ptr %10, align 8, !tbaa !9
  %101 = getelementptr inbounds i8, ptr %100, i32 1
  store ptr %101, ptr %10, align 8, !tbaa !9
  br label %79, !llvm.loop !16

102:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 1024, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  %103 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  store ptr %103, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #9
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %104

104:                                              ; preds = %146, %102
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = icmp slt i32 %105, 256
  br i1 %106, label %108, label %107

107:                                              ; preds = %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #9
  br label %149

108:                                              ; preds = %104
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp ne i32 %112, 0
  br i1 %113, label %114, label %145

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %15, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = icmp slt i32 %119, 10
  %121 = zext i1 %120 to i32
  %122 = sext i32 %121 to i64
  %123 = call i64 @llvm.expect.i64(i64 %122, i64 1)
  %124 = icmp ne i64 %123, 0
  br i1 %124, label %128, label %125

125:                                              ; preds = %115
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 52, ptr noundef @__func__.main, ptr noundef @.str.7) #9
  call void @abort() #8
  unreachable

128:                                              ; preds = %115
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %15, align 4, !tbaa !5
  %132 = trunc i32 %131 to i8
  %133 = load ptr, ptr %14, align 8, !tbaa !9
  %134 = getelementptr inbounds i8, ptr %133, i32 1
  store ptr %134, ptr %14, align 8, !tbaa !9
  store i8 %132, ptr %133, align 1, !tbaa !11
  %135 = load i32, ptr %15, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [256 x i32], ptr %9, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = trunc i32 %138 to i8
  %140 = sext i8 %139 to i32
  %141 = add nsw i32 48, %140
  %142 = trunc i32 %141 to i8
  %143 = load ptr, ptr %14, align 8, !tbaa !9
  %144 = getelementptr inbounds i8, ptr %143, i32 1
  store ptr %144, ptr %14, align 8, !tbaa !9
  store i8 %142, ptr %143, align 1, !tbaa !11
  br label %145

145:                                              ; preds = %130, %108
  br label %146

146:                                              ; preds = %145
  %147 = load i32, ptr %15, align 4, !tbaa !5
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %15, align 4, !tbaa !5
  br label %104, !llvm.loop !17

149:                                              ; preds = %107
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  store i8 0, ptr %150, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %151 = call ptr @xmalloc(i64 noundef 16)
  store ptr %151, ptr %16, align 8, !tbaa !9
  %152 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %153 = call ptr @xstrdup(ptr noundef %152)
  %154 = load ptr, ptr %16, align 8, !tbaa !9
  %155 = getelementptr inbounds %struct.WordList, ptr %154, i32 0, i32 0
  store ptr %153, ptr %155, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %156 = load ptr, ptr %7, align 8, !tbaa !9
  %157 = getelementptr inbounds [1024 x i8], ptr %13, i64 0, i64 0
  %158 = call ptr @xstrdup(ptr noundef %157)
  %159 = call { ptr, i8 } @rb_tree_insert(ptr noundef %156, ptr noundef %158)
  %160 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 0
  %161 = extractvalue { ptr, i8 } %159, 0
  store ptr %161, ptr %160, align 8
  %162 = getelementptr inbounds { ptr, i8 }, ptr %18, i32 0, i32 1
  %163 = extractvalue { ptr, i8 } %159, 1
  store i8 %163, ptr %162, align 8
  %164 = getelementptr inbounds %struct.dict_insert_result, ptr %18, i32 0, i32 0
  %165 = load ptr, ptr %164, align 8, !tbaa !20
  store ptr %165, ptr %17, align 8, !tbaa !9
  %166 = load ptr, ptr %17, align 8, !tbaa !9
  %167 = load ptr, ptr %166, align 8, !tbaa !9
  %168 = load ptr, ptr %16, align 8, !tbaa !9
  %169 = getelementptr inbounds %struct.WordList, ptr %168, i32 0, i32 1
  store ptr %167, ptr %169, align 8, !tbaa !23
  %170 = load ptr, ptr %16, align 8, !tbaa !9
  %171 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %170, ptr %171, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %13) #9
  call void @llvm.lifetime.end.p0(i64 1024, ptr %9) #9
  br label %41, !llvm.loop !14

172:                                              ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #9
  %173 = load ptr, ptr %7, align 8, !tbaa !9
  %174 = call ptr @rb_itor_new(ptr noundef %173)
  store ptr %174, ptr %19, align 8, !tbaa !9
  %175 = load ptr, ptr %19, align 8, !tbaa !9
  %176 = call zeroext i1 @rb_itor_first(ptr noundef %175)
  br label %177

177:                                              ; preds = %256, %172
  %178 = load ptr, ptr %19, align 8, !tbaa !9
  %179 = call zeroext i1 @rb_itor_valid(ptr noundef %178)
  br i1 %179, label %180, label %259

180:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #9
  %181 = load ptr, ptr %19, align 8, !tbaa !9
  %182 = call ptr @rb_itor_datum(ptr noundef %181)
  %183 = load ptr, ptr %182, align 8, !tbaa !9
  store ptr %183, ptr %20, align 8, !tbaa !9
  br label %184

184:                                              ; preds = %180
  %185 = load ptr, ptr %20, align 8, !tbaa !9
  %186 = icmp ne ptr %185, null
  %187 = zext i1 %186 to i32
  %188 = sext i32 %187 to i64
  %189 = call i64 @llvm.expect.i64(i64 %188, i64 1)
  %190 = icmp ne i64 %189, 0
  br i1 %190, label %194, label %191

191:                                              ; preds = %184
  %192 = load ptr, ptr @stderr, align 8, !tbaa !9
  %193 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %192, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 70, ptr noundef @__func__.main, ptr noundef @.str.8) #9
  call void @abort() #8
  unreachable

194:                                              ; preds = %184
  br label %195

195:                                              ; preds = %194
  br label %196

196:                                              ; preds = %195
  %197 = load ptr, ptr %20, align 8, !tbaa !9
  %198 = getelementptr inbounds %struct.WordList, ptr %197, i32 0, i32 1
  %199 = load ptr, ptr %198, align 8, !tbaa !23
  %200 = icmp ne ptr %199, null
  br i1 %200, label %201, label %239

201:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 1, ptr %21, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %211, %201
  %203 = load ptr, ptr %20, align 8, !tbaa !9
  %204 = getelementptr inbounds %struct.WordList, ptr %203, i32 0, i32 1
  %205 = load ptr, ptr %204, align 8, !tbaa !23
  %206 = icmp ne ptr %205, null
  br i1 %206, label %207, label %214

207:                                              ; preds = %202
  %208 = load ptr, ptr %20, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.WordList, ptr %208, i32 0, i32 1
  %210 = load ptr, ptr %209, align 8, !tbaa !23
  store ptr %210, ptr %20, align 8, !tbaa !9
  br label %211

211:                                              ; preds = %207
  %212 = load i32, ptr %21, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %21, align 4, !tbaa !5
  br label %202, !llvm.loop !24

214:                                              ; preds = %202
  %215 = load i32, ptr %21, align 4, !tbaa !5
  %216 = call i32 (ptr, ...) @printf(ptr noundef @.str.9, i32 noundef %215)
  %217 = load ptr, ptr %19, align 8, !tbaa !9
  %218 = call ptr @rb_itor_datum(ptr noundef %217)
  %219 = load ptr, ptr %218, align 8, !tbaa !9
  store ptr %219, ptr %20, align 8, !tbaa !9
  br label %220

220:                                              ; preds = %223, %214
  %221 = load ptr, ptr %20, align 8, !tbaa !9
  %222 = icmp ne ptr %221, null
  br i1 %222, label %223, label %237

223:                                              ; preds = %220
  %224 = load ptr, ptr %20, align 8, !tbaa !9
  %225 = getelementptr inbounds %struct.WordList, ptr %224, i32 0, i32 0
  %226 = load ptr, ptr %225, align 8, !tbaa !18
  %227 = load ptr, ptr %20, align 8, !tbaa !9
  %228 = getelementptr inbounds %struct.WordList, ptr %227, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !23
  %230 = icmp ne ptr %229, null
  %231 = zext i1 %230 to i64
  %232 = select i1 %230, i32 44, i32 93
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, ptr noundef %226, i32 noundef %232)
  %234 = load ptr, ptr %20, align 8, !tbaa !9
  %235 = getelementptr inbounds %struct.WordList, ptr %234, i32 0, i32 1
  %236 = load ptr, ptr %235, align 8, !tbaa !23
  store ptr %236, ptr %20, align 8, !tbaa !9
  br label %220, !llvm.loop !25

237:                                              ; preds = %220
  %238 = call i32 (ptr, ...) @printf(ptr noundef @.str.11)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  br label %239

239:                                              ; preds = %237, %196
  %240 = load ptr, ptr %19, align 8, !tbaa !9
  %241 = call ptr @rb_itor_datum(ptr noundef %240)
  %242 = load ptr, ptr %241, align 8, !tbaa !9
  store ptr %242, ptr %20, align 8, !tbaa !9
  br label %243

243:                                              ; preds = %246, %239
  %244 = load ptr, ptr %20, align 8, !tbaa !9
  %245 = icmp ne ptr %244, null
  br i1 %245, label %246, label %255

246:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  %247 = load ptr, ptr %20, align 8, !tbaa !9
  %248 = getelementptr inbounds %struct.WordList, ptr %247, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !23
  store ptr %249, ptr %22, align 8, !tbaa !9
  %250 = load ptr, ptr %20, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.WordList, ptr %250, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !18
  call void @free(ptr noundef %252) #9
  %253 = load ptr, ptr %20, align 8, !tbaa !9
  call void @free(ptr noundef %253) #9
  %254 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %254, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %243, !llvm.loop !26

255:                                              ; preds = %243
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #9
  br label %256

256:                                              ; preds = %255
  %257 = load ptr, ptr %19, align 8, !tbaa !9
  %258 = call zeroext i1 @rb_itor_next(ptr noundef %257)
  br label %177, !llvm.loop !27

259:                                              ; preds = %177
  br label %260

260:                                              ; preds = %263, %259
  %261 = load ptr, ptr %19, align 8, !tbaa !9
  %262 = call zeroext i1 @rb_itor_next(ptr noundef %261)
  br i1 %262, label %263, label %264

263:                                              ; preds = %260
  br label %260, !llvm.loop !28

264:                                              ; preds = %260
  %265 = load ptr, ptr %19, align 8, !tbaa !9
  call void @rb_itor_free(ptr noundef %265)
  %266 = load ptr, ptr %7, align 8, !tbaa !9
  %267 = call i64 @rb_tree_free(ptr noundef %266, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  ret i32 0
}

declare i32 @printf(ptr noundef, ...) #1

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

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

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

declare ptr @rb_tree_new(ptr noundef) #1

declare i32 @dict_str_cmp(ptr noundef, ptr noundef) #1

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #1

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

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

; Function Attrs: 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 willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #7

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: noreturn nounwind
declare void @abort() #2

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @xmalloc(i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local ptr @xstrdup(ptr noundef) #0

declare { ptr, i8 } @rb_tree_insert(ptr noundef, ptr noundef) #1

declare ptr @rb_itor_new(ptr noundef) #1

declare zeroext i1 @rb_itor_first(ptr noundef) #1

declare zeroext i1 @rb_itor_valid(ptr noundef) #1

declare ptr @rb_itor_datum(ptr noundef) #1

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

declare zeroext i1 @rb_itor_next(ptr noundef) #1

declare void @rb_itor_free(ptr noundef) #1

declare i64 @rb_tree_free(ptr noundef, ptr noundef) #1

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 "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 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }

!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 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = !{!19, !10, i64 0}
!19 = !{!"WordList", !10, i64 0, !10, i64 8}
!20 = !{!21, !10, i64 0}
!21 = !{!"", !10, i64 0, !22, i64 8}
!22 = !{!"_Bool", !7, i64 0}
!23 = !{!19, !10, i64 8}
!24 = distinct !{!24, !15}
!25 = distinct !{!25, !15}
!26 = distinct !{!26, !15}
!27 = distinct !{!27, !15}
!28 = distinct !{!28, !15}


; 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 [29 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@__func__.main = external hidden unnamed_addr constant [5 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 {
  %3 = alloca [512 x i8], align 16
  %4 = alloca [256 x i32], align 16
  %5 = alloca [1024 x i8], align 16
  %.not = icmp eq i32 %0, 2
  br i1 %.not, label %8, label %6

6:                                                ; preds = %2
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  tail call void @exit(i32 noundef 1) #9
  unreachable

8:                                                ; preds = %2
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %11 = tail call noalias ptr @fopen(ptr noundef %10, ptr noundef nonnull @.str.1)
  %.not59 = icmp eq ptr %11, null
  br i1 %.not59, label %12, label %15

12:                                               ; preds = %8
  %13 = load ptr, ptr %9, align 8, !tbaa !5
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %13)
  tail call void @exit(i32 noundef 1) #9
  unreachable

15:                                               ; preds = %8
  %16 = tail call ptr @rb_tree_new(ptr noundef nonnull @dict_str_cmp) #10
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #10
  %17 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %11)
  %.not6077 = icmp eq ptr %17, null
  br i1 %.not6077, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %15
  %18 = tail call ptr @__ctype_b_loc() #11
  br label %19

19:                                               ; preds = %.lr.ph, %.backedge
  %20 = load ptr, ptr %18, align 8, !tbaa !5
  %21 = load i8, ptr %3, align 16, !tbaa !9
  %22 = sext i8 %21 to i64
  %23 = getelementptr inbounds i16, ptr %20, i64 %22
  %24 = load i16, ptr %23, align 2, !tbaa !10
  %25 = and i16 %24, 256
  %.not67 = icmp eq i16 %25, 0
  br i1 %.not67, label %26, label %.backedge

26:                                               ; preds = %19
  %27 = call ptr @strtok(ptr noundef nonnull %3, ptr noundef nonnull @.str.3) #10
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %4) #10
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(1024) %4, i8 0, i64 1024, i1 false)
  %28 = load i8, ptr %3, align 16, !tbaa !9
  %.not68 = icmp eq i8 %28, 0
  br i1 %.not68, label %31, label %.preheader72, !prof !12

.preheader72:                                     ; preds = %26
  %29 = tail call ptr @__ctype_tolower_loc() #11
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  br label %35

31:                                               ; preds = %26
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 43, ptr noundef nonnull @__func__.main, ptr noundef nonnull @.str.6) #12
  call void @abort() #9
  unreachable

34:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %5) #10
  br label %54

35:                                               ; preds = %.preheader72, %35
  %.074 = phi ptr [ %3, %.preheader72 ], [ %44, %35 ]
  %36 = phi i8 [ %28, %.preheader72 ], [ %.pr, %35 ]
  %37 = sext i8 %36 to i64
  %38 = getelementptr inbounds i32, ptr %30, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !13
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [256 x i32], ptr %4, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !13
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %.074, i64 1
  %.pr = load i8, ptr %44, align 1, !tbaa !9
  %.not69 = icmp eq i8 %.pr, 0
  br i1 %.not69, label %34, label %35, !llvm.loop !15

45:                                               ; preds = %69
  store i8 0, ptr %.152, align 1, !tbaa !9
  %46 = call ptr @xmalloc(i64 noundef 16)
  %47 = call ptr @xstrdup(ptr noundef nonnull %3)
  store ptr %47, ptr %46, align 8, !tbaa !17
  %48 = call ptr @xstrdup(ptr noundef nonnull %5)
  %49 = call { ptr, i8 } @rb_tree_insert(ptr noundef %16, ptr noundef %48) #10
  %50 = extractvalue { ptr, i8 } %49, 0
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %46, i64 8
  store ptr %51, ptr %52, align 8, !tbaa !19
  store ptr %46, ptr %50, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %5) #10
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %4) #10
  br label %.backedge

.backedge:                                        ; preds = %45, %19
  %53 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 512, ptr noundef nonnull %11)
  %.not60 = icmp eq ptr %53, null
  br i1 %.not60, label %._crit_edge, label %19, !llvm.loop !20

54:                                               ; preds = %82, %34
  %indvars.iv = phi i64 [ 1, %34 ], [ %indvars.iv.next.1, %82 ]
  %.05176 = phi ptr [ %5, %34 ], [ %.152.1, %82 ]
  %55 = getelementptr inbounds [256 x i32], ptr %4, i64 0, i64 %indvars.iv
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %.not70 = icmp eq i32 %56, 0
  br i1 %.not70, label %69, label %57

57:                                               ; preds = %54
  %58 = icmp slt i32 %56, 10
  br i1 %58, label %62, label %59, !prof !21

59:                                               ; preds = %73, %57
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 52, ptr noundef nonnull @__func__.main, ptr noundef nonnull @.str.7) #12
  call void @abort() #9
  unreachable

62:                                               ; preds = %57
  %63 = trunc i64 %indvars.iv to i8
  %64 = getelementptr inbounds i8, ptr %.05176, i64 1
  store i8 %63, ptr %.05176, align 1, !tbaa !9
  %65 = load i32, ptr %55, align 4, !tbaa !13
  %66 = trunc i32 %65 to i8
  %67 = add i8 %66, 48
  %68 = getelementptr inbounds i8, ptr %.05176, i64 2
  store i8 %67, ptr %64, align 1, !tbaa !9
  br label %69

69:                                               ; preds = %54, %62
  %.152 = phi ptr [ %68, %62 ], [ %.05176, %54 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 256
  br i1 %exitcond.not, label %45, label %70, !llvm.loop !22

70:                                               ; preds = %69
  %71 = getelementptr inbounds [256 x i32], ptr %4, i64 0, i64 %indvars.iv.next
  %72 = load i32, ptr %71, align 4, !tbaa !13
  %.not70.1 = icmp eq i32 %72, 0
  br i1 %.not70.1, label %82, label %73

73:                                               ; preds = %70
  %74 = icmp slt i32 %72, 10
  br i1 %74, label %75, label %59, !prof !21

75:                                               ; preds = %73
  %76 = trunc i64 %indvars.iv.next to i8
  %77 = getelementptr inbounds i8, ptr %.152, i64 1
  store i8 %76, ptr %.152, align 1, !tbaa !9
  %78 = load i32, ptr %71, align 4, !tbaa !13
  %79 = trunc i32 %78 to i8
  %80 = add i8 %79, 48
  %81 = getelementptr inbounds i8, ptr %.152, i64 2
  store i8 %80, ptr %77, align 1, !tbaa !9
  br label %82

82:                                               ; preds = %75, %70
  %.152.1 = phi ptr [ %81, %75 ], [ %.152, %70 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  br label %54

._crit_edge:                                      ; preds = %.backedge, %15
  %83 = call ptr @rb_itor_new(ptr noundef %16) #10
  %84 = call zeroext i1 @rb_itor_first(ptr noundef %83) #10
  %85 = call zeroext i1 @rb_itor_valid(ptr noundef %83) #10
  br i1 %85, label %.lr.ph90, label %.preheader.preheader

.lr.ph90:                                         ; preds = %._crit_edge, %._crit_edge88
  %86 = call ptr @rb_itor_datum(ptr noundef %83) #10
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %.not61 = icmp eq ptr %87, null
  br i1 %.not61, label %88, label %91, !prof !12

88:                                               ; preds = %.lr.ph90
  %89 = load ptr, ptr @stderr, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 70, ptr noundef nonnull @__func__.main, ptr noundef nonnull @.str.8) #12
  call void @abort() #9
  unreachable

91:                                               ; preds = %.lr.ph90
  %92 = getelementptr inbounds i8, ptr %87, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  %.not62 = icmp eq ptr %93, null
  br i1 %.not62, label %106, label %.preheader71

.preheader71:                                     ; preds = %91, %.preheader71
  %.050 = phi ptr [ %95, %.preheader71 ], [ %87, %91 ]
  %.049 = phi i32 [ %96, %.preheader71 ], [ 1, %91 ]
  %94 = getelementptr inbounds i8, ptr %.050, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !19
  %.not63 = icmp eq ptr %95, null
  %96 = add nuw nsw i32 %.049, 1
  br i1 %.not63, label %97, label %.preheader71, !llvm.loop !23

97:                                               ; preds = %.preheader71
  %98 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9, i32 noundef %.049)
  %99 = call ptr @rb_itor_datum(ptr noundef %83) #10
  %.178 = load ptr, ptr %99, align 8, !tbaa !5
  %.not6479 = icmp eq ptr %.178, null
  br i1 %.not6479, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %97, %.lr.ph82
  %.180 = phi ptr [ %.1, %.lr.ph82 ], [ %.178, %97 ]
  %100 = load ptr, ptr %.180, align 8, !tbaa !17
  %101 = getelementptr inbounds i8, ptr %.180, i64 8
  %102 = load ptr, ptr %101, align 8, !tbaa !19
  %.not66 = icmp eq ptr %102, null
  %103 = select i1 %.not66, i32 93, i32 44
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef %100, i32 noundef %103)
  %.1 = load ptr, ptr %101, align 8, !tbaa !5
  %.not64 = icmp eq ptr %.1, null
  br i1 %.not64, label %._crit_edge83, label %.lr.ph82, !llvm.loop !24

._crit_edge83:                                    ; preds = %.lr.ph82, %97
  %105 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11)
  br label %106

106:                                              ; preds = %._crit_edge83, %91
  %107 = call ptr @rb_itor_datum(ptr noundef %83) #10
  %108 = load ptr, ptr %107, align 8, !tbaa !5
  %.not6584 = icmp eq ptr %108, null
  br i1 %.not6584, label %._crit_edge88, label %.lr.ph87

.lr.ph87:                                         ; preds = %106, %.lr.ph87
  %.285 = phi ptr [ %110, %.lr.ph87 ], [ %108, %106 ]
  %109 = getelementptr inbounds i8, ptr %.285, i64 8
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = load ptr, ptr %.285, align 8, !tbaa !17
  call void @free(ptr noundef %111) #10
  call void @free(ptr noundef nonnull %.285) #10
  %.not65 = icmp eq ptr %110, null
  br i1 %.not65, label %._crit_edge88, label %.lr.ph87, !llvm.loop !25

._crit_edge88:                                    ; preds = %.lr.ph87, %106
  %112 = call zeroext i1 @rb_itor_next(ptr noundef %83) #10
  %113 = call zeroext i1 @rb_itor_valid(ptr noundef %83) #10
  br i1 %113, label %.lr.ph90, label %.preheader.preheader, !llvm.loop !26

.preheader.preheader:                             ; preds = %._crit_edge88, %._crit_edge
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %114 = call zeroext i1 @rb_itor_next(ptr noundef %83) #10
  br i1 %114, label %.preheader, label %115, !llvm.loop !27

115:                                              ; preds = %.preheader
  call void @rb_itor_free(ptr noundef %83) #10
  %116 = call i64 @rb_tree_free(ptr noundef %16, ptr noundef null) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #10
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

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

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

declare ptr @rb_tree_new(ptr noundef) local_unnamed_addr #4

declare i32 @dict_str_cmp(ptr noundef, ptr noundef) #4

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

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

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

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

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

declare { ptr, i8 } @rb_tree_insert(ptr noundef, ptr noundef) local_unnamed_addr #4

declare ptr @rb_itor_new(ptr noundef) local_unnamed_addr #4

declare zeroext i1 @rb_itor_first(ptr noundef) local_unnamed_addr #4

declare zeroext i1 @rb_itor_valid(ptr noundef) local_unnamed_addr #4

declare ptr @rb_itor_datum(ptr noundef) local_unnamed_addr #4

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

declare zeroext i1 @rb_itor_next(ptr noundef) local_unnamed_addr #4

declare void @rb_itor_free(ptr noundef) local_unnamed_addr #4

declare i64 @rb_tree_free(ptr noundef, ptr noundef) local_unnamed_addr #4

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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { "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 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 #6 = { 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 #7 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { 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 #9 = { noreturn nounwind }
attributes #10 = { nounwind }
attributes #11 = { nounwind willreturn memory(none) }
attributes #12 = { cold nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"short", !7, i64 0}
!12 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !6, i64 0}
!18 = !{!"WordList", !6, i64 0, !6, i64 8}
!19 = !{!18, !6, i64 8}
!20 = distinct !{!20, !16}
!21 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16}


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