; LLVM IR from clangen/musikcube :: src/3rdparty/win32_src/pdcurses (scr_dump)

; 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._win = type { i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@_format_nine_ints = external hidden global ptr, align 8
@_format_three_ints = external hidden global ptr, align 8
@__PRETTY_FUNCTION__.getwin = external hidden unnamed_addr constant [23 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

declare ptr @curses_version() #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @getwin(ptr noundef %0) #3 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct._win, align 8
  %6 = alloca [80 x i8], align 16
  %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 i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 136, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #8
  store i8 0, ptr %18, align 1, !tbaa !9
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %28

27:                                               ; preds = %1
  br label %29

28:                                               ; preds = %1
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 176, ptr noundef @__PRETTY_FUNCTION__.getwin) #9
  unreachable

29:                                               ; preds = %27
  call void @llvm.memset.p0.i64(ptr align 8 %5, i8 0, i64 136, i1 false)
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %42

32:                                               ; preds = %29
  %33 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = call ptr @fgets(ptr noundef %33, i32 noundef 80, ptr noundef %34)
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %42

37:                                               ; preds = %32
  %38 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %39 = call ptr @curses_version()
  %40 = call i32 @strncmp(ptr noundef %38, ptr noundef %39, i64 noundef 14) #10
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %37, %32, %29
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %101

43:                                               ; preds = %37
  %44 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = call ptr @fgets(ptr noundef %44, i32 noundef 80, ptr noundef %45)
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %63

48:                                               ; preds = %43
  %49 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %50 = load ptr, ptr @_format_nine_ints, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 0
  %52 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 1
  %53 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 2
  %54 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 3
  %55 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 4
  %56 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 5
  %57 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 6
  %58 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %49, ptr noundef %50, ptr noundef %16, ptr noundef %17, ptr noundef %51, ptr noundef %52, ptr noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %56, ptr noundef %57) #8
  %59 = icmp ne i32 9, %58
  br i1 %59, label %63, label %60

60:                                               ; preds = %48
  %61 = load i32, ptr %16, align 4, !tbaa !11
  %62 = icmp ne i32 %61, 2
  br i1 %62, label %63, label %64

63:                                               ; preds = %60, %48, %43
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %100

64:                                               ; preds = %60
  %65 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = call ptr @fgets(ptr noundef %65, i32 noundef 80, ptr noundef %66)
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %76

69:                                               ; preds = %64
  %70 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %71 = load ptr, ptr @_format_nine_ints, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 19
  %73 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 20
  %74 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %70, ptr noundef %71, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %72, ptr noundef %73) #8
  %75 = icmp ne i32 9, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %69, %64
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %99

77:                                               ; preds = %69
  %78 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = call ptr @fgets(ptr noundef %78, i32 noundef 80, ptr noundef %79)
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %90

82:                                               ; preds = %77
  %83 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %84 = load ptr, ptr @_format_three_ints, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 21
  %86 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 22
  %87 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 23
  %88 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %83, ptr noundef %84, ptr noundef %85, ptr noundef %86, ptr noundef %87) #8
  %89 = icmp ne i32 3, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %82, %77
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %98

91:                                               ; preds = %82
  %92 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = call i64 @fread(ptr noundef %92, i64 noundef 16, i64 noundef 1, ptr noundef %93)
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %97, label %96

96:                                               ; preds = %91
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %97

97:                                               ; preds = %96, %91
  br label %98

98:                                               ; preds = %97, %90
  br label %99

99:                                               ; preds = %98, %76
  br label %100

100:                                              ; preds = %99, %63
  br label %101

101:                                              ; preds = %100, %42
  %102 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %103 = trunc i8 %102 to i1
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %254

105:                                              ; preds = %101
  %106 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 2
  %107 = load i32, ptr %106, align 8, !tbaa !15
  %108 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 3
  %109 = load i32, ptr %108, align 4, !tbaa !18
  %110 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 4
  %111 = load i32, ptr %110, align 8, !tbaa !19
  %112 = getelementptr inbounds %struct._win, ptr %5, i32 0, i32 5
  %113 = load i32, ptr %112, align 4, !tbaa !20
  %114 = call ptr @PDC_makenew(i32 noundef %107, i32 noundef %109, i32 noundef %111, i32 noundef %113)
  store ptr %114, ptr %4, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = icmp ne ptr %115, null
  br i1 %116, label %118, label %117

117:                                              ; preds = %105
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %254

118:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct._win, ptr %119, i32 0, i32 16
  %121 = load ptr, ptr %120, align 8, !tbaa !21
  store ptr %121, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %122 = load ptr, ptr %4, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct._win, ptr %122, i32 0, i32 17
  %124 = load ptr, ptr %123, align 8, !tbaa !22
  store ptr %124, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct._win, ptr %125, i32 0, i32 18
  %127 = load ptr, ptr %126, align 8, !tbaa !23
  store ptr %127, ptr %22, align 8, !tbaa !5
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %128, ptr align 8 %5, i64 136, i1 false)
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._win, ptr %130, i32 0, i32 16
  store ptr %129, ptr %131, align 8, !tbaa !21
  %132 = load ptr, ptr %21, align 8, !tbaa !5
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct._win, ptr %133, i32 0, i32 17
  store ptr %132, ptr %134, align 8, !tbaa !22
  %135 = load ptr, ptr %22, align 8, !tbaa !5
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct._win, ptr %136, i32 0, i32 18
  store ptr %135, ptr %137, align 8, !tbaa !23
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %138

138:                                              ; preds = %118
  %139 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %140 = call i64 @_get_chtype_from_eight_bytes(ptr noundef %139)
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct._win, ptr %141, i32 0, i32 7
  store i64 %140, ptr %142, align 8, !tbaa !24
  %143 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %144 = getelementptr inbounds i8, ptr %143, i64 8
  %145 = call i64 @_get_chtype_from_eight_bytes(ptr noundef %144)
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct._win, ptr %146, i32 0, i32 8
  store i64 %145, ptr %147, align 8, !tbaa !25
  %148 = load i32, ptr %9, align 4, !tbaa !11
  %149 = icmp ne i32 %148, 0
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct._win, ptr %150, i32 0, i32 9
  %152 = zext i1 %149 to i8
  store i8 %152, ptr %151, align 8, !tbaa !26
  %153 = load i32, ptr %10, align 4, !tbaa !11
  %154 = icmp ne i32 %153, 0
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct._win, ptr %155, i32 0, i32 10
  %157 = zext i1 %154 to i8
  store i8 %157, ptr %156, align 1, !tbaa !27
  %158 = load i32, ptr %11, align 4, !tbaa !11
  %159 = icmp ne i32 %158, 0
  %160 = load ptr, ptr %4, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct._win, ptr %160, i32 0, i32 11
  %162 = zext i1 %159 to i8
  store i8 %162, ptr %161, align 2, !tbaa !28
  %163 = load i32, ptr %12, align 4, !tbaa !11
  %164 = icmp ne i32 %163, 0
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct._win, ptr %165, i32 0, i32 12
  %167 = zext i1 %164 to i8
  store i8 %167, ptr %166, align 1, !tbaa !29
  %168 = load i32, ptr %13, align 4, !tbaa !11
  %169 = icmp ne i32 %168, 0
  %170 = load ptr, ptr %4, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct._win, ptr %170, i32 0, i32 13
  %172 = zext i1 %169 to i8
  store i8 %172, ptr %171, align 4, !tbaa !30
  %173 = load i32, ptr %14, align 4, !tbaa !11
  %174 = icmp ne i32 %173, 0
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct._win, ptr %175, i32 0, i32 14
  %177 = zext i1 %174 to i8
  store i8 %177, ptr %176, align 1, !tbaa !31
  %178 = load i32, ptr %15, align 4, !tbaa !11
  %179 = icmp ne i32 %178, 0
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct._win, ptr %180, i32 0, i32 15
  %182 = zext i1 %179 to i8
  store i8 %182, ptr %181, align 2, !tbaa !32
  %183 = load ptr, ptr %4, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct._win, ptr %183, i32 0, i32 2
  %185 = load i32, ptr %184, align 8, !tbaa !15
  store i32 %185, ptr %7, align 4, !tbaa !11
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = call ptr @PDC_makelines(ptr noundef %186)
  store ptr %187, ptr %4, align 8, !tbaa !5
  %188 = load ptr, ptr %4, align 8, !tbaa !5
  %189 = icmp ne ptr %188, null
  br i1 %189, label %191, label %190

190:                                              ; preds = %138
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %254

191:                                              ; preds = %138
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %192

192:                                              ; preds = %240, %191
  %193 = load i32, ptr %8, align 4, !tbaa !11
  %194 = load i32, ptr %7, align 4, !tbaa !11
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %196, label %200

196:                                              ; preds = %192
  %197 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %198 = trunc i8 %197 to i1
  %199 = xor i1 %198, true
  br label %200

200:                                              ; preds = %196, %192
  %201 = phi i1 [ false, %192 ], [ %199, %196 ]
  br i1 %201, label %202, label %243

202:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct._win, ptr %203, i32 0, i32 3
  %205 = load i32, ptr %204, align 4, !tbaa !18
  store i32 %205, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %206

206:                                              ; preds = %236, %202
  %207 = load i32, ptr %24, align 4, !tbaa !11
  %208 = load i32, ptr %23, align 4, !tbaa !11
  %209 = icmp slt i32 %207, %208
  br i1 %209, label %210, label %214

210:                                              ; preds = %206
  %211 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %212 = trunc i8 %211 to i1
  %213 = xor i1 %212, true
  br label %214

214:                                              ; preds = %210, %206
  %215 = phi i1 [ false, %206 ], [ %213, %210 ]
  br i1 %215, label %216, label %239

216:                                              ; preds = %214
  %217 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %218 = load ptr, ptr %3, align 8, !tbaa !5
  %219 = call i64 @fread(ptr noundef %217, i64 noundef 8, i64 noundef 1, ptr noundef %218)
  %220 = icmp ne i64 %219, 0
  br i1 %220, label %222, label %221

221:                                              ; preds = %216
  store i8 1, ptr %18, align 1, !tbaa !9
  br label %235

222:                                              ; preds = %216
  %223 = getelementptr inbounds [80 x i8], ptr %6, i64 0, i64 0
  %224 = call i64 @_get_chtype_from_eight_bytes(ptr noundef %223)
  %225 = load ptr, ptr %4, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct._win, ptr %225, i32 0, i32 16
  %227 = load ptr, ptr %226, align 8, !tbaa !21
  %228 = load i32, ptr %8, align 4, !tbaa !11
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds ptr, ptr %227, i64 %229
  %231 = load ptr, ptr %230, align 8, !tbaa !5
  %232 = load i32, ptr %24, align 4, !tbaa !11
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds i64, ptr %231, i64 %233
  store i64 %224, ptr %234, align 8, !tbaa !33
  br label %235

235:                                              ; preds = %222, %221
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %24, align 4, !tbaa !11
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %24, align 4, !tbaa !11
  br label %206, !llvm.loop !34

239:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %8, align 4, !tbaa !11
  %242 = add nsw i32 %241, 1
  store i32 %242, ptr %8, align 4, !tbaa !11
  br label %192, !llvm.loop !36

243:                                              ; preds = %200
  %244 = load i8, ptr %18, align 1, !tbaa !9, !range !13, !noundef !14
  %245 = trunc i8 %244 to i1
  br i1 %245, label %246, label %249

246:                                              ; preds = %243
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = call i32 @delwin(ptr noundef %247)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %254

249:                                              ; preds = %243
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = call i32 @touchwin(ptr noundef %250)
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PDC_add_window_to_list(ptr noundef %252)
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %253, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %254

254:                                              ; preds = %249, %246, %190, %117, %104
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %255 = load ptr, ptr %2, align 8
  ret ptr %255
}

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

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #5

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #6

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

declare ptr @PDC_makenew(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; 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) #7

; Function Attrs: nounwind uwtable
declare hidden i64 @_get_chtype_from_eight_bytes(ptr noundef) #3

declare ptr @PDC_makelines(ptr noundef) #2

declare i32 @delwin(ptr noundef) #2

declare i32 @touchwin(ptr noundef) #2

declare void @PDC_add_window_to_list(ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !12, i64 8}
!16 = !{!"_win", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !17, i64 32, !17, i64 40, !10, i64 48, !10, i64 49, !10, i64 50, !10, i64 51, !10, i64 52, !10, i64 53, !10, i64 54, !6, i64 56, !6, i64 64, !6, i64 72, !12, i64 80, !12, i64 84, !12, i64 88, !12, i64 92, !12, i64 96, !6, i64 104, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !12, i64 12}
!19 = !{!16, !12, i64 16}
!20 = !{!16, !12, i64 20}
!21 = !{!16, !6, i64 56}
!22 = !{!16, !6, i64 64}
!23 = !{!16, !6, i64 72}
!24 = !{!16, !17, i64 32}
!25 = !{!16, !17, i64 40}
!26 = !{!16, !10, i64 48}
!27 = !{!16, !10, i64 49}
!28 = !{!16, !10, i64 50}
!29 = !{!16, !10, i64 51}
!30 = !{!16, !10, i64 52}
!31 = !{!16, !10, i64 53}
!32 = !{!16, !10, i64 54}
!33 = !{!17, !17, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct._win = type { i32, i32, i32, i32, i32, i32, i32, i64, i64, i8, i8, i8, i8, i8, i8, i8, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [94 x i8], align 1
@_format_nine_ints = external hidden local_unnamed_addr global ptr, align 8
@_format_three_ints = external hidden local_unnamed_addr global ptr, align 8
@__PRETTY_FUNCTION__.getwin = external hidden unnamed_addr constant [23 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

declare ptr @curses_version() local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local ptr @getwin(ptr noundef %0) local_unnamed_addr #3 {
  %2 = alloca %struct._win, align 8
  %3 = alloca [80 x i8], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %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 i32, align 4
  call void @llvm.lifetime.start.p0(i64 136, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %13, label %14

13:                                               ; preds = %1
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 176, ptr noundef nonnull @__PRETTY_FUNCTION__.getwin) #9
  unreachable

14:                                               ; preds = %1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(136) %2, i8 0, i64 136, i1 false)
  %15 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 80, ptr noundef nonnull %0)
  %.not56 = icmp eq ptr %15, null
  br i1 %.not56, label %.thread, label %16

16:                                               ; preds = %14
  %17 = call ptr @curses_version() #8
  %18 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) %17, i64 noundef 14) #10
  %.not57 = icmp eq i32 %18, 0
  br i1 %.not57, label %19, label %.thread

19:                                               ; preds = %16
  %20 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 80, ptr noundef nonnull %0)
  %.not58 = icmp eq ptr %20, null
  br i1 %.not58, label %.thread, label %21

21:                                               ; preds = %19
  %22 = load ptr, ptr @_format_nine_ints, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %2, i64 4
  %24 = getelementptr inbounds i8, ptr %2, i64 8
  %25 = getelementptr inbounds i8, ptr %2, i64 12
  %26 = getelementptr inbounds i8, ptr %2, i64 16
  %27 = getelementptr inbounds i8, ptr %2, i64 20
  %28 = getelementptr inbounds i8, ptr %2, i64 24
  %29 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef %22, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %2, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27, ptr noundef nonnull %28) #8
  %30 = icmp ne i32 %29, 9
  %31 = load i32, ptr %11, align 4
  %32 = icmp ne i32 %31, 2
  %or.cond = select i1 %30, i1 true, i1 %32
  br i1 %or.cond, label %.thread, label %33

33:                                               ; preds = %21
  %34 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 80, ptr noundef nonnull %0)
  %.not59 = icmp eq ptr %34, null
  br i1 %.not59, label %.thread, label %35

35:                                               ; preds = %33
  %36 = load ptr, ptr @_format_nine_ints, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %2, i64 80
  %38 = getelementptr inbounds i8, ptr %2, i64 84
  %39 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef %36, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %37, ptr noundef nonnull %38) #8
  %.not60 = icmp eq i32 %39, 9
  br i1 %.not60, label %40, label %.thread

40:                                               ; preds = %35
  %41 = call ptr @fgets(ptr noundef nonnull %3, i32 noundef 80, ptr noundef nonnull %0)
  %.not61 = icmp eq ptr %41, null
  br i1 %.not61, label %.thread, label %42

42:                                               ; preds = %40
  %43 = load ptr, ptr @_format_three_ints, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %2, i64 88
  %45 = getelementptr inbounds i8, ptr %2, i64 92
  %46 = getelementptr inbounds i8, ptr %2, i64 96
  %47 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %3, ptr noundef %43, ptr noundef nonnull %44, ptr noundef nonnull %45, ptr noundef nonnull %46) #8
  %.not62 = icmp eq i32 %47, 3
  br i1 %.not62, label %48, label %.thread

48:                                               ; preds = %42
  %49 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 16, i64 noundef 1, ptr noundef nonnull %0)
  %.not63 = icmp eq i64 %49, 0
  br i1 %.not63, label %.thread, label %50

50:                                               ; preds = %48
  %51 = load i32, ptr %24, align 8, !tbaa !9
  %52 = load i32, ptr %25, align 4, !tbaa !14
  %53 = load i32, ptr %26, align 8, !tbaa !15
  %54 = load i32, ptr %27, align 4, !tbaa !16
  %55 = call ptr @PDC_makenew(i32 noundef %51, i32 noundef %52, i32 noundef %53, i32 noundef %54) #8
  %.not64 = icmp eq ptr %55, null
  br i1 %.not64, label %.thread, label %56

56:                                               ; preds = %50
  %57 = getelementptr inbounds i8, ptr %55, i64 56
  %58 = getelementptr inbounds i8, ptr %55, i64 72
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  %60 = load <2 x ptr>, ptr %57, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(136) %55, ptr noundef nonnull align 8 dereferenceable(136) %2, i64 136, i1 false)
  store <2 x ptr> %60, ptr %57, align 8, !tbaa !5
  store ptr %59, ptr %58, align 8, !tbaa !17
  %61 = call i64 @_get_chtype_from_eight_bytes(ptr noundef nonnull %3)
  %62 = getelementptr inbounds i8, ptr %55, i64 32
  store i64 %61, ptr %62, align 8, !tbaa !18
  %63 = getelementptr inbounds i8, ptr %3, i64 8
  %64 = call i64 @_get_chtype_from_eight_bytes(ptr noundef nonnull %63)
  %65 = getelementptr inbounds i8, ptr %55, i64 40
  store i64 %64, ptr %65, align 8, !tbaa !19
  %66 = load i32, ptr %4, align 4, !tbaa !20
  %67 = getelementptr inbounds i8, ptr %55, i64 48
  %68 = load i32, ptr %5, align 4, !tbaa !20
  %69 = load i32, ptr %6, align 4, !tbaa !20
  %70 = load i32, ptr %7, align 4, !tbaa !20
  %71 = insertelement <4 x i32> poison, i32 %66, i64 0
  %72 = insertelement <4 x i32> %71, i32 %68, i64 1
  %73 = insertelement <4 x i32> %72, i32 %69, i64 2
  %74 = insertelement <4 x i32> %73, i32 %70, i64 3
  %75 = icmp ne <4 x i32> %74, zeroinitializer
  %76 = zext <4 x i1> %75 to <4 x i8>
  store <4 x i8> %76, ptr %67, align 8, !tbaa !21
  %77 = load i32, ptr %8, align 4, !tbaa !20
  %78 = icmp ne i32 %77, 0
  %79 = getelementptr inbounds i8, ptr %55, i64 52
  %80 = zext i1 %78 to i8
  store i8 %80, ptr %79, align 4, !tbaa !22
  %81 = load i32, ptr %9, align 4, !tbaa !20
  %82 = icmp ne i32 %81, 0
  %83 = getelementptr inbounds i8, ptr %55, i64 53
  %84 = zext i1 %82 to i8
  store i8 %84, ptr %83, align 1, !tbaa !23
  %85 = load i32, ptr %10, align 4, !tbaa !20
  %86 = icmp ne i32 %85, 0
  %87 = getelementptr inbounds i8, ptr %55, i64 54
  %88 = zext i1 %86 to i8
  store i8 %88, ptr %87, align 2, !tbaa !24
  %89 = getelementptr inbounds i8, ptr %55, i64 8
  %90 = load i32, ptr %89, align 8, !tbaa !9
  %91 = call ptr @PDC_makelines(ptr noundef nonnull %55) #8
  %.not65 = icmp eq ptr %91, null
  br i1 %.not65, label %.thread, label %.preheader

.preheader:                                       ; preds = %56
  %92 = icmp slt i32 %90, 1
  br i1 %92, label %._crit_edge79.thread95, label %.lr.ph78

.lr.ph78:                                         ; preds = %.preheader
  %93 = getelementptr inbounds i8, ptr %91, i64 12
  %94 = getelementptr inbounds i8, ptr %91, i64 56
  %95 = zext nneg i32 %90 to i64
  br label %96

96:                                               ; preds = %.lr.ph78, %._crit_edge
  %indvars.iv82 = phi i64 [ 0, %.lr.ph78 ], [ %indvars.iv.next83, %._crit_edge ]
  %97 = load i32, ptr %93, align 4, !tbaa !14
  %98 = icmp slt i32 %97, 1
  br i1 %98, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %96
  %99 = zext nneg i32 %97 to i64
  br label %100

100:                                              ; preds = %.lr.ph, %102
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %102 ]
  %101 = call i64 @fread(ptr noundef nonnull %3, i64 noundef 8, i64 noundef 1, ptr noundef nonnull %0)
  %.not70 = icmp eq i64 %101, 0
  br i1 %.not70, label %._crit_edge79.thread, label %102

102:                                              ; preds = %100
  %103 = call i64 @_get_chtype_from_eight_bytes(ptr noundef nonnull %3)
  %104 = load ptr, ptr %94, align 8, !tbaa !25
  %105 = getelementptr inbounds ptr, ptr %104, i64 %indvars.iv82
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = getelementptr inbounds i64, ptr %106, i64 %indvars.iv
  store i64 %103, ptr %107, align 8, !tbaa !26
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not97 = icmp ult i64 %indvars.iv.next, %99
  br i1 %.not97, label %100, label %._crit_edge, !llvm.loop !27

._crit_edge:                                      ; preds = %102, %96
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %.not98 = icmp ult i64 %indvars.iv.next83, %95
  br i1 %.not98, label %96, label %._crit_edge79.thread95, !llvm.loop !29

._crit_edge79.thread:                             ; preds = %100
  %108 = call i32 @delwin(ptr noundef nonnull %91) #8
  br label %.thread

._crit_edge79.thread95:                           ; preds = %._crit_edge, %.preheader
  %109 = call i32 @touchwin(ptr noundef nonnull %91) #8
  call void @PDC_add_window_to_list(ptr noundef nonnull %91) #8
  br label %.thread

.thread:                                          ; preds = %40, %42, %33, %35, %19, %21, %14, %16, %56, %50, %48, %._crit_edge79.thread95, %._crit_edge79.thread
  %.050 = phi ptr [ null, %._crit_edge79.thread ], [ %91, %._crit_edge79.thread95 ], [ null, %48 ], [ null, %50 ], [ null, %56 ], [ null, %16 ], [ null, %14 ], [ null, %21 ], [ null, %19 ], [ null, %35 ], [ null, %33 ], [ null, %42 ], [ null, %40 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 136, ptr nonnull %2) #8
  ret ptr %.050
}

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

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

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

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

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

declare ptr @PDC_makenew(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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) #7

; Function Attrs: nounwind uwtable
declare hidden i64 @_get_chtype_from_eight_bytes(ptr noundef) local_unnamed_addr #3

declare ptr @PDC_makelines(ptr noundef) local_unnamed_addr #2

declare i32 @delwin(ptr noundef) local_unnamed_addr #2

declare i32 @touchwin(ptr noundef) local_unnamed_addr #2

declare void @PDC_add_window_to_list(ptr noundef) local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 8}
!10 = !{!"_win", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !12, i64 32, !12, i64 40, !13, i64 48, !13, i64 49, !13, i64 50, !13, i64 51, !13, i64 52, !13, i64 53, !13, i64 54, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !6, i64 104, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!10, !11, i64 12}
!15 = !{!10, !11, i64 16}
!16 = !{!10, !11, i64 20}
!17 = !{!10, !6, i64 72}
!18 = !{!10, !12, i64 32}
!19 = !{!10, !12, i64 40}
!20 = !{!11, !11, i64 0}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !13, i64 52}
!23 = !{!10, !13, i64 53}
!24 = !{!10, !13, i64 54}
!25 = !{!10, !6, i64 56}
!26 = !{!12, !12, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass