; LLVM IR from libtcod/libtcod :: src/libtcod (namegen_c)

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

@namegen_name = external dso_local global ptr, align 8
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [91 x i8], align 1
@namegen_name_size = external dso_local global i64, align 8

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @namegen_generator_check(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @namegen_get_sets_on_error() #3

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @namegen_generator_get(ptr noundef) #3

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

; Function Attrs: nounwind
declare ptr @strncat(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #1

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

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

declare i32 @TCOD_list_size(ptr noundef) #7

; Function Attrs: nounwind uwtable
declare dso_local void @namegen_word_prune_spaces(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @namegen_word_is_ok(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local ptr @TCOD_namegen_generate_custom(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  %17 = zext i1 %2 to i8
  store i8 %17, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store i64 1024, ptr %9, align 8, !tbaa !11
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = call zeroext i1 @namegen_generator_check(ptr noundef %18)
  br i1 %19, label %20, label %23

20:                                               ; preds = %3
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call ptr @namegen_generator_get(ptr noundef %21)
  store ptr %22, ptr %8, align 8, !tbaa !5
  br label %27

23:                                               ; preds = %3
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str.19, ptr noundef %25) #8
  call void @namegen_get_sets_on_error()
  store ptr null, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %288

27:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %28 = load i64, ptr %9, align 8, !tbaa !11
  %29 = call noalias ptr @malloc(i64 noundef %28) #9
  store ptr %29, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %30 = load ptr, ptr %6, align 8, !tbaa !5
  %31 = call i64 @strlen(ptr noundef %30) #10
  store i64 %31, ptr %12, align 8, !tbaa !11
  br label %32

32:                                               ; preds = %249, %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %33, ptr %13, align 8, !tbaa !5
  %34 = load ptr, ptr %11, align 8, !tbaa !5
  %35 = load i64, ptr %9, align 8, !tbaa !11
  call void @llvm.memset.p0.i64(ptr align 1 %34, i8 0, i64 %35, i1 false)
  br label %36

36:                                               ; preds = %245, %32
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i64, ptr %12, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %38, i64 %39
  %41 = icmp ule ptr %37, %40
  br i1 %41, label %42, label %248

42:                                               ; preds = %36
  %43 = load ptr, ptr %11, align 8, !tbaa !5
  %44 = call i64 @strlen(ptr noundef %43) #10
  %45 = load i64, ptr %9, align 8, !tbaa !11
  %46 = icmp uge i64 %44, %45
  br i1 %46, label %47, label %64

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  br label %48

48:                                               ; preds = %53, %47
  %49 = load ptr, ptr %11, align 8, !tbaa !5
  %50 = call i64 @strlen(ptr noundef %49) #10
  %51 = load i64, ptr %9, align 8, !tbaa !11
  %52 = icmp uge i64 %50, %51
  br i1 %52, label %53, label %56

53:                                               ; preds = %48
  %54 = load i64, ptr %9, align 8, !tbaa !11
  %55 = mul i64 %54, 2
  store i64 %55, ptr %9, align 8, !tbaa !11
  br label %48, !llvm.loop !13

56:                                               ; preds = %48
  %57 = load i64, ptr %9, align 8, !tbaa !11
  %58 = call noalias ptr @malloc(i64 noundef %57) #9
  store ptr %58, ptr %14, align 8, !tbaa !5
  %59 = load ptr, ptr %14, align 8, !tbaa !5
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = call ptr @strcpy(ptr noundef %59, ptr noundef %60) #8
  %62 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %62) #8
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %63, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %64

64:                                               ; preds = %56, %42
  %65 = load ptr, ptr %13, align 8, !tbaa !5
  %66 = load i8, ptr %65, align 1, !tbaa !15
  %67 = sext i8 %66 to i32
  %68 = icmp sge i32 %67, 97
  br i1 %68, label %69, label %74

69:                                               ; preds = %64
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = load i8, ptr %70, align 1, !tbaa !15
  %72 = sext i8 %71 to i32
  %73 = icmp sle i32 %72, 122
  br i1 %73, label %94, label %74

74:                                               ; preds = %69, %64
  %75 = load ptr, ptr %13, align 8, !tbaa !5
  %76 = load i8, ptr %75, align 1, !tbaa !15
  %77 = sext i8 %76 to i32
  %78 = icmp sge i32 %77, 65
  br i1 %78, label %79, label %84

79:                                               ; preds = %74
  %80 = load ptr, ptr %13, align 8, !tbaa !5
  %81 = load i8, ptr %80, align 1, !tbaa !15
  %82 = sext i8 %81 to i32
  %83 = icmp sle i32 %82, 90
  br i1 %83, label %94, label %84

84:                                               ; preds = %79, %74
  %85 = load ptr, ptr %13, align 8, !tbaa !5
  %86 = load i8, ptr %85, align 1, !tbaa !15
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %87, 39
  br i1 %88, label %94, label %89

89:                                               ; preds = %84
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i8, ptr %90, align 1, !tbaa !15
  %92 = sext i8 %91 to i32
  %93 = icmp eq i32 %92, 45
  br i1 %93, label %94, label %98

94:                                               ; preds = %89, %84, %79, %69
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = call ptr @strncat(ptr noundef %95, ptr noundef %96, i64 noundef 1) #8
  br label %245

98:                                               ; preds = %89
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = load i8, ptr %99, align 1, !tbaa !15
  %101 = sext i8 %100 to i32
  %102 = icmp eq i32 %101, 47
  br i1 %102, label %103, label %109

103:                                              ; preds = %98
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i32 1
  store ptr %105, ptr %13, align 8, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  %108 = call ptr @strncat(ptr noundef %106, ptr noundef %107, i64 noundef 1) #8
  br label %244

109:                                              ; preds = %98
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load i8, ptr %110, align 1, !tbaa !15
  %112 = sext i8 %111 to i32
  %113 = icmp eq i32 %112, 95
  br i1 %113, label %114, label %117

114:                                              ; preds = %109
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = call ptr @strcat(ptr noundef %115, ptr noundef @.str.3) #8
  br label %243

117:                                              ; preds = %109
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = load i8, ptr %118, align 1, !tbaa !15
  %120 = sext i8 %119 to i32
  %121 = icmp eq i32 %120, 36
  br i1 %121, label %122, label %242

122:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 100, ptr %15, align 4, !tbaa !16
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds i8, ptr %123, i32 1
  store ptr %124, ptr %13, align 8, !tbaa !5
  %125 = load ptr, ptr %13, align 8, !tbaa !5
  %126 = load i8, ptr %125, align 1, !tbaa !15
  %127 = sext i8 %126 to i32
  %128 = icmp sge i32 %127, 48
  br i1 %128, label %129, label %159

129:                                              ; preds = %122
  %130 = load ptr, ptr %13, align 8, !tbaa !5
  %131 = load i8, ptr %130, align 1, !tbaa !15
  %132 = sext i8 %131 to i32
  %133 = icmp sle i32 %132, 57
  br i1 %133, label %134, label %159

134:                                              ; preds = %129
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %135

135:                                              ; preds = %147, %134
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = load i8, ptr %136, align 1, !tbaa !15
  %138 = sext i8 %137 to i32
  %139 = icmp sge i32 %138, 48
  br i1 %139, label %140, label %145

140:                                              ; preds = %135
  %141 = load ptr, ptr %13, align 8, !tbaa !5
  %142 = load i8, ptr %141, align 1, !tbaa !15
  %143 = sext i8 %142 to i32
  %144 = icmp sle i32 %143, 57
  br label %145

145:                                              ; preds = %140, %135
  %146 = phi i1 [ false, %135 ], [ %144, %140 ]
  br i1 %146, label %147, label %158

147:                                              ; preds = %145
  %148 = load i32, ptr %15, align 4, !tbaa !16
  %149 = mul nsw i32 %148, 10
  store i32 %149, ptr %15, align 4, !tbaa !16
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load i8, ptr %150, align 1, !tbaa !15
  %152 = sext i8 %151 to i32
  %153 = sub nsw i32 %152, 48
  %154 = load i32, ptr %15, align 4, !tbaa !16
  %155 = add nsw i32 %154, %153
  store i32 %155, ptr %15, align 4, !tbaa !16
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = getelementptr inbounds i8, ptr %156, i32 1
  store ptr %157, ptr %13, align 8, !tbaa !5
  br label %135, !llvm.loop !18

158:                                              ; preds = %145
  br label %159

159:                                              ; preds = %158, %129, %122
  %160 = load i32, ptr %15, align 4, !tbaa !16
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.TCOD_NameGen, ptr %161, i32 0, i32 1
  %163 = load ptr, ptr %162, align 8, !tbaa !19
  %164 = call i32 @TCOD_random_get_int(ptr noundef %163, i32 noundef 0, i32 noundef 100)
  %165 = icmp sge i32 %160, %164
  br i1 %165, label %166, label %241

166:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = load i8, ptr %167, align 1, !tbaa !15
  %169 = sext i8 %168 to i32
  switch i32 %169, label %214 [
    i32 80, label %170
    i32 115, label %174
    i32 109, label %178
    i32 101, label %182
    i32 112, label %186
    i32 118, label %190
    i32 99, label %194
    i32 63, label %198
  ]

170:                                              ; preds = %166
  %171 = load ptr, ptr %8, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.TCOD_NameGen, ptr %171, i32 0, i32 4
  %173 = load ptr, ptr %172, align 8, !tbaa !21
  store ptr %173, ptr %16, align 8, !tbaa !5
  br label %217

174:                                              ; preds = %166
  %175 = load ptr, ptr %8, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.TCOD_NameGen, ptr %175, i32 0, i32 5
  %177 = load ptr, ptr %176, align 8, !tbaa !22
  store ptr %177, ptr %16, align 8, !tbaa !5
  br label %217

178:                                              ; preds = %166
  %179 = load ptr, ptr %8, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.TCOD_NameGen, ptr %179, i32 0, i32 6
  %181 = load ptr, ptr %180, align 8, !tbaa !23
  store ptr %181, ptr %16, align 8, !tbaa !5
  br label %217

182:                                              ; preds = %166
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.TCOD_NameGen, ptr %183, i32 0, i32 7
  %185 = load ptr, ptr %184, align 8, !tbaa !24
  store ptr %185, ptr %16, align 8, !tbaa !5
  br label %217

186:                                              ; preds = %166
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.TCOD_NameGen, ptr %187, i32 0, i32 8
  %189 = load ptr, ptr %188, align 8, !tbaa !25
  store ptr %189, ptr %16, align 8, !tbaa !5
  br label %217

190:                                              ; preds = %166
  %191 = load ptr, ptr %8, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.TCOD_NameGen, ptr %191, i32 0, i32 2
  %193 = load ptr, ptr %192, align 8, !tbaa !26
  store ptr %193, ptr %16, align 8, !tbaa !5
  br label %217

194:                                              ; preds = %166
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.TCOD_NameGen, ptr %195, i32 0, i32 3
  %197 = load ptr, ptr %196, align 8, !tbaa !27
  store ptr %197, ptr %16, align 8, !tbaa !5
  br label %217

198:                                              ; preds = %166
  %199 = load ptr, ptr %8, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.TCOD_NameGen, ptr %199, i32 0, i32 1
  %201 = load ptr, ptr %200, align 8, !tbaa !19
  %202 = call i32 @TCOD_random_get_int(ptr noundef %201, i32 noundef 0, i32 noundef 1)
  %203 = icmp eq i32 %202, 0
  br i1 %203, label %204, label %208

204:                                              ; preds = %198
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.TCOD_NameGen, ptr %205, i32 0, i32 2
  %207 = load ptr, ptr %206, align 8, !tbaa !26
  br label %212

208:                                              ; preds = %198
  %209 = load ptr, ptr %8, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.TCOD_NameGen, ptr %209, i32 0, i32 3
  %211 = load ptr, ptr %210, align 8, !tbaa !27
  br label %212

212:                                              ; preds = %208, %204
  %213 = phi ptr [ %207, %204 ], [ %211, %208 ]
  store ptr %213, ptr %16, align 8, !tbaa !5
  br label %217

214:                                              ; preds = %166
  %215 = load ptr, ptr @stderr, align 8, !tbaa !5
  %216 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.20) #8
  call void @exit(i32 noundef 1) #11
  unreachable

217:                                              ; preds = %212, %194, %190, %186, %182, %178, %174, %170
  %218 = load ptr, ptr %16, align 8, !tbaa !5
  %219 = call i32 @TCOD_list_size(ptr noundef %218)
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %228

221:                                              ; preds = %217
  %222 = load ptr, ptr @stderr, align 8, !tbaa !5
  %223 = load ptr, ptr %13, align 8, !tbaa !5
  %224 = load i8, ptr %223, align 1, !tbaa !15
  %225 = sext i8 %224 to i32
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.21, i32 noundef %225, ptr noundef %226) #8
  br label %240

228:                                              ; preds = %217
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = load ptr, ptr %16, align 8, !tbaa !5
  %231 = load ptr, ptr %8, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.TCOD_NameGen, ptr %231, i32 0, i32 1
  %233 = load ptr, ptr %232, align 8, !tbaa !19
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = call i32 @TCOD_list_size(ptr noundef %234)
  %236 = sub nsw i32 %235, 1
  %237 = call i32 @TCOD_random_get_int(ptr noundef %233, i32 noundef 0, i32 noundef %236)
  %238 = call ptr @TCOD_list_get(ptr noundef %230, i32 noundef %237)
  %239 = call ptr @strcat(ptr noundef %229, ptr noundef %238) #8
  br label %240

240:                                              ; preds = %228, %221
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %241

241:                                              ; preds = %240, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %242

242:                                              ; preds = %241, %117
  br label %243

243:                                              ; preds = %242, %114
  br label %244

244:                                              ; preds = %243, %103
  br label %245

245:                                              ; preds = %244, %94
  %246 = load ptr, ptr %13, align 8, !tbaa !5
  %247 = getelementptr inbounds i8, ptr %246, i32 1
  store ptr %247, ptr %13, align 8, !tbaa !5
  br label %36, !llvm.loop !28

248:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = load ptr, ptr %11, align 8, !tbaa !5
  %252 = call zeroext i1 @namegen_word_is_ok(ptr noundef %250, ptr noundef %251)
  %253 = xor i1 %252, true
  br i1 %253, label %32, label %254, !llvm.loop !29

254:                                              ; preds = %249
  %255 = load ptr, ptr %11, align 8, !tbaa !5
  call void @namegen_word_prune_spaces(ptr noundef %255)
  %256 = load i8, ptr %7, align 1, !tbaa !9, !range !30, !noundef !31
  %257 = trunc i8 %256 to i1
  %258 = zext i1 %257 to i32
  %259 = icmp eq i32 %258, 1
  br i1 %259, label %260, label %262

260:                                              ; preds = %254
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %261, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %287

262:                                              ; preds = %254
  %263 = load ptr, ptr @namegen_name, align 8, !tbaa !5
  %264 = icmp eq ptr %263, null
  br i1 %264, label %265, label %268

265:                                              ; preds = %262
  store i64 64, ptr @namegen_name_size, align 8, !tbaa !11
  %266 = load i64, ptr @namegen_name_size, align 8, !tbaa !11
  %267 = call noalias ptr @malloc(i64 noundef %266) #9
  store ptr %267, ptr @namegen_name, align 8, !tbaa !5
  br label %268

268:                                              ; preds = %265, %262
  br label %269

269:                                              ; preds = %275, %268
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = call i64 @strlen(ptr noundef %270) #10
  %272 = load i64, ptr @namegen_name_size, align 8, !tbaa !11
  %273 = sub i64 %272, 1
  %274 = icmp ugt i64 %271, %273
  br i1 %274, label %275, label %281

275:                                              ; preds = %269
  %276 = load i64, ptr @namegen_name_size, align 8, !tbaa !11
  %277 = mul i64 %276, 2
  store i64 %277, ptr @namegen_name_size, align 8, !tbaa !11
  %278 = load ptr, ptr @namegen_name, align 8, !tbaa !5
  call void @free(ptr noundef %278) #8
  %279 = load i64, ptr @namegen_name_size, align 8, !tbaa !11
  %280 = call noalias ptr @malloc(i64 noundef %279) #9
  store ptr %280, ptr @namegen_name, align 8, !tbaa !5
  br label %269, !llvm.loop !32

281:                                              ; preds = %269
  %282 = load ptr, ptr @namegen_name, align 8, !tbaa !5
  %283 = load ptr, ptr %11, align 8, !tbaa !5
  %284 = call ptr @strcpy(ptr noundef %282, ptr noundef %283) #8
  %285 = load ptr, ptr %11, align 8, !tbaa !5
  call void @free(ptr noundef %285) #8
  %286 = load ptr, ptr @namegen_name, align 8, !tbaa !5
  store ptr %286, ptr %4, align 8
  store i32 1, ptr %10, align 4
  br label %287

287:                                              ; preds = %281, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %288

288:                                              ; preds = %287, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  %289 = load ptr, ptr %4, align 8
  ret ptr %289
}

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

declare i32 @TCOD_random_get_int(ptr noundef, i32 noundef, i32 noundef) #7

declare ptr @TCOD_list_get(ptr noundef, i32 noundef) #7

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = distinct !{!18, !14}
!19 = !{!20, !6, i64 8}
!20 = !{!"TCOD_NameGen", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!21 = !{!20, !6, i64 32}
!22 = !{!20, !6, i64 40}
!23 = !{!20, !6, i64 48}
!24 = !{!20, !6, i64 56}
!25 = !{!20, !6, i64 64}
!26 = !{!20, !6, i64 16}
!27 = !{!20, !6, i64 24}
!28 = distinct !{!28, !14}
!29 = distinct !{!29, !14}
!30 = !{i8 0, i8 2}
!31 = !{}
!32 = distinct !{!32, !14}


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

@namegen_name = external dso_local local_unnamed_addr global ptr, align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [91 x i8], align 1
@namegen_name_size = external dso_local local_unnamed_addr global i64, align 8

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

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

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @namegen_generator_check(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @namegen_get_sets_on_error() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @namegen_generator_get(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

declare i32 @TCOD_list_size(ptr noundef) local_unnamed_addr #8

; Function Attrs: nounwind uwtable
declare dso_local void @namegen_word_prune_spaces(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local zeroext i1 @namegen_word_is_ok(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local ptr @TCOD_namegen_generate_custom(ptr noundef %0, ptr noundef %1, i1 noundef zeroext %2) local_unnamed_addr #2 {
  %4 = tail call zeroext i1 @namegen_generator_check(ptr noundef %0)
  br i1 %4, label %5, label %19

5:                                                ; preds = %3
  %6 = tail call ptr @namegen_generator_get(ptr noundef %0)
  %7 = tail call noalias dereferenceable_or_null(1024) ptr @malloc(i64 noundef 1024) #9
  %8 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %1) #10
  %9 = getelementptr inbounds i8, ptr %1, i64 %8
  %.not105 = icmp slt i64 %8, 0
  %10 = getelementptr inbounds i8, ptr %6, i64 8
  %11 = getelementptr inbounds i8, ptr %6, i64 24
  %12 = getelementptr inbounds i8, ptr %6, i64 16
  %13 = getelementptr inbounds i8, ptr %6, i64 64
  %14 = getelementptr inbounds i8, ptr %6, i64 56
  %15 = getelementptr inbounds i8, ptr %6, i64 48
  %16 = getelementptr inbounds i8, ptr %6, i64 40
  %17 = getelementptr inbounds i8, ptr %6, i64 32
  br i1 %.not105, label %.split.us, label %.lr.ph109

.split.us:                                        ; preds = %5, %.split.us
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %7, i8 0, i64 1024, i1 false)
  %18 = tail call zeroext i1 @namegen_word_is_ok(ptr noundef %6, ptr noundef %7)
  br i1 %18, label %.split113.us, label %.split.us, !llvm.loop !5

19:                                               ; preds = %3
  %20 = load ptr, ptr @stderr, align 8, !tbaa !7
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.19, ptr noundef %0) #11
  tail call void @namegen_get_sets_on_error()
  br label %108

.lr.ph109:                                        ; preds = %5, %._crit_edge
  %.083 = phi ptr [ %.285, %._crit_edge ], [ %7, %5 ]
  %.079 = phi i64 [ %.382, %._crit_edge ], [ 1024, %5 ]
  tail call void @llvm.memset.p0.i64(ptr align 1 %.083, i8 0, i64 %.079, i1 false)
  br label %22

22:                                               ; preds = %.lr.ph109, %83
  %.077108 = phi ptr [ %1, %.lr.ph109 ], [ %84, %83 ]
  %.180107 = phi i64 [ %.079, %.lr.ph109 ], [ %.382, %83 ]
  %.184106 = phi ptr [ %.083, %.lr.ph109 ], [ %.285, %83 ]
  %23 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.184106) #10
  %.not91 = icmp ult i64 %23, %.180107
  br i1 %.not91, label %28, label %.preheader98

.preheader98:                                     ; preds = %22, %.preheader98
  %.281 = phi i64 [ %24, %.preheader98 ], [ %.180107, %22 ]
  %.not92 = icmp ult i64 %23, %.281
  %24 = shl i64 %.281, 1
  br i1 %.not92, label %25, label %.preheader98, !llvm.loop !11

25:                                               ; preds = %.preheader98
  %26 = tail call noalias ptr @malloc(i64 noundef %.281) #9
  %27 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %.184106) #12
  tail call void @free(ptr noundef %.184106) #12
  br label %28

28:                                               ; preds = %25, %22
  %.285 = phi ptr [ %26, %25 ], [ %.184106, %22 ]
  %.382 = phi i64 [ %.281, %25 ], [ %.180107, %22 ]
  %29 = load i8, ptr %.077108, align 1, !tbaa !12
  %30 = and i8 %29, -33
  %31 = add i8 %30, -65
  %or.cond97 = icmp ult i8 %31, 26
  br i1 %or.cond97, label %33, label %32

32:                                               ; preds = %28
  switch i8 %29, label %83 [
    i8 39, label %33
    i8 45, label %33
    i8 47, label %35
    i8 95, label %38
    i8 36, label %40
  ]

33:                                               ; preds = %32, %32, %28
  %34 = tail call ptr @strncat(ptr noundef nonnull dereferenceable(1) %.285, ptr noundef nonnull dereferenceable(1) %.077108, i64 noundef 1) #12
  br label %83

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %.077108, i64 1
  %37 = tail call ptr @strncat(ptr noundef nonnull dereferenceable(1) %.285, ptr noundef nonnull dereferenceable(1) %36, i64 noundef 1) #12
  br label %83

38:                                               ; preds = %32
  %39 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.285, ptr noundef nonnull dereferenceable(1) @.str.3) #12
  br label %83

40:                                               ; preds = %32
  %41 = getelementptr inbounds i8, ptr %.077108, i64 1
  %42 = load i8, ptr %41, align 1, !tbaa !12
  %43 = add i8 %42, -48
  %or.cond95 = icmp ult i8 %43, 10
  br i1 %or.cond95, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %40, %.lr.ph
  %44 = phi i8 [ %49, %.lr.ph ], [ %42, %40 ]
  %.074103 = phi i32 [ %47, %.lr.ph ], [ 0, %40 ]
  %.178102 = phi ptr [ %48, %.lr.ph ], [ %41, %40 ]
  %45 = mul nsw i32 %.074103, 10
  %narrow = add nsw i8 %44, -48
  %46 = zext nneg i8 %narrow to i32
  %47 = add nsw i32 %45, %46
  %48 = getelementptr inbounds i8, ptr %.178102, i64 1
  %49 = load i8, ptr %48, align 1, !tbaa !12
  %50 = add i8 %49, -48
  %or.cond96 = icmp ult i8 %50, 10
  br i1 %or.cond96, label %.lr.ph, label %.critedge, !llvm.loop !13

.critedge:                                        ; preds = %.lr.ph, %40
  %.2 = phi ptr [ %41, %40 ], [ %48, %.lr.ph ]
  %.1 = phi i32 [ 100, %40 ], [ %47, %.lr.ph ]
  %51 = load ptr, ptr %10, align 8, !tbaa !14
  %52 = tail call i32 @TCOD_random_get_int(ptr noundef %51, i32 noundef 0, i32 noundef 100) #12
  %.not93 = icmp slt i32 %.1, %52
  br i1 %.not93, label %83, label %53

53:                                               ; preds = %.critedge
  %54 = load i8, ptr %.2, align 1, !tbaa !12
  switch i8 %54, label %65 [
    i8 80, label %68
    i8 115, label %55
    i8 109, label %56
    i8 101, label %57
    i8 112, label %58
    i8 118, label %59
    i8 99, label %60
    i8 63, label %61
  ]

55:                                               ; preds = %53
  br label %68

56:                                               ; preds = %53
  br label %68

57:                                               ; preds = %53
  br label %68

58:                                               ; preds = %53
  br label %68

59:                                               ; preds = %53
  br label %68

60:                                               ; preds = %53
  br label %68

61:                                               ; preds = %53
  %62 = load ptr, ptr %10, align 8, !tbaa !14
  %63 = tail call i32 @TCOD_random_get_int(ptr noundef %62, i32 noundef 0, i32 noundef 1) #12
  %64 = icmp eq i32 %63, 0
  %.in.v = select i1 %64, i64 16, i64 24
  %.in = getelementptr inbounds i8, ptr %6, i64 %.in.v
  br label %68

65:                                               ; preds = %53
  %66 = load ptr, ptr @stderr, align 8, !tbaa !7
  %67 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.20) #11
  tail call void @exit(i32 noundef 1) #13
  unreachable

68:                                               ; preds = %53, %61, %60, %59, %58, %57, %56, %55
  %.0.in = phi ptr [ %.in, %61 ], [ %11, %60 ], [ %12, %59 ], [ %13, %58 ], [ %14, %57 ], [ %15, %56 ], [ %16, %55 ], [ %17, %53 ]
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !7
  %69 = tail call i32 @TCOD_list_size(ptr noundef %.0) #12
  %70 = icmp eq i32 %69, 0
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr @stderr, align 8, !tbaa !7
  %73 = load i8, ptr %.2, align 1, !tbaa !12
  %74 = sext i8 %73 to i32
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.21, i32 noundef %74, ptr noundef %1) #11
  br label %83

76:                                               ; preds = %68
  %77 = load ptr, ptr %10, align 8, !tbaa !14
  %78 = tail call i32 @TCOD_list_size(ptr noundef %.0) #12
  %79 = add nsw i32 %78, -1
  %80 = tail call i32 @TCOD_random_get_int(ptr noundef %77, i32 noundef 0, i32 noundef %79) #12
  %81 = tail call ptr @TCOD_list_get(ptr noundef %.0, i32 noundef %80) #12
  %82 = tail call ptr @strcat(ptr noundef nonnull dereferenceable(1) %.285, ptr noundef nonnull dereferenceable(1) %81) #12
  br label %83

83:                                               ; preds = %.critedge, %76, %71, %32, %35, %38, %33
  %.3 = phi ptr [ %.077108, %33 ], [ %36, %35 ], [ %.077108, %38 ], [ %.077108, %32 ], [ %.2, %71 ], [ %.2, %76 ], [ %.2, %.critedge ]
  %84 = getelementptr inbounds i8, ptr %.3, i64 1
  %.not = icmp ugt ptr %84, %9
  br i1 %.not, label %._crit_edge, label %22, !llvm.loop !16

._crit_edge:                                      ; preds = %83
  %85 = tail call zeroext i1 @namegen_word_is_ok(ptr noundef %6, ptr noundef %.285)
  br i1 %85, label %.split113.us, label %.lr.ph109, !llvm.loop !5

.split113.us:                                     ; preds = %._crit_edge, %.split.us
  %.us-phi = phi ptr [ %7, %.split.us ], [ %.285, %._crit_edge ]
  tail call void @namegen_word_prune_spaces(ptr noundef %.us-phi)
  br i1 %2, label %108, label %86

86:                                               ; preds = %.split113.us
  %87 = load ptr, ptr @namegen_name, align 8, !tbaa !7
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %._crit_edge121

._crit_edge121:                                   ; preds = %86
  %.pre = load i64, ptr @namegen_name_size, align 8, !tbaa !17
  br label %91

89:                                               ; preds = %86
  store i64 64, ptr @namegen_name_size, align 8, !tbaa !17
  %90 = tail call noalias dereferenceable_or_null(64) ptr @malloc(i64 noundef 64) #9
  store ptr %90, ptr @namegen_name, align 8, !tbaa !7
  br label %91

91:                                               ; preds = %._crit_edge121, %89
  %92 = phi ptr [ %87, %._crit_edge121 ], [ %90, %89 ]
  %93 = phi i64 [ %.pre, %._crit_edge121 ], [ 64, %89 ]
  %94 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.us-phi) #10
  %95 = add i64 %93, -1
  %96 = icmp ugt i64 %94, %95
  br i1 %96, label %.lr.ph115, label %._crit_edge116

.lr.ph115:                                        ; preds = %91, %.lr.ph115
  %97 = phi ptr [ %101, %.lr.ph115 ], [ %92, %91 ]
  %98 = phi i64 [ %100, %.lr.ph115 ], [ %93, %91 ]
  %99 = shl i64 %98, 1
  store i64 %99, ptr @namegen_name_size, align 8, !tbaa !17
  tail call void @free(ptr noundef %97) #12
  %100 = load i64, ptr @namegen_name_size, align 8, !tbaa !17
  %101 = tail call noalias ptr @malloc(i64 noundef %100) #9
  store ptr %101, ptr @namegen_name, align 8, !tbaa !7
  %102 = tail call i64 @strlen(ptr noundef nonnull dereferenceable(1) %.us-phi) #10
  %103 = add i64 %100, -1
  %104 = icmp ugt i64 %102, %103
  br i1 %104, label %.lr.ph115, label %._crit_edge116, !llvm.loop !19

._crit_edge116:                                   ; preds = %.lr.ph115, %91
  %105 = phi ptr [ %92, %91 ], [ %101, %.lr.ph115 ]
  %106 = tail call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %105, ptr noundef nonnull dereferenceable(1) %.us-phi) #12
  tail call void @free(ptr noundef %.us-phi) #12
  %107 = load ptr, ptr @namegen_name, align 8, !tbaa !7
  br label %108

108:                                              ; preds = %._crit_edge116, %.split113.us, %19
  %.176 = phi ptr [ null, %19 ], [ %107, %._crit_edge116 ], [ %.us-phi, %.split113.us ]
  ret ptr %.176
}

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

declare i32 @TCOD_random_get_int(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #8

declare ptr @TCOD_list_get(ptr noundef, i32 noundef) local_unnamed_addr #8

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = !{!9, !9, i64 0}
!13 = distinct !{!13, !6}
!14 = !{!15, !8, i64 8}
!15 = !{!"TCOD_NameGen", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !8, i64 72, !8, i64 80}
!16 = distinct !{!16, !6}
!17 = !{!18, !18, i64 0}
!18 = !{!"long", !9, i64 0}
!19 = distinct !{!19, !6}


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