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

; 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.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 }
%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.1 = external hidden unnamed_addr constant [93 x i8], align 1
@curscr = external global ptr, align 8
@SP = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__.doupdate = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@COLS = external global i32, align 4

; 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 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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare void @PDC_set_changed_cells_range(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @doupdate() #4 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #5
  %10 = load ptr, ptr @SP, align 8, !tbaa !5
  %11 = icmp ne ptr %10, null
  br i1 %11, label %12, label %13

12:                                               ; preds = %0
  br label %14

13:                                               ; preds = %0
  call void @__assert_fail(ptr noundef @.str.2, ptr noundef @.str.1, i32 noundef 156, ptr noundef @__PRETTY_FUNCTION__.doupdate) #6
  unreachable

14:                                               ; preds = %12
  %15 = load ptr, ptr @curscr, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %17, label %18

17:                                               ; preds = %14
  br label %19

18:                                               ; preds = %14
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 157, ptr noundef @__PRETTY_FUNCTION__.doupdate) #6
  unreachable

19:                                               ; preds = %17
  %20 = load ptr, ptr @SP, align 8, !tbaa !5
  %21 = icmp ne ptr %20, null
  br i1 %21, label %22, label %25

22:                                               ; preds = %19
  %23 = load ptr, ptr @curscr, align 8, !tbaa !5
  %24 = icmp ne ptr %23, null
  br i1 %24, label %26, label %25

25:                                               ; preds = %22, %19
  store i32 -1, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %247

26:                                               ; preds = %22
  %27 = call zeroext i1 @isendwin()
  br i1 %27, label %28, label %32

28:                                               ; preds = %26
  %29 = call i32 @reset_prog_mode()
  store i8 1, ptr %3, align 1, !tbaa !9
  %30 = load ptr, ptr @SP, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.SCREEN, ptr %30, i32 0, i32 0
  store i8 1, ptr %31, align 8, !tbaa !11
  br label %38

32:                                               ; preds = %26
  %33 = load ptr, ptr @curscr, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._win, ptr %33, i32 0, i32 9
  %35 = load i8, ptr %34, align 8, !tbaa !17, !range !19, !noundef !20
  %36 = trunc i8 %35 to i1
  %37 = zext i1 %36 to i8
  store i8 %37, ptr %3, align 1, !tbaa !9
  br label %38

38:                                               ; preds = %32, %28
  store i32 0, ptr %2, align 4, !tbaa !21
  br label %39

39:                                               ; preds = %219, %38
  %40 = load i32, ptr %2, align 4, !tbaa !21
  %41 = load ptr, ptr @SP, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.SCREEN, ptr %41, i32 0, i32 16
  %43 = load i32, ptr %42, align 8, !tbaa !22
  %44 = icmp slt i32 %40, %43
  br i1 %44, label %45, label %222

45:                                               ; preds = %39
  %46 = load i8, ptr %3, align 1, !tbaa !9, !range !19, !noundef !20
  %47 = trunc i8 %46 to i1
  br i1 %47, label %57, label %48

48:                                               ; preds = %45
  %49 = load ptr, ptr @curscr, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct._win, ptr %49, i32 0, i32 17
  %51 = load ptr, ptr %50, align 8, !tbaa !23
  %52 = load i32, ptr %2, align 4, !tbaa !21
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !21
  %56 = icmp ne i32 %55, -1
  br i1 %56, label %57, label %218

57:                                               ; preds = %48, %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %58 = load ptr, ptr @curscr, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._win, ptr %58, i32 0, i32 16
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  %61 = load i32, ptr %2, align 4, !tbaa !21
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds ptr, ptr %60, i64 %62
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  store ptr %64, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %65 = load ptr, ptr @SP, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.SCREEN, ptr %65, i32 0, i32 33
  %67 = load ptr, ptr %66, align 8, !tbaa !25
  %68 = getelementptr inbounds %struct._win, ptr %67, i32 0, i32 16
  %69 = load ptr, ptr %68, align 8, !tbaa !24
  %70 = load i32, ptr %2, align 4, !tbaa !21
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds ptr, ptr %69, i64 %71
  %73 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %73, ptr %8, align 8, !tbaa !5
  %74 = load i8, ptr %3, align 1, !tbaa !9, !range !19, !noundef !20
  %75 = trunc i8 %74 to i1
  br i1 %75, label %76, label %79

76:                                               ; preds = %57
  store i32 0, ptr %5, align 4, !tbaa !21
  %77 = load i32, ptr @COLS, align 4, !tbaa !21
  %78 = sub nsw i32 %77, 1
  store i32 %78, ptr %6, align 4, !tbaa !21
  br label %94

79:                                               ; preds = %57
  %80 = load ptr, ptr @curscr, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct._win, ptr %80, i32 0, i32 17
  %82 = load ptr, ptr %81, align 8, !tbaa !23
  %83 = load i32, ptr %2, align 4, !tbaa !21
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %82, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !21
  store i32 %86, ptr %5, align 4, !tbaa !21
  %87 = load ptr, ptr @curscr, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct._win, ptr %87, i32 0, i32 18
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = load i32, ptr %2, align 4, !tbaa !21
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i32, ptr %89, i64 %91
  %93 = load i32, ptr %92, align 4, !tbaa !21
  store i32 %93, ptr %6, align 4, !tbaa !21
  br label %94

94:                                               ; preds = %79, %76
  br label %95

95:                                               ; preds = %214, %94
  %96 = load i32, ptr %5, align 4, !tbaa !21
  %97 = load i32, ptr %6, align 4, !tbaa !21
  %98 = icmp sle i32 %96, %97
  br i1 %98, label %99, label %215

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !21
  %100 = load i8, ptr %3, align 1, !tbaa !9, !range !19, !noundef !20
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %107

102:                                              ; preds = %99
  %103 = load i32, ptr %6, align 4, !tbaa !21
  %104 = load i32, ptr %5, align 4, !tbaa !21
  %105 = sub nsw i32 %103, %104
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %9, align 4, !tbaa !21
  br label %167

107:                                              ; preds = %99
  br label %108

108:                                              ; preds = %163, %107
  %109 = load i32, ptr %5, align 4, !tbaa !21
  %110 = load i32, ptr %9, align 4, !tbaa !21
  %111 = add nsw i32 %109, %110
  %112 = load i32, ptr %6, align 4, !tbaa !21
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %114, label %161

114:                                              ; preds = %108
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = load i32, ptr %5, align 4, !tbaa !21
  %117 = load i32, ptr %9, align 4, !tbaa !21
  %118 = add nsw i32 %116, %117
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds i64, ptr %115, i64 %119
  %121 = load i64, ptr %120, align 8, !tbaa !27
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load i32, ptr %5, align 4, !tbaa !21
  %124 = load i32, ptr %9, align 4, !tbaa !21
  %125 = add nsw i32 %123, %124
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds i64, ptr %122, i64 %126
  %128 = load i64, ptr %127, align 8, !tbaa !27
  %129 = icmp ne i64 %121, %128
  br i1 %129, label %159, label %130

130:                                              ; preds = %114
  %131 = load i32, ptr %9, align 4, !tbaa !21
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %157

133:                                              ; preds = %130
  %134 = load i32, ptr %5, align 4, !tbaa !21
  %135 = load i32, ptr %9, align 4, !tbaa !21
  %136 = add nsw i32 %134, %135
  %137 = load i32, ptr %6, align 4, !tbaa !21
  %138 = icmp slt i32 %136, %137
  br i1 %138, label %139, label %157

139:                                              ; preds = %133
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load i32, ptr %5, align 4, !tbaa !21
  %142 = load i32, ptr %9, align 4, !tbaa !21
  %143 = add nsw i32 %141, %142
  %144 = add nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds i64, ptr %140, i64 %145
  %147 = load i64, ptr %146, align 8, !tbaa !27
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %5, align 4, !tbaa !21
  %150 = load i32, ptr %9, align 4, !tbaa !21
  %151 = add nsw i32 %149, %150
  %152 = add nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i64, ptr %148, i64 %153
  %155 = load i64, ptr %154, align 8, !tbaa !27
  %156 = icmp ne i64 %147, %155
  br label %157

157:                                              ; preds = %139, %133, %130
  %158 = phi i1 [ false, %133 ], [ false, %130 ], [ %156, %139 ]
  br label %159

159:                                              ; preds = %157, %114
  %160 = phi i1 [ true, %114 ], [ %158, %157 ]
  br label %161

161:                                              ; preds = %159, %108
  %162 = phi i1 [ false, %108 ], [ %160, %159 ]
  br i1 %162, label %163, label %166

163:                                              ; preds = %161
  %164 = load i32, ptr %9, align 4, !tbaa !21
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %9, align 4, !tbaa !21
  br label %108, !llvm.loop !28

166:                                              ; preds = %161
  br label %167

167:                                              ; preds = %166, %102
  %168 = load i32, ptr %9, align 4, !tbaa !21
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %192

170:                                              ; preds = %167
  %171 = load i32, ptr %2, align 4, !tbaa !21
  %172 = load i32, ptr %5, align 4, !tbaa !21
  %173 = load i32, ptr %9, align 4, !tbaa !21
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = load i32, ptr %5, align 4, !tbaa !21
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds i64, ptr %174, i64 %176
  call void @PDC_transform_line(i32 noundef %171, i32 noundef %172, i32 noundef %173, ptr noundef %177)
  %178 = load ptr, ptr %8, align 8, !tbaa !5
  %179 = load i32, ptr %5, align 4, !tbaa !21
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i64, ptr %178, i64 %180
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = load i32, ptr %5, align 4, !tbaa !21
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds i64, ptr %182, i64 %184
  %186 = load i32, ptr %9, align 4, !tbaa !21
  %187 = sext i32 %186 to i64
  %188 = mul i64 %187, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %181, ptr align 8 %185, i64 %188, i1 false)
  %189 = load i32, ptr %9, align 4, !tbaa !21
  %190 = load i32, ptr %5, align 4, !tbaa !21
  %191 = add nsw i32 %190, %189
  store i32 %191, ptr %5, align 4, !tbaa !21
  br label %192

192:                                              ; preds = %170, %167
  br label %193

193:                                              ; preds = %211, %192
  %194 = load i32, ptr %5, align 4, !tbaa !21
  %195 = load i32, ptr %6, align 4, !tbaa !21
  %196 = icmp sle i32 %194, %195
  br i1 %196, label %197, label %209

197:                                              ; preds = %193
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = load i32, ptr %5, align 4, !tbaa !21
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i64, ptr %198, i64 %200
  %202 = load i64, ptr %201, align 8, !tbaa !27
  %203 = load ptr, ptr %8, align 8, !tbaa !5
  %204 = load i32, ptr %5, align 4, !tbaa !21
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds i64, ptr %203, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !27
  %208 = icmp eq i64 %202, %207
  br label %209

209:                                              ; preds = %197, %193
  %210 = phi i1 [ false, %193 ], [ %208, %197 ]
  br i1 %210, label %211, label %214

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

214:                                              ; preds = %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %95, !llvm.loop !31

215:                                              ; preds = %95
  %216 = load ptr, ptr @curscr, align 8, !tbaa !5
  %217 = load i32, ptr %2, align 4, !tbaa !21
  call void @PDC_set_changed_cells_range(ptr noundef %216, i32 noundef %217, i32 noundef -1, i32 noundef -1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %218

218:                                              ; preds = %215, %48
  br label %219

219:                                              ; preds = %218
  %220 = load i32, ptr %2, align 4, !tbaa !21
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %2, align 4, !tbaa !21
  br label %39, !llvm.loop !32

222:                                              ; preds = %39
  %223 = load ptr, ptr @curscr, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct._win, ptr %223, i32 0, i32 9
  store i8 0, ptr %224, align 8, !tbaa !17
  %225 = load ptr, ptr @SP, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.SCREEN, ptr %225, i32 0, i32 14
  %227 = load i32, ptr %226, align 8, !tbaa !33
  %228 = icmp ne i32 %227, 0
  br i1 %228, label %229, label %236

229:                                              ; preds = %222
  %230 = load ptr, ptr @curscr, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct._win, ptr %230, i32 0, i32 0
  %232 = load i32, ptr %231, align 8, !tbaa !34
  %233 = load ptr, ptr @curscr, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct._win, ptr %233, i32 0, i32 1
  %235 = load i32, ptr %234, align 4, !tbaa !35
  call void @PDC_gotoyx(i32 noundef %232, i32 noundef %235)
  br label %236

236:                                              ; preds = %229, %222
  %237 = load ptr, ptr @curscr, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct._win, ptr %237, i32 0, i32 0
  %239 = load i32, ptr %238, align 8, !tbaa !34
  %240 = load ptr, ptr @SP, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.SCREEN, ptr %240, i32 0, i32 12
  store i32 %239, ptr %241, align 8, !tbaa !36
  %242 = load ptr, ptr @curscr, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct._win, ptr %242, i32 0, i32 1
  %244 = load i32, ptr %243, align 4, !tbaa !35
  %245 = load ptr, ptr @SP, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.SCREEN, ptr %245, i32 0, i32 13
  store i32 %244, ptr %246, align 4, !tbaa !37
  call void @PDC_doupdate()
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %247

247:                                              ; preds = %236, %25
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  %248 = load i32, ptr %1, align 4
  ret i32 %248
}

declare zeroext i1 @isendwin() #3

declare i32 @reset_prog_mode() #3

declare void @PDC_transform_line(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #3

declare void @PDC_gotoyx(i32 noundef, i32 noundef) #3

declare void @PDC_doupdate() #3

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 = { "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 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 #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 = !{!10, !10, i64 0}
!10 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"", !10, i64 0, !10, i64 1, !10, i64 2, !10, i64 3, !10, i64 4, !10, i64 5, !10, i64 6, !10, i64 7, !10, i64 8, !10, i64 9, !13, i64 10, !13, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !15, i64 40, !14, i64 48, !14, i64 52, !6, i64 56, !14, i64 64, !14, i64 68, !14, i64 72, !10, i64 76, !14, i64 80, !15, i64 88, !10, i64 96, !10, i64 97, !16, i64 100, !13, i64 132, !15, i64 136, !6, i64 144, !6, i64 152, !10, i64 160, !10, i64 161, !14, i64 164, !14, i64 168, !6, i64 176, !14, i64 184, !14, i64 188, !6, i64 192, !14, i64 200, !14, i64 204, !6, i64 208}
!13 = !{!"short", !7, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"", !14, i64 0, !14, i64 4, !7, i64 8, !14, i64 28}
!17 = !{!18, !10, i64 48}
!18 = !{!"_win", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !15, i64 32, !15, 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, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !6, i64 104, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!14, !14, i64 0}
!22 = !{!12, !14, i64 32}
!23 = !{!18, !6, i64 64}
!24 = !{!18, !6, i64 56}
!25 = !{!12, !6, i64 144}
!26 = !{!18, !6, i64 72}
!27 = !{!15, !15, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}
!33 = !{!12, !14, i64 24}
!34 = !{!18, !14, i64 0}
!35 = !{!18, !14, i64 4}
!36 = !{!12, !14, i64 16}
!37 = !{!12, !14, i64 20}


; 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 [93 x i8], align 1
@curscr = external local_unnamed_addr global ptr, align 8
@SP = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@__PRETTY_FUNCTION__.doupdate = external hidden unnamed_addr constant [19 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@COLS = external local_unnamed_addr global i32, align 4

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

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

declare void @PDC_set_changed_cells_range(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @doupdate() local_unnamed_addr #3 {
  %1 = load ptr, ptr @SP, align 8, !tbaa !5
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %2, label %3

2:                                                ; preds = %0
  tail call void @__assert_fail(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.1, i32 noundef 156, ptr noundef nonnull @__PRETTY_FUNCTION__.doupdate) #4
  unreachable

3:                                                ; preds = %0
  %4 = load ptr, ptr @curscr, align 8
  %.not67 = icmp eq ptr %4, null
  br i1 %.not67, label %5, label %6

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

6:                                                ; preds = %3
  %7 = tail call zeroext i1 @isendwin() #5
  br i1 %7, label %.thread, label %8

8:                                                ; preds = %6
  %.pre = load ptr, ptr @SP, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %.pre, i64 32
  %10 = load i32, ptr %9, align 8, !tbaa !9
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %.lr.ph103, label %._crit_edge104

.thread:                                          ; preds = %6
  %12 = tail call i32 @reset_prog_mode() #5
  %13 = load ptr, ptr @SP, align 8, !tbaa !5
  store i8 1, ptr %13, align 8, !tbaa !16
  %14 = getelementptr inbounds i8, ptr %13, i64 32
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %.lr.ph103.split.us.preheader, label %._crit_edge104

.lr.ph103:                                        ; preds = %8
  %17 = load ptr, ptr @curscr, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 48
  %19 = load i8, ptr %18, align 8, !tbaa !17, !range !19, !noundef !20
  %20 = trunc nuw i8 %19 to i1
  br i1 %20, label %.lr.ph103.split.us.preheader, label %.lr.ph103.split.preheader

.lr.ph103.split.us.preheader:                     ; preds = %.thread, %.lr.ph103
  %.ph = phi ptr [ %.pre, %.lr.ph103 ], [ %13, %.thread ]
  br label %.lr.ph103.split.us

.lr.ph103.split.preheader:                        ; preds = %.lr.ph103
  %.pre127 = load ptr, ptr @curscr, align 8, !tbaa !5
  br label %.lr.ph103.split

.lr.ph103.split.us:                               ; preds = %.lr.ph103.split.us.preheader, %._crit_edge.split.us.us
  %indvars.iv123 = phi i64 [ %indvars.iv.next124, %._crit_edge.split.us.us ], [ 0, %.lr.ph103.split.us.preheader ]
  %21 = phi ptr [ %39, %._crit_edge.split.us.us ], [ %.ph, %.lr.ph103.split.us.preheader ]
  %22 = load ptr, ptr @curscr, align 8, !tbaa !5
  %23 = load i32, ptr @COLS, align 4, !tbaa !21
  %.not7094.us = icmp slt i32 %23, 1
  br i1 %.not7094.us, label %._crit_edge.split.us.us, label %._crit_edge.split.us.us.loopexit

._crit_edge.split.us.us.loopexit:                 ; preds = %.lr.ph103.split.us
  %24 = getelementptr inbounds i8, ptr %21, i64 144
  %25 = load ptr, ptr %24, align 8, !tbaa !22
  %26 = getelementptr inbounds i8, ptr %25, i64 56
  %27 = load ptr, ptr %26, align 8, !tbaa !23
  %28 = getelementptr inbounds ptr, ptr %27, i64 %indvars.iv123
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %22, i64 56
  %31 = load ptr, ptr %30, align 8, !tbaa !23
  %32 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv123
  %33 = load ptr, ptr %32, align 8, !tbaa !5
  %34 = trunc nuw nsw i64 %indvars.iv123 to i32
  tail call void @PDC_transform_line(i32 noundef %34, i32 noundef 0, i32 noundef %23, ptr noundef %33) #5
  %35 = zext nneg i32 %23 to i64
  %36 = shl nuw nsw i64 %35, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %29, ptr align 8 %33, i64 %36, i1 false)
  %.pre131 = load ptr, ptr @curscr, align 8, !tbaa !5
  br label %._crit_edge.split.us.us

._crit_edge.split.us.us:                          ; preds = %._crit_edge.split.us.us.loopexit, %.lr.ph103.split.us
  %37 = phi ptr [ %.pre131, %._crit_edge.split.us.us.loopexit ], [ %22, %.lr.ph103.split.us ]
  %38 = trunc nuw nsw i64 %indvars.iv123 to i32
  tail call void @PDC_set_changed_cells_range(ptr noundef %37, i32 noundef %38, i32 noundef -1, i32 noundef -1) #5
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %39 = load ptr, ptr @SP, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 32
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next124, %42
  br i1 %43, label %.lr.ph103.split.us, label %._crit_edge104, !llvm.loop !24

.lr.ph103.split:                                  ; preds = %.lr.ph103.split.preheader, %104
  %44 = phi ptr [ %.pre, %.lr.ph103.split.preheader ], [ %105, %104 ]
  %45 = phi ptr [ %.pre127, %.lr.ph103.split.preheader ], [ %106, %104 ]
  %indvars.iv117 = phi i64 [ 0, %.lr.ph103.split.preheader ], [ %indvars.iv.next118, %104 ]
  %46 = getelementptr inbounds i8, ptr %45, i64 64
  %47 = load ptr, ptr %46, align 8, !tbaa !26
  %48 = getelementptr inbounds i32, ptr %47, i64 %indvars.iv117
  %49 = load i32, ptr %48, align 4, !tbaa !21
  %.not69 = icmp eq i32 %49, -1
  br i1 %.not69, label %104, label %50

50:                                               ; preds = %.lr.ph103.split
  %51 = getelementptr inbounds i8, ptr %45, i64 56
  %52 = load ptr, ptr %51, align 8, !tbaa !23
  %53 = getelementptr inbounds ptr, ptr %52, i64 %indvars.iv117
  %54 = getelementptr inbounds i8, ptr %44, i64 144
  %55 = load ptr, ptr %54, align 8, !tbaa !22
  %56 = getelementptr inbounds i8, ptr %55, i64 56
  %57 = load ptr, ptr %56, align 8, !tbaa !23
  %58 = getelementptr inbounds ptr, ptr %57, i64 %indvars.iv117
  %59 = getelementptr inbounds i8, ptr %45, i64 72
  %60 = load ptr, ptr %59, align 8, !tbaa !27
  %61 = getelementptr inbounds i32, ptr %60, i64 %indvars.iv117
  %62 = load i32, ptr %61, align 4, !tbaa !21
  %63 = load ptr, ptr %53, align 8, !tbaa !5
  %64 = load ptr, ptr %58, align 8, !tbaa !5
  %.not7094 = icmp sgt i32 %49, %62
  br i1 %.not7094, label %._crit_edge.split, label %.preheader.preheader

.preheader.preheader:                             ; preds = %50
  %65 = sext i32 %62 to i64
  %66 = add i32 %62, 1
  %67 = trunc nuw nsw i64 %indvars.iv117 to i32
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge5
  %.16495 = phi i32 [ %.3.lcssa, %.critedge5 ], [ %49, %.preheader.preheader ]
  %.not7186 = icmp sgt i32 %.16495, %62
  br i1 %.not7186, label %.critedge.thread80, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %68 = sext i32 %.16495 to i64
  %69 = getelementptr inbounds i64, ptr %63, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !28
  %71 = getelementptr inbounds i64, ptr %64, i64 %68
  %72 = load i64, ptr %71, align 8, !tbaa !28
  %.not72.peel = icmp eq i64 %70, %72
  br i1 %.not72.peel, label %.critedge.thread80, label %.critedge3.peel

.critedge3.peel:                                  ; preds = %.lr.ph.preheader
  %.not71.peel.not = icmp slt i32 %.16495, %62
  br i1 %.not71.peel.not, label %.lr.ph.peel.next, label %.critedge.loopexit..critedge.thread_crit_edge

.lr.ph.peel.next:                                 ; preds = %.critedge3.peel
  %invariant.op = sub nsw i64 %65, %68
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.peel.next, %.critedge3
  %indvars.iv = phi i64 [ 1, %.lr.ph.peel.next ], [ %indvars.iv.next, %.critedge3 ]
  %73 = add nsw i64 %indvars.iv, %68
  %74 = getelementptr inbounds i64, ptr %63, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !28
  %76 = getelementptr inbounds i64, ptr %64, i64 %73
  %77 = load i64, ptr %76, align 8, !tbaa !28
  %.not72 = icmp eq i64 %75, %77
  br i1 %.not72, label %78, label %.critedge3

78:                                               ; preds = %.lr.ph
  %79 = icmp slt i64 %73, %65
  br i1 %79, label %80, label %.critedge.thread.loopexit

80:                                               ; preds = %78
  %81 = add nsw i64 %73, 1
  %82 = getelementptr inbounds i64, ptr %63, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !28
  %84 = getelementptr inbounds i64, ptr %64, i64 %81
  %85 = load i64, ptr %84, align 8, !tbaa !28
  %.not74 = icmp eq i64 %83, %85
  br i1 %.not74, label %.critedge.thread.loopexit, label %.critedge3

.critedge3:                                       ; preds = %.lr.ph, %80
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %.not71.not = icmp slt i64 %indvars.iv, %invariant.op
  br i1 %.not71.not, label %.lr.ph, label %.critedge.loopexit, !llvm.loop !29

.critedge.loopexit:                               ; preds = %.critedge3
  %86 = trunc nsw i64 %indvars.iv.next to i32
  br label %.critedge.loopexit..critedge.thread_crit_edge

.critedge.loopexit..critedge.thread_crit_edge:    ; preds = %.critedge.loopexit, %.critedge3.peel
  %87 = phi i32 [ %86, %.critedge.loopexit ], [ 1, %.critedge3.peel ]
  %.pre134 = sext i32 %.16495 to i64
  br label %.critedge.thread

.critedge.thread.loopexit:                        ; preds = %80, %78
  %88 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge.thread

.critedge.thread:                                 ; preds = %.critedge.thread.loopexit, %.critedge.loopexit..critedge.thread_crit_edge
  %.pre-phi = phi i64 [ %.pre134, %.critedge.loopexit..critedge.thread_crit_edge ], [ %68, %.critedge.thread.loopexit ]
  %.179 = phi i32 [ %87, %.critedge.loopexit..critedge.thread_crit_edge ], [ %88, %.critedge.thread.loopexit ]
  %89 = getelementptr inbounds i64, ptr %63, i64 %.pre-phi
  tail call void @PDC_transform_line(i32 noundef %67, i32 noundef %.16495, i32 noundef %.179, ptr noundef %89) #5
  %90 = getelementptr inbounds i64, ptr %64, i64 %.pre-phi
  %91 = sext i32 %.179 to i64
  %92 = shl nsw i64 %91, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 8 %90, ptr align 8 %89, i64 %92, i1 false)
  %93 = add nsw i32 %.179, %.16495
  br label %.critedge.thread80

.critedge.thread80:                               ; preds = %.preheader, %.lr.ph.preheader, %.critedge.thread
  %.2 = phi i32 [ %93, %.critedge.thread ], [ %.16495, %.lr.ph.preheader ], [ %.16495, %.preheader ]
  %.not7688 = icmp sgt i32 %.2, %62
  br i1 %.not7688, label %.critedge5, label %.lr.ph90.preheader

.lr.ph90.preheader:                               ; preds = %.critedge.thread80
  %94 = sext i32 %.2 to i64
  br label %.lr.ph90

.lr.ph90:                                         ; preds = %.lr.ph90.preheader, %100
  %indvars.iv114 = phi i64 [ %94, %.lr.ph90.preheader ], [ %indvars.iv.next115, %100 ]
  %95 = getelementptr inbounds i64, ptr %63, i64 %indvars.iv114
  %96 = load i64, ptr %95, align 8, !tbaa !28
  %97 = getelementptr inbounds i64, ptr %64, i64 %indvars.iv114
  %98 = load i64, ptr %97, align 8, !tbaa !28
  %99 = icmp eq i64 %96, %98
  br i1 %99, label %100, label %.critedge5.loopexit.split.loop.exit149

100:                                              ; preds = %.lr.ph90
  %indvars.iv.next115 = add nsw i64 %indvars.iv114, 1
  %.not76.not = icmp slt i64 %indvars.iv114, %65
  br i1 %.not76.not, label %.lr.ph90, label %.critedge5, !llvm.loop !31

.critedge5.loopexit.split.loop.exit149:           ; preds = %.lr.ph90
  %101 = trunc nsw i64 %indvars.iv114 to i32
  br label %.critedge5

.critedge5:                                       ; preds = %100, %.critedge5.loopexit.split.loop.exit149, %.critedge.thread80
  %.3.lcssa = phi i32 [ %.2, %.critedge.thread80 ], [ %101, %.critedge5.loopexit.split.loop.exit149 ], [ %66, %100 ]
  %.not70 = icmp sgt i32 %.3.lcssa, %62
  br i1 %.not70, label %._crit_edge.split.loopexit, label %.preheader, !llvm.loop !32

._crit_edge.split.loopexit:                       ; preds = %.critedge5
  %.pre129 = load ptr, ptr @curscr, align 8, !tbaa !5
  br label %._crit_edge.split

._crit_edge.split:                                ; preds = %._crit_edge.split.loopexit, %50
  %102 = phi ptr [ %.pre129, %._crit_edge.split.loopexit ], [ %45, %50 ]
  %103 = trunc nuw nsw i64 %indvars.iv117 to i32
  tail call void @PDC_set_changed_cells_range(ptr noundef %102, i32 noundef %103, i32 noundef -1, i32 noundef -1) #5
  %.pre126 = load ptr, ptr @curscr, align 8, !tbaa !5
  %.pre130 = load ptr, ptr @SP, align 8, !tbaa !5
  br label %104

104:                                              ; preds = %.lr.ph103.split, %._crit_edge.split
  %105 = phi ptr [ %44, %.lr.ph103.split ], [ %.pre130, %._crit_edge.split ]
  %106 = phi ptr [ %45, %.lr.ph103.split ], [ %.pre126, %._crit_edge.split ]
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %107 = getelementptr inbounds i8, ptr %105, i64 32
  %108 = load i32, ptr %107, align 8, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = icmp slt i64 %indvars.iv.next118, %109
  br i1 %110, label %.lr.ph103.split, label %._crit_edge104, !llvm.loop !24

._crit_edge104:                                   ; preds = %104, %._crit_edge.split.us.us, %.thread, %8
  %.lcssa = phi ptr [ %.pre, %8 ], [ %13, %.thread ], [ %39, %._crit_edge.split.us.us ], [ %105, %104 ]
  %111 = load ptr, ptr @curscr, align 8, !tbaa !5
  %112 = getelementptr inbounds i8, ptr %111, i64 48
  store i8 0, ptr %112, align 8, !tbaa !17
  %113 = getelementptr inbounds i8, ptr %.lcssa, i64 24
  %114 = load i32, ptr %113, align 8, !tbaa !33
  %.not68 = icmp eq i32 %114, 0
  br i1 %.not68, label %119, label %115

115:                                              ; preds = %._crit_edge104
  %116 = load i32, ptr %111, align 8, !tbaa !34
  %117 = getelementptr inbounds i8, ptr %111, i64 4
  %118 = load i32, ptr %117, align 4, !tbaa !35
  tail call void @PDC_gotoyx(i32 noundef %116, i32 noundef %118) #5
  %.pre132 = load ptr, ptr @curscr, align 8, !tbaa !5
  %.pre133 = load ptr, ptr @SP, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %115, %._crit_edge104
  %120 = phi ptr [ %.pre133, %115 ], [ %.lcssa, %._crit_edge104 ]
  %121 = phi ptr [ %.pre132, %115 ], [ %111, %._crit_edge104 ]
  %122 = getelementptr inbounds i8, ptr %120, i64 16
  %123 = load <2 x i32>, ptr %121, align 8, !tbaa !21
  store <2 x i32> %123, ptr %122, align 8, !tbaa !21
  tail call void @PDC_doupdate() #5
  ret i32 0
}

declare zeroext i1 @isendwin() local_unnamed_addr #2

declare i32 @reset_prog_mode() local_unnamed_addr #2

declare void @PDC_transform_line(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare void @PDC_gotoyx(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @PDC_doupdate() local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { noreturn nounwind }
attributes #5 = { 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, !13, i64 32}
!10 = !{!"", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !11, i64 9, !12, i64 10, !12, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !14, i64 40, !13, i64 48, !13, i64 52, !6, i64 56, !13, i64 64, !13, i64 68, !13, i64 72, !11, i64 76, !13, i64 80, !14, i64 88, !11, i64 96, !11, i64 97, !15, i64 100, !12, i64 132, !14, i64 136, !6, i64 144, !6, i64 152, !11, i64 160, !11, i64 161, !13, i64 164, !13, i64 168, !6, i64 176, !13, i64 184, !13, i64 188, !6, i64 192, !13, i64 200, !13, i64 204, !6, i64 208}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 4, !7, i64 8, !13, i64 28}
!16 = !{!10, !11, i64 0}
!17 = !{!18, !11, i64 48}
!18 = !{!"_win", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !13, i64 24, !14, i64 32, !14, i64 40, !11, i64 48, !11, i64 49, !11, i64 50, !11, i64 51, !11, i64 52, !11, i64 53, !11, i64 54, !6, i64 56, !6, i64 64, !6, i64 72, !13, i64 80, !13, i64 84, !13, i64 88, !13, i64 92, !13, i64 96, !6, i64 104, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !6, i64 144}
!23 = !{!18, !6, i64 56}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!18, !6, i64 64}
!27 = !{!18, !6, i64 72}
!28 = !{!14, !14, i64 0}
!29 = distinct !{!29, !25, !30}
!30 = !{!"llvm.loop.peeled.count", i32 1}
!31 = distinct !{!31, !25}
!32 = distinct !{!32, !25}
!33 = !{!10, !13, i64 24}
!34 = !{!18, !13, i64 0}
!35 = !{!18, !13, i64 4}


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