; LLVM IR from libtcod/libtcod :: src/libtcod (txtfield_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_Text = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i8, i32, i32, %struct.TCOD_ColorRGB, %struct.TCOD_ColorRGB, float, i8, ptr }
%struct.TCOD_ColorRGB = type { i8, i8, i8 }

@.str.1 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.TCOD_text_render = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
declare hidden void @get_cursor_coords(ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_text_render(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i8, align 1
  %15 = alloca i24, align 4
  %16 = alloca i24, align 4
  %17 = alloca i24, align 4
  %18 = alloca i24, align 4
  %19 = alloca i24, align 4
  %20 = alloca i24, align 4
  %21 = alloca i24, align 4
  %22 = alloca i24, align 4
  %23 = alloca i24, align 4
  %24 = alloca i24, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %25, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store i8 0, ptr %6, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %28, label %34

28:                                               ; preds = %2
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.TCOD_Text, ptr %29, i32 0, i32 15
  %31 = load ptr, ptr %30, align 8, !tbaa !10
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %34

33:                                               ; preds = %28
  br label %35

34:                                               ; preds = %28, %2
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 623, ptr noundef @__PRETTY_FUNCTION__.TCOD_text_render) #6
  unreachable

35:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %36 = call i32 @TCOD_sys_elapsed_milli()
  store i32 %36, ptr %13, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #5
  %37 = load i32, ptr %13, align 4, !tbaa !16
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.TCOD_Text, ptr %38, i32 0, i32 5
  %40 = load i32, ptr %39, align 4, !tbaa !17
  %41 = urem i32 %37, %40
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.TCOD_Text, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %43, align 8, !tbaa !18
  %45 = icmp sgt i32 %41, %44
  %46 = zext i1 %45 to i8
  store i8 %46, ptr %14, align 1, !tbaa !19
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.TCOD_Text, ptr %47, i32 0, i32 15
  %49 = load ptr, ptr %48, align 8, !tbaa !10
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.TCOD_Text, ptr %50, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %15, ptr align 4 %51, i64 3, i1 false)
  %52 = load i24, ptr %15, align 4
  call void @TCOD_console_set_default_background(ptr noundef %49, i24 %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TCOD_Text, ptr %53, i32 0, i32 15
  %55 = load ptr, ptr %54, align 8, !tbaa !10
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TCOD_Text, ptr %56, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %16, ptr align 1 %57, i64 3, i1 false)
  %58 = load i24, ptr %16, align 4
  call void @TCOD_console_set_default_foreground(ptr noundef %55, i24 %58)
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.TCOD_Text, ptr %59, i32 0, i32 15
  %61 = load ptr, ptr %60, align 8, !tbaa !10
  call void @TCOD_console_clear(ptr noundef %61)
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  call void @get_cursor_coords(ptr noundef %62, ptr noundef %9, ptr noundef %10)
  %63 = load i8, ptr %14, align 1, !tbaa !19, !range !20, !noundef !21
  %64 = trunc i8 %63 to i1
  br i1 %64, label %65, label %92

65:                                               ; preds = %35
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TCOD_Text, ptr %66, i32 0, i32 7
  %68 = load i32, ptr %67, align 4, !tbaa !22
  %69 = icmp ne i32 %68, 0
  br i1 %69, label %70, label %92

70:                                               ; preds = %65
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.TCOD_Text, ptr %71, i32 0, i32 23
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.TCOD_Text, ptr %74, i32 0, i32 8
  %76 = load i32, ptr %75, align 8, !tbaa !24
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i8, ptr %73, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !9
  store i8 %79, ptr %6, align 1, !tbaa !9
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.TCOD_Text, ptr %80, i32 0, i32 7
  %82 = load i32, ptr %81, align 4, !tbaa !22
  %83 = trunc i32 %82 to i8
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TCOD_Text, ptr %84, i32 0, i32 23
  %86 = load ptr, ptr %85, align 8, !tbaa !23
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TCOD_Text, ptr %87, i32 0, i32 8
  %89 = load i32, ptr %88, align 8, !tbaa !24
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %86, i64 %90
  store i8 %83, ptr %91, align 1, !tbaa !9
  br label %92

92:                                               ; preds = %70, %65, %35
  %93 = load ptr, ptr %5, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.TCOD_Text, ptr %93, i32 0, i32 12
  %95 = load ptr, ptr %94, align 8, !tbaa !25
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %111

97:                                               ; preds = %92
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.TCOD_Text, ptr %98, i32 0, i32 15
  %100 = load ptr, ptr %99, align 8, !tbaa !10
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.TCOD_Text, ptr %101, i32 0, i32 2
  %103 = load i32, ptr %102, align 8, !tbaa !26
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.TCOD_Text, ptr %104, i32 0, i32 3
  %106 = load i32, ptr %105, align 4, !tbaa !27
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TCOD_Text, ptr %107, i32 0, i32 12
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %110 = call i32 (ptr, i32, i32, i32, i32, i32, i32, ptr, ...) @TCOD_console_print_rect_ex(ptr noundef %100, i32 noundef 0, i32 noundef 0, i32 noundef %103, i32 noundef %106, i32 noundef 1, i32 noundef 0, ptr noundef @.str.3, ptr noundef %109)
  br label %111

111:                                              ; preds = %97, %92
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TCOD_Text, ptr %112, i32 0, i32 13
  %114 = load i32, ptr %113, align 8, !tbaa !28
  store i32 %114, ptr %7, align 4, !tbaa !16
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TCOD_Text, ptr %115, i32 0, i32 14
  %117 = load i32, ptr %116, align 4, !tbaa !29
  store i32 %117, ptr %8, align 4, !tbaa !16
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.TCOD_Text, ptr %118, i32 0, i32 23
  %120 = load ptr, ptr %119, align 8, !tbaa !23
  store ptr %120, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %11, align 4, !tbaa !16
  br label %121

121:                                              ; preds = %217, %111
  %122 = load ptr, ptr %12, align 8, !tbaa !5
  %123 = load i8, ptr %122, align 1, !tbaa !9
  %124 = icmp ne i8 %123, 0
  br i1 %124, label %125, label %222

125:                                              ; preds = %121
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = load i8, ptr %126, align 1, !tbaa !9
  %128 = sext i8 %127 to i32
  %129 = icmp eq i32 %128, 10
  br i1 %129, label %130, label %168

130:                                              ; preds = %125
  %131 = load i32, ptr %7, align 4, !tbaa !16
  %132 = icmp eq i32 %131, 0
  br i1 %132, label %136, label %133

133:                                              ; preds = %130
  %134 = load i32, ptr %11, align 4, !tbaa !16
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %165

136:                                              ; preds = %133, %130
  %137 = load i32, ptr %11, align 4, !tbaa !16
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.TCOD_Text, ptr %138, i32 0, i32 9
  %140 = load i32, ptr %139, align 4, !tbaa !30
  %141 = icmp sge i32 %137, %140
  br i1 %141, label %142, label %165

142:                                              ; preds = %136
  %143 = load i32, ptr %11, align 4, !tbaa !16
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.TCOD_Text, ptr %144, i32 0, i32 10
  %146 = load i32, ptr %145, align 8, !tbaa !31
  %147 = icmp slt i32 %143, %146
  br i1 %147, label %148, label %165

148:                                              ; preds = %142
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.TCOD_Text, ptr %149, i32 0, i32 15
  %151 = load ptr, ptr %150, align 8, !tbaa !10
  %152 = load i32, ptr %7, align 4, !tbaa !16
  %153 = load i32, ptr %8, align 4, !tbaa !16
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.TCOD_Text, ptr %154, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %17, ptr align 1 %155, i64 3, i1 false)
  %156 = load i24, ptr %17, align 4
  call void @TCOD_console_set_char_background(ptr noundef %151, i32 noundef %152, i32 noundef %153, i24 %156, i32 noundef 1)
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.TCOD_Text, ptr %157, i32 0, i32 15
  %159 = load ptr, ptr %158, align 8, !tbaa !10
  %160 = load i32, ptr %7, align 4, !tbaa !16
  %161 = load i32, ptr %8, align 4, !tbaa !16
  %162 = load ptr, ptr %5, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.TCOD_Text, ptr %162, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %163, i64 3, i1 false)
  %164 = load i24, ptr %18, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %159, i32 noundef %160, i32 noundef %161, i24 %164)
  br label %165

165:                                              ; preds = %148, %142, %136, %133
  store i32 0, ptr %7, align 4, !tbaa !16
  %166 = load i32, ptr %8, align 4, !tbaa !16
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %8, align 4, !tbaa !16
  br label %217

168:                                              ; preds = %125
  %169 = load i32, ptr %11, align 4, !tbaa !16
  %170 = load ptr, ptr %5, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.TCOD_Text, ptr %170, i32 0, i32 9
  %172 = load i32, ptr %171, align 4, !tbaa !30
  %173 = icmp sge i32 %169, %172
  br i1 %173, label %174, label %197

174:                                              ; preds = %168
  %175 = load i32, ptr %11, align 4, !tbaa !16
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.TCOD_Text, ptr %176, i32 0, i32 10
  %178 = load i32, ptr %177, align 8, !tbaa !31
  %179 = icmp slt i32 %175, %178
  br i1 %179, label %180, label %197

180:                                              ; preds = %174
  %181 = load ptr, ptr %5, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.TCOD_Text, ptr %181, i32 0, i32 15
  %183 = load ptr, ptr %182, align 8, !tbaa !10
  %184 = load i32, ptr %7, align 4, !tbaa !16
  %185 = load i32, ptr %8, align 4, !tbaa !16
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.TCOD_Text, ptr %186, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 1 %187, i64 3, i1 false)
  %188 = load i24, ptr %19, align 4
  call void @TCOD_console_set_char_background(ptr noundef %183, i32 noundef %184, i32 noundef %185, i24 %188, i32 noundef 1)
  %189 = load ptr, ptr %5, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.TCOD_Text, ptr %189, i32 0, i32 15
  %191 = load ptr, ptr %190, align 8, !tbaa !10
  %192 = load i32, ptr %7, align 4, !tbaa !16
  %193 = load i32, ptr %8, align 4, !tbaa !16
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.TCOD_Text, ptr %194, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 %195, i64 3, i1 false)
  %196 = load i24, ptr %20, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %191, i32 noundef %192, i32 noundef %193, i24 %196)
  br label %197

197:                                              ; preds = %180, %174, %168
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.TCOD_Text, ptr %198, i32 0, i32 15
  %200 = load ptr, ptr %199, align 8, !tbaa !10
  %201 = load i32, ptr %7, align 4, !tbaa !16
  %202 = load i32, ptr %8, align 4, !tbaa !16
  %203 = load ptr, ptr %12, align 8, !tbaa !5
  %204 = load i8, ptr %203, align 1, !tbaa !9
  %205 = sext i8 %204 to i32
  call void @TCOD_console_set_char(ptr noundef %200, i32 noundef %201, i32 noundef %202, i32 noundef %205)
  %206 = load i32, ptr %7, align 4, !tbaa !16
  %207 = add nsw i32 %206, 1
  store i32 %207, ptr %7, align 4, !tbaa !16
  %208 = load i32, ptr %7, align 4, !tbaa !16
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.TCOD_Text, ptr %209, i32 0, i32 2
  %211 = load i32, ptr %210, align 8, !tbaa !26
  %212 = icmp eq i32 %208, %211
  br i1 %212, label %213, label %216

213:                                              ; preds = %197
  store i32 0, ptr %7, align 4, !tbaa !16
  %214 = load i32, ptr %8, align 4, !tbaa !16
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr %8, align 4, !tbaa !16
  br label %216

216:                                              ; preds = %213, %197
  br label %217

217:                                              ; preds = %216, %165
  %218 = load ptr, ptr %12, align 8, !tbaa !5
  %219 = getelementptr inbounds i8, ptr %218, i32 1
  store ptr %219, ptr %12, align 8, !tbaa !5
  %220 = load i32, ptr %11, align 4, !tbaa !16
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %11, align 4, !tbaa !16
  br label %121, !llvm.loop !32

222:                                              ; preds = %121
  %223 = load i8, ptr %14, align 1, !tbaa !19, !range !20, !noundef !21
  %224 = trunc i8 %223 to i1
  br i1 %224, label %225, label %258

225:                                              ; preds = %222
  %226 = load ptr, ptr %5, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.TCOD_Text, ptr %226, i32 0, i32 7
  %228 = load i32, ptr %227, align 4, !tbaa !22
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %240

230:                                              ; preds = %225
  %231 = load i8, ptr %6, align 1, !tbaa !9
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.TCOD_Text, ptr %232, i32 0, i32 23
  %234 = load ptr, ptr %233, align 8, !tbaa !23
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.TCOD_Text, ptr %235, i32 0, i32 8
  %237 = load i32, ptr %236, align 8, !tbaa !24
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds i8, ptr %234, i64 %238
  store i8 %231, ptr %239, align 1, !tbaa !9
  br label %257

240:                                              ; preds = %225
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.TCOD_Text, ptr %241, i32 0, i32 15
  %243 = load ptr, ptr %242, align 8, !tbaa !10
  %244 = load i32, ptr %9, align 4, !tbaa !16
  %245 = load i32, ptr %10, align 4, !tbaa !16
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.TCOD_Text, ptr %246, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 1 %247, i64 3, i1 false)
  %248 = load i24, ptr %21, align 4
  call void @TCOD_console_set_char_background(ptr noundef %243, i32 noundef %244, i32 noundef %245, i24 %248, i32 noundef 1)
  %249 = load ptr, ptr %5, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.TCOD_Text, ptr %249, i32 0, i32 15
  %251 = load ptr, ptr %250, align 8, !tbaa !10
  %252 = load i32, ptr %9, align 4, !tbaa !16
  %253 = load i32, ptr %10, align 4, !tbaa !16
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.TCOD_Text, ptr %254, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %255, i64 3, i1 false)
  %256 = load i24, ptr %22, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %251, i32 noundef %252, i32 noundef %253, i24 %256)
  br label %257

257:                                              ; preds = %240, %230
  br label %289

258:                                              ; preds = %222
  %259 = load i8, ptr %14, align 1, !tbaa !19, !range !20, !noundef !21
  %260 = trunc i8 %259 to i1
  br i1 %260, label %288, label %261

261:                                              ; preds = %258
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.TCOD_Text, ptr %262, i32 0, i32 7
  %264 = load i32, ptr %263, align 4, !tbaa !22
  %265 = icmp ne i32 %264, 0
  br i1 %265, label %288, label %266

266:                                              ; preds = %261
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.TCOD_Text, ptr %267, i32 0, i32 22
  %269 = load i8, ptr %268, align 8, !tbaa !34, !range !20, !noundef !21
  %270 = trunc i8 %269 to i1
  br i1 %270, label %271, label %288

271:                                              ; preds = %266
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.TCOD_Text, ptr %272, i32 0, i32 15
  %274 = load ptr, ptr %273, align 8, !tbaa !10
  %275 = load i32, ptr %9, align 4, !tbaa !16
  %276 = load i32, ptr %10, align 4, !tbaa !16
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.TCOD_Text, ptr %277, i32 0, i32 19
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %278, i64 3, i1 false)
  %279 = load i24, ptr %23, align 4
  call void @TCOD_console_set_char_background(ptr noundef %274, i32 noundef %275, i32 noundef %276, i24 %279, i32 noundef 1)
  %280 = load ptr, ptr %5, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.TCOD_Text, ptr %280, i32 0, i32 15
  %282 = load ptr, ptr %281, align 8, !tbaa !10
  %283 = load i32, ptr %9, align 4, !tbaa !16
  %284 = load i32, ptr %10, align 4, !tbaa !16
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.TCOD_Text, ptr %285, i32 0, i32 20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 1 %286, i64 3, i1 false)
  %287 = load i24, ptr %24, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %282, i32 noundef %283, i32 noundef %284, i24 %287)
  br label %288

288:                                              ; preds = %271, %266, %261, %258
  br label %289

289:                                              ; preds = %288, %257
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.TCOD_Text, ptr %290, i32 0, i32 15
  %292 = load ptr, ptr %291, align 8, !tbaa !10
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.TCOD_Text, ptr %293, i32 0, i32 2
  %295 = load i32, ptr %294, align 8, !tbaa !26
  %296 = load ptr, ptr %5, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.TCOD_Text, ptr %296, i32 0, i32 3
  %298 = load i32, ptr %297, align 4, !tbaa !27
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.TCOD_Text, ptr %300, i32 0, i32 0
  %302 = load i32, ptr %301, align 8, !tbaa !35
  %303 = load ptr, ptr %5, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.TCOD_Text, ptr %303, i32 0, i32 1
  %305 = load i32, ptr %304, align 4, !tbaa !36
  %306 = load ptr, ptr %5, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.TCOD_Text, ptr %306, i32 0, i32 21
  %308 = load float, ptr %307, align 4, !tbaa !37
  call void @TCOD_console_blit(ptr noundef %292, i32 noundef 0, i32 noundef 0, i32 noundef %295, i32 noundef %298, ptr noundef %299, i32 noundef %302, i32 noundef %305, float noundef 1.000000e+00, float noundef %308)
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

declare i32 @TCOD_sys_elapsed_milli() #4

declare void @TCOD_console_set_default_background(ptr noundef, i24) #4

declare void @TCOD_console_set_default_foreground(ptr noundef, i24) #4

declare void @TCOD_console_clear(ptr noundef) #4

declare i32 @TCOD_console_print_rect_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ...) #4

declare void @TCOD_console_set_char_background(ptr noundef, i32 noundef, i32 noundef, i24, i32 noundef) #4

declare void @TCOD_console_set_char_foreground(ptr noundef, i32 noundef, i32 noundef, i24) #4

declare void @TCOD_console_set_char(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @TCOD_console_blit(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, float noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { "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 }
attributes #6 = { 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 = !{!7, !7, i64 0}
!10 = !{!11, !6, i64 64}
!11 = !{!"TCOD_Text", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !6, i64 48, !12, i64 56, !12, i64 60, !6, i64 64, !13, i64 72, !12, i64 76, !12, i64 80, !14, i64 84, !14, i64 87, !15, i64 92, !13, i64 96, !6, i64 104}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"TCOD_ColorRGB", !7, i64 0, !7, i64 1, !7, i64 2}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!11, !12, i64 20}
!18 = !{!11, !12, i64 24}
!19 = !{!13, !13, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!11, !12, i64 28}
!23 = !{!11, !6, i64 104}
!24 = !{!11, !12, i64 32}
!25 = !{!11, !6, i64 48}
!26 = !{!11, !12, i64 8}
!27 = !{!11, !12, i64 12}
!28 = !{!11, !12, i64 56}
!29 = !{!11, !12, i64 60}
!30 = !{!11, !12, i64 36}
!31 = !{!11, !12, i64 40}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!11, !13, i64 96}
!35 = !{!11, !12, i64 0}
!36 = !{!11, !12, i64 4}
!37 = !{!11, !15, i64 92}


; 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.1 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__.TCOD_text_render = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare hidden void @get_cursor_coords(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @TCOD_text_render(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #4
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %8, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 64
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not119 = icmp eq ptr %7, null
  br i1 %.not119, label %8, label %9

8:                                                ; preds = %5, %2
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 623, ptr noundef nonnull @__PRETTY_FUNCTION__.TCOD_text_render) #5
  unreachable

9:                                                ; preds = %5
  %10 = tail call i32 @TCOD_sys_elapsed_milli() #4
  %11 = getelementptr inbounds i8, ptr %0, i64 20
  %12 = load i32, ptr %11, align 4, !tbaa !14
  %13 = urem i32 %10, %12
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load i32, ptr %14, align 8, !tbaa !15
  %16 = icmp sgt i32 %13, %15
  %17 = load ptr, ptr %6, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 84
  %.0.copyload18 = load i24, ptr %18, align 4
  tail call void @TCOD_console_set_default_background(ptr noundef %17, i24 %.0.copyload18) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 87
  %.0.copyload16 = load i24, ptr %20, align 1
  tail call void @TCOD_console_set_default_foreground(ptr noundef %19, i24 %.0.copyload16) #4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  tail call void @TCOD_console_clear(ptr noundef %21) #4
  call void @get_cursor_coords(ptr noundef nonnull %0, ptr noundef nonnull %3, ptr noundef nonnull %4)
  br i1 %16, label %22, label %34

22:                                               ; preds = %9
  %23 = getelementptr inbounds i8, ptr %0, i64 28
  %24 = load i32, ptr %23, align 4, !tbaa !16
  %.not120 = icmp eq i32 %24, 0
  br i1 %.not120, label %34, label %25

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 104
  %27 = load ptr, ptr %26, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load i32, ptr %28, align 8, !tbaa !18
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds i8, ptr %27, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !19
  %33 = trunc i32 %24 to i8
  store i8 %33, ptr %31, align 1, !tbaa !19
  br label %34

34:                                               ; preds = %25, %22, %9
  %.0 = phi i8 [ %32, %25 ], [ 0, %22 ], [ 0, %9 ]
  %35 = getelementptr inbounds i8, ptr %0, i64 48
  %36 = load ptr, ptr %35, align 8, !tbaa !20
  %.not121 = icmp eq ptr %36, null
  br i1 %.not121, label %44, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %0, i64 8
  %40 = load i32, ptr %39, align 8, !tbaa !21
  %41 = getelementptr inbounds i8, ptr %0, i64 12
  %42 = load i32, ptr %41, align 4, !tbaa !22
  %43 = call i32 (ptr, i32, i32, i32, i32, i32, i32, ptr, ...) @TCOD_console_print_rect_ex(ptr noundef %38, i32 noundef 0, i32 noundef 0, i32 noundef %40, i32 noundef %42, i32 noundef 1, i32 noundef 0, ptr noundef nonnull @.str.3, ptr noundef nonnull %36) #4
  br label %44

44:                                               ; preds = %37, %34
  %45 = getelementptr inbounds i8, ptr %0, i64 56
  %46 = load i32, ptr %45, align 8, !tbaa !23
  %47 = getelementptr inbounds i8, ptr %0, i64 60
  %48 = load i32, ptr %47, align 4, !tbaa !24
  %49 = getelementptr inbounds i8, ptr %0, i64 104
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = getelementptr inbounds i8, ptr %0, i64 36
  %52 = getelementptr inbounds i8, ptr %0, i64 40
  %53 = getelementptr inbounds i8, ptr %0, i64 8
  br label %54

54:                                               ; preds = %85, %44
  %.0112 = phi ptr [ %50, %44 ], [ %86, %85 ]
  %.0111 = phi i32 [ 0, %44 ], [ %87, %85 ]
  %.0109 = phi i32 [ %48, %44 ], [ %.1110, %85 ]
  %.0108 = phi i32 [ %46, %44 ], [ %.1, %85 ]
  %55 = load i8, ptr %.0112, align 1, !tbaa !19
  switch i8 %55, label %69 [
    i8 0, label %88
    i8 10, label %56
  ]

56:                                               ; preds = %54
  %57 = icmp eq i32 %.0108, 0
  %58 = icmp eq i32 %.0111, 0
  %or.cond = select i1 %57, i1 true, i1 %58
  br i1 %or.cond, label %59, label %67

59:                                               ; preds = %56
  %60 = load i32, ptr %51, align 4, !tbaa !25
  %.not126 = icmp slt i32 %.0111, %60
  br i1 %.not126, label %67, label %61

61:                                               ; preds = %59
  %62 = load i32, ptr %52, align 8, !tbaa !26
  %63 = icmp slt i32 %.0111, %62
  br i1 %63, label %64, label %67

64:                                               ; preds = %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %.0.copyload14 = load i24, ptr %20, align 1
  call void @TCOD_console_set_char_background(ptr noundef %65, i32 noundef %.0108, i32 noundef %.0109, i24 %.0.copyload14, i32 noundef 1) #4
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %.0.copyload12 = load i24, ptr %18, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %66, i32 noundef %.0108, i32 noundef %.0109, i24 %.0.copyload12) #4
  br label %67

67:                                               ; preds = %56, %64, %61, %59
  %68 = add nsw i32 %.0109, 1
  br label %85

69:                                               ; preds = %54
  %70 = load i32, ptr %51, align 4, !tbaa !25
  %.not125 = icmp slt i32 %.0111, %70
  br i1 %.not125, label %77, label %71

71:                                               ; preds = %69
  %72 = load i32, ptr %52, align 8, !tbaa !26
  %73 = icmp slt i32 %.0111, %72
  br i1 %73, label %74, label %77

74:                                               ; preds = %71
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %.0.copyload10 = load i24, ptr %20, align 1
  call void @TCOD_console_set_char_background(ptr noundef %75, i32 noundef %.0108, i32 noundef %.0109, i24 %.0.copyload10, i32 noundef 1) #4
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %.0.copyload8 = load i24, ptr %18, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %76, i32 noundef %.0108, i32 noundef %.0109, i24 %.0.copyload8) #4
  %.pre = load i8, ptr %.0112, align 1, !tbaa !19
  br label %77

77:                                               ; preds = %74, %71, %69
  %78 = phi i8 [ %.pre, %74 ], [ %55, %71 ], [ %55, %69 ]
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = sext i8 %78 to i32
  call void @TCOD_console_set_char(ptr noundef %79, i32 noundef %.0108, i32 noundef %.0109, i32 noundef %80) #4
  %81 = add nsw i32 %.0108, 1
  %82 = load i32, ptr %53, align 8, !tbaa !21
  %83 = icmp eq i32 %81, %82
  %84 = zext i1 %83 to i32
  %spec.select = add nsw i32 %.0109, %84
  %spec.select127 = select i1 %83, i32 0, i32 %81
  br label %85

85:                                               ; preds = %77, %67
  %.1110 = phi i32 [ %68, %67 ], [ %spec.select, %77 ]
  %.1 = phi i32 [ 0, %67 ], [ %spec.select127, %77 ]
  %86 = getelementptr inbounds i8, ptr %.0112, i64 1
  %87 = add nuw nsw i32 %.0111, 1
  br label %54, !llvm.loop !27

88:                                               ; preds = %54
  %89 = getelementptr inbounds i8, ptr %0, i64 28
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %.not124 = icmp eq i32 %90, 0
  br i1 %16, label %91, label %105

91:                                               ; preds = %88
  br i1 %.not124, label %98, label %92

92:                                               ; preds = %91
  %93 = load ptr, ptr %49, align 8, !tbaa !17
  %94 = getelementptr inbounds i8, ptr %0, i64 32
  %95 = load i32, ptr %94, align 8, !tbaa !18
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %93, i64 %96
  store i8 %.0, ptr %97, align 1, !tbaa !19
  br label %117

98:                                               ; preds = %91
  %99 = load ptr, ptr %6, align 8, !tbaa !5
  %100 = load i32, ptr %3, align 4, !tbaa !29
  %101 = load i32, ptr %4, align 4, !tbaa !29
  %.0.copyload6 = load i24, ptr %20, align 1
  call void @TCOD_console_set_char_background(ptr noundef %99, i32 noundef %100, i32 noundef %101, i24 %.0.copyload6, i32 noundef 1) #4
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load i32, ptr %3, align 4, !tbaa !29
  %104 = load i32, ptr %4, align 4, !tbaa !29
  %.0.copyload4 = load i24, ptr %18, align 4
  call void @TCOD_console_set_char_foreground(ptr noundef %102, i32 noundef %103, i32 noundef %104, i24 %.0.copyload4) #4
  br label %117

105:                                              ; preds = %88
  br i1 %.not124, label %106, label %117

106:                                              ; preds = %105
  %107 = getelementptr inbounds i8, ptr %0, i64 96
  %108 = load i8, ptr %107, align 8, !tbaa !30, !range !31, !noundef !32
  %109 = trunc nuw i8 %108 to i1
  br i1 %109, label %110, label %117

110:                                              ; preds = %106
  %111 = load ptr, ptr %6, align 8, !tbaa !5
  %112 = load i32, ptr %3, align 4, !tbaa !29
  %113 = load i32, ptr %4, align 4, !tbaa !29
  %.0.copyload2 = load i24, ptr %18, align 4
  call void @TCOD_console_set_char_background(ptr noundef %111, i32 noundef %112, i32 noundef %113, i24 %.0.copyload2, i32 noundef 1) #4
  %114 = load ptr, ptr %6, align 8, !tbaa !5
  %115 = load i32, ptr %3, align 4, !tbaa !29
  %116 = load i32, ptr %4, align 4, !tbaa !29
  %.0.copyload = load i24, ptr %20, align 1
  call void @TCOD_console_set_char_foreground(ptr noundef %114, i32 noundef %115, i32 noundef %116, i24 %.0.copyload) #4
  br label %117

117:                                              ; preds = %105, %106, %110, %92, %98
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load i32, ptr %53, align 8, !tbaa !21
  %120 = getelementptr inbounds i8, ptr %0, i64 12
  %121 = load i32, ptr %120, align 4, !tbaa !22
  %122 = load i32, ptr %0, align 8, !tbaa !33
  %123 = getelementptr inbounds i8, ptr %0, i64 4
  %124 = load i32, ptr %123, align 4, !tbaa !34
  %125 = getelementptr inbounds i8, ptr %0, i64 92
  %126 = load float, ptr %125, align 4, !tbaa !35
  call void @TCOD_console_blit(ptr noundef %118, i32 noundef 0, i32 noundef 0, i32 noundef %119, i32 noundef %121, ptr noundef %1, i32 noundef %122, i32 noundef %124, float noundef 1.000000e+00, float noundef %126) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #4
  ret void
}

declare i32 @TCOD_sys_elapsed_milli() local_unnamed_addr #3

declare void @TCOD_console_set_default_background(ptr noundef, i24) local_unnamed_addr #3

declare void @TCOD_console_set_default_foreground(ptr noundef, i24) local_unnamed_addr #3

declare void @TCOD_console_clear(ptr noundef) local_unnamed_addr #3

declare i32 @TCOD_console_print_rect_ex(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #3

declare void @TCOD_console_set_char_background(ptr noundef, i32 noundef, i32 noundef, i24, i32 noundef) local_unnamed_addr #3

declare void @TCOD_console_set_char_foreground(ptr noundef, i32 noundef, i32 noundef, i24) local_unnamed_addr #3

declare void @TCOD_console_set_char(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @TCOD_console_blit(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef, float noundef, float noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 }
attributes #5 = { 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, !10, i64 64}
!6 = !{!"TCOD_Text", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !10, i64 48, !7, i64 56, !7, i64 60, !10, i64 64, !11, i64 72, !7, i64 76, !7, i64 80, !12, i64 84, !12, i64 87, !13, i64 92, !11, i64 96, !10, i64 104}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!"TCOD_ColorRGB", !8, i64 0, !8, i64 1, !8, i64 2}
!13 = !{!"float", !8, i64 0}
!14 = !{!6, !7, i64 20}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !7, i64 28}
!17 = !{!6, !10, i64 104}
!18 = !{!6, !7, i64 32}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !10, i64 48}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !7, i64 12}
!23 = !{!6, !7, i64 56}
!24 = !{!6, !7, i64 60}
!25 = !{!6, !7, i64 36}
!26 = !{!6, !7, i64 40}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!7, !7, i64 0}
!30 = !{!6, !11, i64 96}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!6, !7, i64 0}
!34 = !{!6, !7, i64 4}
!35 = !{!6, !13, i64 92}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass