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

; 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 }
%struct.SCREEN = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i16, i16, i32, i32, i32, i32, i32, i32, i64, i32, i32, ptr, i32, i32, i32, i8, i32, i64, i8, i8, %struct.MOUSE_STATUS, i16, i64, ptr, ptr, i8, i8, i32, i32, ptr, i32, i32, ptr, i32, i32, ptr }
%struct.MOUSE_STATUS = type { i32, i32, [9 x i16], i32 }

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.wgetnstr = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@SP = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@TABSIZE = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

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

21:                                               ; preds = %3
  br label %23

22:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 97, ptr noundef @__PRETTY_FUNCTION__.wgetnstr) #5
  unreachable

23:                                               ; preds = %21
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = icmp ne ptr %24, null
  br i1 %25, label %26, label %27

26:                                               ; preds = %23
  br label %28

27:                                               ; preds = %23
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 98, ptr noundef @__PRETTY_FUNCTION__.wgetnstr) #5
  unreachable

28:                                               ; preds = %26
  %29 = load ptr, ptr @SP, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  br label %33

32:                                               ; preds = %28
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 99, ptr noundef @__PRETTY_FUNCTION__.wgetnstr) #5
  unreachable

33:                                               ; preds = %31
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %39

36:                                               ; preds = %33
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %40, label %39

39:                                               ; preds = %36, %33
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %280

40:                                               ; preds = %36
  store i32 0, ptr %12, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %41, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %14, align 1, !tbaa !11
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._win, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 4, !tbaa !13
  store i32 %44, ptr %11, align 4, !tbaa !9
  %45 = load ptr, ptr @SP, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SCREEN, ptr %45, i32 0, i32 2
  %47 = load i8, ptr %46, align 2, !tbaa !16, !range !20, !noundef !21
  %48 = trunc i8 %47 to i1
  %49 = zext i1 %48 to i8
  store i8 %49, ptr %16, align 1, !tbaa !11
  %50 = load ptr, ptr @SP, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SCREEN, ptr %50, i32 0, i32 3
  %52 = load i8, ptr %51, align 1, !tbaa !22, !range !20, !noundef !21
  %53 = trunc i8 %52 to i1
  %54 = zext i1 %53 to i8
  store i8 %54, ptr %15, align 1, !tbaa !11
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._win, ptr %55, i32 0, i32 12
  %57 = load i8, ptr %56, align 1, !tbaa !23, !range !20, !noundef !21
  %58 = trunc i8 %57 to i1
  %59 = zext i1 %58 to i8
  store i8 %59, ptr %17, align 1, !tbaa !11
  %60 = load ptr, ptr @SP, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SCREEN, ptr %60, i32 0, i32 3
  store i8 0, ptr %61, align 1, !tbaa !22
  %62 = call i32 @cbreak()
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct._win, ptr %63, i32 0, i32 12
  store i8 0, ptr %64, align 1, !tbaa !23
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = call i32 @wrefresh(ptr noundef %65)
  br label %67

67:                                               ; preds = %260, %40
  %68 = load i8, ptr %14, align 1, !tbaa !11, !range !20, !noundef !21
  %69 = trunc i8 %68 to i1
  %70 = xor i1 %69, true
  br i1 %70, label %71, label %263

71:                                               ; preds = %67
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = call i32 @wgetch(ptr noundef %72)
  store i32 %73, ptr %8, align 4, !tbaa !9
  %74 = load i32, ptr %8, align 4, !tbaa !9
  switch i32 %74, label %235 [
    i32 9, label %75
    i32 8, label %115
    i32 21, label %142
    i32 23, label %168
    i32 10, label %228
    i32 13, label %228
  ]

75:                                               ; preds = %71
  store i32 32, ptr %8, align 4, !tbaa !9
  %76 = load i32, ptr @TABSIZE, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct._win, ptr %77, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !13
  %80 = load i32, ptr %11, align 4, !tbaa !9
  %81 = sub nsw i32 %79, %80
  %82 = load i32, ptr @TABSIZE, align 4, !tbaa !9
  %83 = srem i32 %81, %82
  %84 = sub nsw i32 %76, %83
  store i32 %84, ptr %10, align 4, !tbaa !9
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %111, %75
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = load i32, ptr %10, align 4, !tbaa !9
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %89, label %114

89:                                               ; preds = %85
  %90 = load i32, ptr %12, align 4, !tbaa !9
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %93, label %108

93:                                               ; preds = %89
  %94 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %95 = trunc i8 %94 to i1
  br i1 %95, label %96, label %101

96:                                               ; preds = %93
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call i32 @waddch(ptr noundef %97, i64 noundef %99)
  br label %101

101:                                              ; preds = %96, %93
  %102 = load i32, ptr %8, align 4, !tbaa !9
  %103 = trunc i32 %102 to i8
  %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
  store i8 %103, ptr %104, align 1, !tbaa !24
  %106 = load i32, ptr %12, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %12, align 4, !tbaa !9
  br label %110

108:                                              ; preds = %89
  %109 = call i32 @beep()
  br label %110

110:                                              ; preds = %108, %101
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %9, align 4, !tbaa !9
  br label %85, !llvm.loop !25

114:                                              ; preds = %85
  br label %260

115:                                              ; preds = %71
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  %118 = icmp ugt ptr %116, %117
  br i1 %118, label %119, label %141

119:                                              ; preds = %115
  %120 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %121 = trunc i8 %120 to i1
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  %124 = call i32 @waddstr(ptr noundef %123, ptr noundef @.str.4)
  br label %125

125:                                              ; preds = %122, %119
  %126 = load ptr, ptr %13, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i32 -1
  store ptr %127, ptr %13, align 8, !tbaa !5
  %128 = load i8, ptr %127, align 1, !tbaa !24
  %129 = zext i8 %128 to i32
  store i32 %129, ptr %8, align 4, !tbaa !9
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = icmp slt i32 %130, 32
  br i1 %131, label %132, label %138

132:                                              ; preds = %125
  %133 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %138

135:                                              ; preds = %132
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = call i32 @waddstr(ptr noundef %136, ptr noundef @.str.4)
  br label %138

138:                                              ; preds = %135, %132, %125
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %12, align 4, !tbaa !9
  br label %141

141:                                              ; preds = %138, %115
  br label %260

142:                                              ; preds = %71
  br label %143

143:                                              ; preds = %166, %142
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = icmp ugt ptr %144, %145
  br i1 %146, label %147, label %167

147:                                              ; preds = %143
  %148 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %149 = trunc i8 %148 to i1
  br i1 %149, label %150, label %153

150:                                              ; preds = %147
  %151 = load ptr, ptr %5, align 8, !tbaa !5
  %152 = call i32 @waddstr(ptr noundef %151, ptr noundef @.str.4)
  br label %153

153:                                              ; preds = %150, %147
  %154 = load ptr, ptr %13, align 8, !tbaa !5
  %155 = getelementptr inbounds i8, ptr %154, i32 -1
  store ptr %155, ptr %13, align 8, !tbaa !5
  %156 = load i8, ptr %155, align 1, !tbaa !24
  %157 = zext i8 %156 to i32
  store i32 %157, ptr %8, align 4, !tbaa !9
  %158 = load i32, ptr %8, align 4, !tbaa !9
  %159 = icmp slt i32 %158, 32
  br i1 %159, label %160, label %166

160:                                              ; preds = %153
  %161 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %162 = trunc i8 %161 to i1
  br i1 %162, label %163, label %166

163:                                              ; preds = %160
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = call i32 @waddstr(ptr noundef %164, ptr noundef @.str.4)
  br label %166

166:                                              ; preds = %163, %160, %153
  br label %143, !llvm.loop !27

167:                                              ; preds = %143
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %260

168:                                              ; preds = %71
  br label %169

169:                                              ; preds = %187, %168
  %170 = load ptr, ptr %13, align 8, !tbaa !5
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = icmp ugt ptr %170, %171
  br i1 %172, label %173, label %179

173:                                              ; preds = %169
  %174 = load ptr, ptr %13, align 8, !tbaa !5
  %175 = getelementptr inbounds i8, ptr %174, i64 -1
  %176 = load i8, ptr %175, align 1, !tbaa !24
  %177 = sext i8 %176 to i32
  %178 = icmp eq i32 %177, 32
  br label %179

179:                                              ; preds = %173, %169
  %180 = phi i1 [ false, %169 ], [ %178, %173 ]
  br i1 %180, label %181, label %192

181:                                              ; preds = %179
  %182 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %183 = trunc i8 %182 to i1
  br i1 %183, label %184, label %187

184:                                              ; preds = %181
  %185 = load ptr, ptr %5, align 8, !tbaa !5
  %186 = call i32 @waddstr(ptr noundef %185, ptr noundef @.str.4)
  br label %187

187:                                              ; preds = %184, %181
  %188 = load ptr, ptr %13, align 8, !tbaa !5
  %189 = getelementptr inbounds i8, ptr %188, i32 -1
  store ptr %189, ptr %13, align 8, !tbaa !5
  %190 = load i32, ptr %12, align 4, !tbaa !9
  %191 = add nsw i32 %190, -1
  store i32 %191, ptr %12, align 4, !tbaa !9
  br label %169, !llvm.loop !28

192:                                              ; preds = %179
  br label %193

193:                                              ; preds = %224, %192
  %194 = load ptr, ptr %13, align 8, !tbaa !5
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  %196 = icmp ugt ptr %194, %195
  br i1 %196, label %197, label %203

197:                                              ; preds = %193
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = getelementptr inbounds i8, ptr %198, i64 -1
  %200 = load i8, ptr %199, align 1, !tbaa !24
  %201 = sext i8 %200 to i32
  %202 = icmp ne i32 %201, 32
  br label %203

203:                                              ; preds = %197, %193
  %204 = phi i1 [ false, %193 ], [ %202, %197 ]
  br i1 %204, label %205, label %227

205:                                              ; preds = %203
  %206 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %207 = trunc i8 %206 to i1
  br i1 %207, label %208, label %211

208:                                              ; preds = %205
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = call i32 @waddstr(ptr noundef %209, ptr noundef @.str.4)
  br label %211

211:                                              ; preds = %208, %205
  %212 = load ptr, ptr %13, align 8, !tbaa !5
  %213 = getelementptr inbounds i8, ptr %212, i32 -1
  store ptr %213, ptr %13, align 8, !tbaa !5
  %214 = load i8, ptr %213, align 1, !tbaa !24
  %215 = zext i8 %214 to i32
  store i32 %215, ptr %8, align 4, !tbaa !9
  %216 = load i32, ptr %8, align 4, !tbaa !9
  %217 = icmp slt i32 %216, 32
  br i1 %217, label %218, label %224

218:                                              ; preds = %211
  %219 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %220 = trunc i8 %219 to i1
  br i1 %220, label %221, label %224

221:                                              ; preds = %218
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = call i32 @waddstr(ptr noundef %222, ptr noundef @.str.4)
  br label %224

224:                                              ; preds = %221, %218, %211
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = add nsw i32 %225, -1
  store i32 %226, ptr %12, align 4, !tbaa !9
  br label %193, !llvm.loop !29

227:                                              ; preds = %203
  br label %260

228:                                              ; preds = %71, %71
  store i8 1, ptr %14, align 1, !tbaa !11
  %229 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %230 = trunc i8 %229 to i1
  br i1 %230, label %231, label %234

231:                                              ; preds = %228
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = call i32 @waddch(ptr noundef %232, i64 noundef 10)
  br label %234

234:                                              ; preds = %231, %228
  br label %260

235:                                              ; preds = %71
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = load i32, ptr %7, align 4, !tbaa !9
  %238 = icmp slt i32 %236, %237
  br i1 %238, label %239, label %257

239:                                              ; preds = %235
  %240 = load i32, ptr %8, align 4, !tbaa !9
  %241 = icmp slt i32 %240, 256
  br i1 %241, label %242, label %257

242:                                              ; preds = %239
  %243 = load i32, ptr %8, align 4, !tbaa !9
  %244 = trunc i32 %243 to i8
  %245 = load ptr, ptr %13, align 8, !tbaa !5
  %246 = getelementptr inbounds i8, ptr %245, i32 1
  store ptr %246, ptr %13, align 8, !tbaa !5
  store i8 %244, ptr %245, align 1, !tbaa !24
  %247 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %248 = trunc i8 %247 to i1
  br i1 %248, label %249, label %254

249:                                              ; preds = %242
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = load i32, ptr %8, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = call i32 @waddch(ptr noundef %250, i64 noundef %252)
  br label %254

254:                                              ; preds = %249, %242
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %12, align 4, !tbaa !9
  br label %259

257:                                              ; preds = %239, %235
  %258 = call i32 @beep()
  br label %259

259:                                              ; preds = %257, %254
  br label %260

260:                                              ; preds = %259, %234, %227, %167, %141, %114
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = call i32 @wrefresh(ptr noundef %261)
  br label %67, !llvm.loop !30

263:                                              ; preds = %67
  %264 = load ptr, ptr %13, align 8, !tbaa !5
  store i8 0, ptr %264, align 1, !tbaa !24
  %265 = load i8, ptr %15, align 1, !tbaa !11, !range !20, !noundef !21
  %266 = trunc i8 %265 to i1
  %267 = load ptr, ptr @SP, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.SCREEN, ptr %267, i32 0, i32 3
  %269 = zext i1 %266 to i8
  store i8 %269, ptr %268, align 1, !tbaa !22
  %270 = load i8, ptr %16, align 1, !tbaa !11, !range !20, !noundef !21
  %271 = trunc i8 %270 to i1
  %272 = load ptr, ptr @SP, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.SCREEN, ptr %272, i32 0, i32 2
  %274 = zext i1 %271 to i8
  store i8 %274, ptr %273, align 2, !tbaa !16
  %275 = load i8, ptr %17, align 1, !tbaa !11, !range !20, !noundef !21
  %276 = trunc i8 %275 to i1
  %277 = load ptr, ptr %5, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct._win, ptr %277, i32 0, i32 12
  %279 = zext i1 %276 to i8
  store i8 %279, ptr %278, align 1, !tbaa !23
  store i32 0, ptr %4, align 4
  store i32 1, ptr %18, align 4
  br label %280

280:                                              ; preds = %263, %39
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %281 = load i32, ptr %4, align 4
  ret i32 %281
}

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

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

declare i32 @cbreak() #3

declare i32 @wrefresh(ptr noundef) #3

declare i32 @wgetch(ptr noundef) #3

declare i32 @waddch(ptr noundef, i64 noundef) #3

declare i32 @beep() #3

declare i32 @waddstr(ptr noundef, ptr noundef) #3

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "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, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"_win", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !15, i64 32, !15, i64 40, !12, i64 48, !12, i64 49, !12, i64 50, !12, i64 51, !12, i64 52, !12, i64 53, !12, i64 54, !6, i64 56, !6, i64 64, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !6, i64 104, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132}
!15 = !{!"long", !7, i64 0}
!16 = !{!17, !12, i64 2}
!17 = !{!"", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !12, i64 5, !12, i64 6, !12, i64 7, !12, i64 8, !12, i64 9, !18, i64 10, !18, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !15, i64 40, !10, i64 48, !10, i64 52, !6, i64 56, !10, i64 64, !10, i64 68, !10, i64 72, !12, i64 76, !10, i64 80, !15, i64 88, !12, i64 96, !12, i64 97, !19, i64 100, !18, i64 132, !15, i64 136, !6, i64 144, !6, i64 152, !12, i64 160, !12, i64 161, !10, i64 164, !10, i64 168, !6, i64 176, !10, i64 184, !10, i64 188, !6, i64 192, !10, i64 200, !10, i64 204, !6, i64 208}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !10, i64 0, !10, i64 4, !7, i64 8, !10, i64 28}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!17, !12, i64 3}
!23 = !{!14, !12, i64 51}
!24 = !{!7, !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = distinct !{!30, !26}


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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [92 x i8], align 1
@__PRETTY_FUNCTION__.wgetnstr = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@SP = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@TABSIZE = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @wgetnstr(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = ptrtoint ptr %1 to i64
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 97, ptr noundef nonnull @__PRETTY_FUNCTION__.wgetnstr) #3
  unreachable

6:                                                ; preds = %3
  %.not95 = icmp eq ptr %1, null
  br i1 %.not95, label %7, label %8

7:                                                ; preds = %6
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 98, ptr noundef nonnull @__PRETTY_FUNCTION__.wgetnstr) #3
  unreachable

8:                                                ; preds = %6
  %9 = load ptr, ptr @SP, align 8, !tbaa !5
  %.not96 = icmp eq ptr %9, null
  br i1 %.not96, label %10, label %11

10:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 99, ptr noundef nonnull @__PRETTY_FUNCTION__.wgetnstr) #3
  unreachable

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %9, i64 2
  %15 = load i8, ptr %14, align 2, !tbaa !14, !range !18, !noundef !19
  %16 = getelementptr inbounds i8, ptr %9, i64 3
  %17 = load i8, ptr %16, align 1, !tbaa !20, !range !18, !noundef !19
  %18 = trunc nuw i8 %17 to i1
  %19 = getelementptr inbounds i8, ptr %0, i64 51
  %20 = load i8, ptr %19, align 1, !tbaa !21, !range !18, !noundef !19
  store i8 0, ptr %16, align 1, !tbaa !20
  %21 = tail call i32 @cbreak() #4
  store i8 0, ptr %19, align 1, !tbaa !21
  %22 = tail call i32 @wrefresh(ptr noundef nonnull %0) #4
  %23 = trunc i64 %4 to i32
  br label %24

24:                                               ; preds = %.critedge3, %11
  %.083156 = phi ptr [ %1, %11 ], [ %.6, %.critedge3 ]
  %.085155 = phi i32 [ 0, %11 ], [ %.590, %.critedge3 ]
  %.083156168 = ptrtoint ptr %.083156 to i64
  %25 = tail call i32 @wgetch(ptr noundef nonnull %0) #4
  switch i32 %25, label %108 [
    i32 9, label %48
    i32 8, label %66
    i32 21, label %.preheader
    i32 23, label %.preheader122
    i32 10, label %105
    i32 13, label %105
  ]

.preheader122:                                    ; preds = %24
  %26 = icmp ugt ptr %.083156, %1
  br i1 %26, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.preheader122
  %27 = add i32 %.085155, %23
  %28 = trunc i64 %.083156168 to i32
  %29 = sub i32 %27, %28
  %scevgep170 = getelementptr i8, ptr %.083156, i64 %4
  %30 = sub i64 0, %.083156168
  %scevgep171 = getelementptr i8, ptr %scevgep170, i64 %30
  br i1 %18, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %34
  %.4124.us = phi ptr [ %31, %34 ], [ %.083156, %.lr.ph ]
  %.388123.us = phi i32 [ %36, %34 ], [ %.085155, %.lr.ph ]
  %31 = getelementptr inbounds i8, ptr %.4124.us, i64 -1
  %32 = load i8, ptr %31, align 1, !tbaa !22
  %33 = icmp eq i8 %32, 32
  br i1 %33, label %34, label %.critedge

34:                                               ; preds = %.lr.ph.split.us
  %35 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  %36 = add nsw i32 %.388123.us, -1
  %37 = icmp ugt ptr %31, %1
  br i1 %37, label %.lr.ph.split.us, label %.critedge, !llvm.loop !23

.preheader:                                       ; preds = %24
  %38 = icmp ugt ptr %.083156, %1
  br i1 %38, label %.lr.ph146, label %.critedge3

.lr.ph146:                                        ; preds = %.preheader
  %39 = sub i64 0, %.083156168
  br i1 %18, label %.lr.ph146.split.us, label %.thread109.preheader

.thread109.preheader:                             ; preds = %.lr.ph146
  %scevgep177 = getelementptr i8, ptr %.083156, i64 %4
  %scevgep178 = getelementptr i8, ptr %scevgep177, i64 %39
  br label %.critedge3

.lr.ph146.split.us:                               ; preds = %.lr.ph146, %46
  %.3145.us = phi ptr [ %41, %46 ], [ %.083156, %.lr.ph146 ]
  %40 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  %41 = getelementptr inbounds i8, ptr %.3145.us, i64 -1
  %42 = load i8, ptr %41, align 1, !tbaa !22
  %43 = icmp ult i8 %42, 32
  br i1 %43, label %44, label %46

44:                                               ; preds = %.lr.ph146.split.us
  %45 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  br label %46

46:                                               ; preds = %44, %.lr.ph146.split.us
  %47 = icmp ugt ptr %41, %1
  br i1 %47, label %.lr.ph146.split.us, label %.critedge3.loopexit158, !llvm.loop !25

48:                                               ; preds = %24
  %49 = load i32, ptr @TABSIZE, align 4, !tbaa !26
  %50 = load i32, ptr %12, align 4, !tbaa !9
  %51 = sub nsw i32 %50, %13
  %52 = srem i32 %51, %49
  %53 = sub nsw i32 %49, %52
  %54 = icmp sgt i32 %53, 0
  br i1 %54, label %.lr.ph152, label %.critedge3

.lr.ph152:                                        ; preds = %48, %64
  %.081151 = phi i32 [ %65, %64 ], [ 0, %48 ]
  %.184150 = phi ptr [ %.2, %64 ], [ %.083156, %48 ]
  %.186149 = phi i32 [ %.287, %64 ], [ %.085155, %48 ]
  %55 = icmp slt i32 %.186149, %2
  br i1 %55, label %56, label %62

56:                                               ; preds = %.lr.ph152
  br i1 %18, label %57, label %59

57:                                               ; preds = %56
  %58 = tail call i32 @waddch(ptr noundef nonnull %0, i64 noundef 32) #4
  br label %59

59:                                               ; preds = %57, %56
  %60 = getelementptr inbounds i8, ptr %.184150, i64 1
  store i8 32, ptr %.184150, align 1, !tbaa !22
  %61 = add nsw i32 %.186149, 1
  br label %64

62:                                               ; preds = %.lr.ph152
  %63 = tail call i32 @beep() #4
  br label %64

64:                                               ; preds = %59, %62
  %.287 = phi i32 [ %61, %59 ], [ %.186149, %62 ]
  %.2 = phi ptr [ %60, %59 ], [ %.184150, %62 ]
  %65 = add nuw nsw i32 %.081151, 1
  %exitcond.not = icmp eq i32 %65, %53
  br i1 %exitcond.not, label %.critedge3, label %.lr.ph152, !llvm.loop !27

66:                                               ; preds = %24
  %67 = icmp ugt ptr %.083156, %1
  br i1 %67, label %68, label %.critedge3

68:                                               ; preds = %66
  br i1 %18, label %70, label %.thread

.thread:                                          ; preds = %68
  %69 = getelementptr inbounds i8, ptr %.083156, i64 -1
  br label %77

70:                                               ; preds = %68
  %71 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  %72 = getelementptr inbounds i8, ptr %.083156, i64 -1
  %73 = load i8, ptr %72, align 1, !tbaa !22
  %74 = icmp ult i8 %73, 32
  br i1 %74, label %75, label %77

75:                                               ; preds = %70
  %76 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  br label %77

77:                                               ; preds = %.thread, %70, %75
  %78 = phi ptr [ %69, %.thread ], [ %72, %70 ], [ %72, %75 ]
  %79 = add nsw i32 %.085155, -1
  br label %.critedge3

.lr.ph.split:                                     ; preds = %.lr.ph, %83
  %.4124 = phi ptr [ %80, %83 ], [ %.083156, %.lr.ph ]
  %.388123 = phi i32 [ %84, %83 ], [ %.085155, %.lr.ph ]
  %80 = getelementptr inbounds i8, ptr %.4124, i64 -1
  %81 = load i8, ptr %80, align 1, !tbaa !22
  %82 = icmp eq i8 %81, 32
  br i1 %82, label %83, label %.critedge

83:                                               ; preds = %.lr.ph.split
  %84 = add nsw i32 %.388123, -1
  %85 = icmp ugt ptr %80, %1
  br i1 %85, label %.lr.ph.split, label %.critedge, !llvm.loop !23

.critedge:                                        ; preds = %.lr.ph.split, %83, %.lr.ph.split.us, %34, %.preheader122
  %.388.lcssa = phi i32 [ %.085155, %.preheader122 ], [ %29, %34 ], [ %.388123.us, %.lr.ph.split.us ], [ %29, %83 ], [ %.388123, %.lr.ph.split ]
  %.4.lcssa = phi ptr [ %.083156, %.preheader122 ], [ %scevgep171, %34 ], [ %.4124.us, %.lr.ph.split.us ], [ %scevgep171, %83 ], [ %.4124, %.lr.ph.split ]
  %86 = icmp ugt ptr %.4.lcssa, %1
  br i1 %86, label %.lr.ph134, label %.critedge3

.lr.ph134:                                        ; preds = %.critedge
  %.4.lcssa172 = ptrtoint ptr %.4.lcssa to i64
  %87 = add i32 %.388.lcssa, %23
  %88 = trunc i64 %.4.lcssa172 to i32
  %89 = sub i32 %87, %88
  %scevgep175 = getelementptr i8, ptr %.4.lcssa, i64 %4
  %90 = sub i64 0, %.4.lcssa172
  %scevgep176 = getelementptr i8, ptr %scevgep175, i64 %90
  br i1 %18, label %.lr.ph134.split.us, label %.lr.ph134.split

.lr.ph134.split.us:                               ; preds = %.lr.ph134, %.thread113.us
  %.5133.us = phi ptr [ %91, %.thread113.us ], [ %.4.lcssa, %.lr.ph134 ]
  %.489132.us = phi i32 [ %99, %.thread113.us ], [ %.388.lcssa, %.lr.ph134 ]
  %91 = getelementptr inbounds i8, ptr %.5133.us, i64 -1
  %92 = load i8, ptr %91, align 1, !tbaa !22
  %.not97.us = icmp eq i8 %92, 32
  br i1 %.not97.us, label %.critedge3, label %93

93:                                               ; preds = %.lr.ph134.split.us
  %94 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  %95 = load i8, ptr %91, align 1, !tbaa !22
  %96 = icmp ult i8 %95, 32
  br i1 %96, label %97, label %.thread113.us

97:                                               ; preds = %93
  %98 = tail call i32 @waddstr(ptr noundef nonnull %0, ptr noundef nonnull @.str.4) #4
  br label %.thread113.us

.thread113.us:                                    ; preds = %97, %93
  %99 = add nsw i32 %.489132.us, -1
  %100 = icmp ugt ptr %91, %1
  br i1 %100, label %.lr.ph134.split.us, label %.critedge3, !llvm.loop !28

.lr.ph134.split:                                  ; preds = %.lr.ph134, %.thread113
  %.5133 = phi ptr [ %101, %.thread113 ], [ %.4.lcssa, %.lr.ph134 ]
  %.489132 = phi i32 [ %103, %.thread113 ], [ %.388.lcssa, %.lr.ph134 ]
  %101 = getelementptr inbounds i8, ptr %.5133, i64 -1
  %102 = load i8, ptr %101, align 1, !tbaa !22
  %.not97 = icmp eq i8 %102, 32
  br i1 %.not97, label %.critedge3, label %.thread113

.thread113:                                       ; preds = %.lr.ph134.split
  %103 = add nsw i32 %.489132, -1
  %104 = icmp ugt ptr %101, %1
  br i1 %104, label %.lr.ph134.split, label %.critedge3, !llvm.loop !28

105:                                              ; preds = %24, %24
  br i1 %18, label %106, label %122

106:                                              ; preds = %105
  %107 = tail call i32 @waddch(ptr noundef nonnull %0, i64 noundef 10) #4
  br label %122

108:                                              ; preds = %24
  %109 = icmp slt i32 %.085155, %2
  %110 = icmp slt i32 %25, 256
  %or.cond5 = and i1 %109, %110
  br i1 %or.cond5, label %111, label %119

111:                                              ; preds = %108
  %112 = trunc i32 %25 to i8
  %113 = getelementptr inbounds i8, ptr %.083156, i64 1
  store i8 %112, ptr %.083156, align 1, !tbaa !22
  br i1 %18, label %114, label %117

114:                                              ; preds = %111
  %115 = sext i32 %25 to i64
  %116 = tail call i32 @waddch(ptr noundef nonnull %0, i64 noundef %115) #4
  br label %117

117:                                              ; preds = %114, %111
  %118 = add nsw i32 %.085155, 1
  br label %.critedge3

119:                                              ; preds = %108
  %120 = tail call i32 @beep() #4
  br label %.critedge3

.critedge3.loopexit158:                           ; preds = %46
  %scevgep179 = getelementptr i8, ptr %.083156, i64 %4
  %scevgep180 = getelementptr i8, ptr %scevgep179, i64 %39
  br label %.critedge3

.critedge3:                                       ; preds = %.thread113, %.lr.ph134.split, %.thread113.us, %.lr.ph134.split.us, %64, %.thread109.preheader, %.critedge3.loopexit158, %.critedge, %.preheader, %48, %117, %119, %66, %77
  %.590 = phi i32 [ %118, %117 ], [ %.085155, %119 ], [ %79, %77 ], [ %.085155, %66 ], [ %.085155, %48 ], [ 0, %.preheader ], [ %.388.lcssa, %.critedge ], [ 0, %.critedge3.loopexit158 ], [ 0, %.thread109.preheader ], [ %.287, %64 ], [ %89, %.thread113.us ], [ %.489132.us, %.lr.ph134.split.us ], [ %89, %.thread113 ], [ %.489132, %.lr.ph134.split ]
  %.6 = phi ptr [ %113, %117 ], [ %.083156, %119 ], [ %78, %77 ], [ %.083156, %66 ], [ %.083156, %48 ], [ %.083156, %.preheader ], [ %.4.lcssa, %.critedge ], [ %scevgep180, %.critedge3.loopexit158 ], [ %scevgep178, %.thread109.preheader ], [ %.2, %64 ], [ %scevgep176, %.thread113.us ], [ %.5133.us, %.lr.ph134.split.us ], [ %scevgep176, %.thread113 ], [ %.5133, %.lr.ph134.split ]
  %121 = tail call i32 @wrefresh(ptr noundef nonnull %0) #4
  br label %24, !llvm.loop !29

122:                                              ; preds = %106, %105
  %123 = tail call i32 @wrefresh(ptr noundef nonnull %0) #4
  store i8 0, ptr %.083156, align 1, !tbaa !22
  %124 = load ptr, ptr @SP, align 8, !tbaa !5
  %125 = getelementptr inbounds i8, ptr %124, i64 3
  store i8 %17, ptr %125, align 1, !tbaa !20
  %126 = getelementptr inbounds i8, ptr %124, i64 2
  store i8 %15, ptr %126, align 2, !tbaa !14
  store i8 %20, ptr %19, align 1, !tbaa !21
  ret i32 0
}

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

declare i32 @cbreak() local_unnamed_addr #2

declare i32 @wrefresh(ptr noundef) local_unnamed_addr #2

declare i32 @wgetch(ptr noundef) local_unnamed_addr #2

declare i32 @waddch(ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @beep() local_unnamed_addr #2

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { noreturn nounwind }
attributes #4 = { 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, !11, i64 4}
!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 = !{!15, !13, i64 2}
!15 = !{!"", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !16, i64 10, !16, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !12, i64 40, !11, i64 48, !11, i64 52, !6, i64 56, !11, i64 64, !11, i64 68, !11, i64 72, !13, i64 76, !11, i64 80, !12, i64 88, !13, i64 96, !13, i64 97, !17, i64 100, !16, i64 132, !12, i64 136, !6, i64 144, !6, i64 152, !13, i64 160, !13, i64 161, !11, i64 164, !11, i64 168, !6, i64 176, !11, i64 184, !11, i64 188, !6, i64 192, !11, i64 200, !11, i64 204, !6, i64 208}
!16 = !{!"short", !7, i64 0}
!17 = !{!"", !11, i64 0, !11, i64 4, !7, i64 8, !11, i64 28}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!15, !13, i64 3}
!21 = !{!10, !13, i64 51}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}


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