; LLVM IR from tangjz/acm-icpc :: codechef/SEPT18 (TABGAME)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@row = external dso_local global [2 x [100001 x i8]], align 16
@col = external dso_local global [2 x [100001 x i8]], align 16
@pos = external dso_local global [200003 x i8], align 16
@ans = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i8, align 1
  %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
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %11

11:                                               ; preds = %195, %0
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr @t, align 4, !tbaa !5
  %14 = icmp ne i32 %12, 0
  br i1 %14, label %15, label %200

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef getelementptr inbounds (i8, ptr @row, i64 1), ptr noundef getelementptr inbounds (i8, ptr @col, i64 1))
  %17 = call i64 @strlen(ptr noundef getelementptr inbounds (i8, ptr @row, i64 1)) #4
  %18 = trunc i64 %17 to i32
  store i32 %18, ptr @m, align 4, !tbaa !5
  %19 = call i64 @strlen(ptr noundef getelementptr inbounds (i8, ptr @col, i64 1)) #4
  %20 = trunc i64 %19 to i32
  store i32 %20, ptr @n, align 4, !tbaa !5
  %21 = load i8, ptr getelementptr inbounds ([100001 x i8], ptr @col, i64 0, i64 1), align 1, !tbaa !9
  store i8 %21, ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %49, %15
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = load i32, ptr @m, align 4, !tbaa !5
  %25 = icmp sle i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %52

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !5
  %29 = sub nsw i32 %28, 1
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), i64 0, i64 %30
  %32 = load i8, ptr %31, align 1, !tbaa !9
  %33 = sext i8 %32 to i32
  %34 = icmp eq i32 %33, 49
  br i1 %34, label %35, label %42

35:                                               ; preds = %27
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100001 x i8], ptr @row, i64 0, i64 %37
  %39 = load i8, ptr %38, align 1, !tbaa !9
  %40 = sext i8 %39 to i32
  %41 = icmp eq i32 %40, 49
  br label %42

42:                                               ; preds = %35, %27
  %43 = phi i1 [ false, %27 ], [ %41, %35 ]
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i8 48, i8 49
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), i64 0, i64 %47
  store i8 %45, ptr %48, align 1, !tbaa !9
  br label %49

49:                                               ; preds = %42
  %50 = load i32, ptr %2, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr %2, align 4, !tbaa !5
  br label %22, !llvm.loop !10

52:                                               ; preds = %26
  %53 = load i8, ptr getelementptr inbounds ([100001 x i8], ptr @row, i64 0, i64 1), align 1, !tbaa !9
  store i8 %53, ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %81, %52
  %55 = load i32, ptr %3, align 4, !tbaa !5
  %56 = load i32, ptr @n, align 4, !tbaa !5
  %57 = icmp sle i32 %55, %56
  br i1 %57, label %59, label %58

58:                                               ; preds = %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %84

59:                                               ; preds = %54
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sub nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !9
  %65 = sext i8 %64 to i32
  %66 = icmp eq i32 %65, 49
  br i1 %66, label %67, label %74

67:                                               ; preds = %59
  %68 = load i32, ptr %3, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [100001 x i8], ptr @col, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !9
  %72 = sext i8 %71 to i32
  %73 = icmp eq i32 %72, 49
  br label %74

74:                                               ; preds = %67, %59
  %75 = phi i1 [ false, %59 ], [ %73, %67 ]
  %76 = zext i1 %75 to i64
  %77 = select i1 %75, i8 48, i8 49
  %78 = load i32, ptr %3, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), i64 0, i64 %79
  store i8 %77, ptr %80, align 1, !tbaa !9
  br label %81

81:                                               ; preds = %74
  %82 = load i32, ptr %3, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %3, align 4, !tbaa !5
  br label %54, !llvm.loop !12

84:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #5
  %85 = load i8, ptr getelementptr inbounds ([100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), i64 0, i64 2), align 1, !tbaa !9
  store i8 %85, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 2, ptr %5, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %113, %84
  %87 = load i32, ptr %5, align 4, !tbaa !5
  %88 = load i32, ptr @m, align 4, !tbaa !5
  %89 = icmp sle i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %116

91:                                               ; preds = %86
  %92 = load i8, ptr %4, align 1, !tbaa !9
  %93 = sext i8 %92 to i32
  %94 = icmp eq i32 %93, 49
  br i1 %94, label %95, label %102

95:                                               ; preds = %91
  %96 = load i32, ptr %5, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), i64 0, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !9
  %100 = sext i8 %99 to i32
  %101 = icmp eq i32 %100, 49
  br label %102

102:                                              ; preds = %95, %91
  %103 = phi i1 [ false, %91 ], [ %101, %95 ]
  %104 = zext i1 %103 to i64
  %105 = select i1 %103, i8 48, i8 49
  store i8 %105, ptr %4, align 1, !tbaa !9
  %106 = load i8, ptr %4, align 1, !tbaa !9
  %107 = load i32, ptr %5, align 4, !tbaa !5
  %108 = sub nsw i32 2, %107
  %109 = load i32, ptr @m, align 4, !tbaa !5
  %110 = add nsw i32 %108, %109
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %111
  store i8 %106, ptr %112, align 1, !tbaa !9
  br label %113

113:                                              ; preds = %102
  %114 = load i32, ptr %5, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %5, align 4, !tbaa !5
  br label %86, !llvm.loop !13

116:                                              ; preds = %90
  %117 = load i8, ptr getelementptr inbounds ([100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), i64 0, i64 2), align 1, !tbaa !9
  store i8 %117, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 2, ptr %6, align 4, !tbaa !5
  br label %118

118:                                              ; preds = %145, %116
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = load i32, ptr @n, align 4, !tbaa !5
  %121 = icmp sle i32 %119, %120
  br i1 %121, label %123, label %122

122:                                              ; preds = %118
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %148

123:                                              ; preds = %118
  %124 = load i8, ptr %4, align 1, !tbaa !9
  %125 = sext i8 %124 to i32
  %126 = icmp eq i32 %125, 49
  br i1 %126, label %127, label %134

127:                                              ; preds = %123
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), i64 0, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !9
  %132 = sext i8 %131 to i32
  %133 = icmp eq i32 %132, 49
  br label %134

134:                                              ; preds = %127, %123
  %135 = phi i1 [ false, %123 ], [ %133, %127 ]
  %136 = zext i1 %135 to i64
  %137 = select i1 %135, i8 48, i8 49
  store i8 %137, ptr %4, align 1, !tbaa !9
  %138 = load i8, ptr %4, align 1, !tbaa !9
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = sub nsw i32 %139, 2
  %141 = load i32, ptr @m, align 4, !tbaa !5
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %143
  store i8 %138, ptr %144, align 1, !tbaa !9
  br label %145

145:                                              ; preds = %134
  %146 = load i32, ptr %6, align 4, !tbaa !5
  %147 = add nsw i32 %146, 1
  store i32 %147, ptr %6, align 4, !tbaa !5
  br label %118, !llvm.loop !14

148:                                              ; preds = %122
  %149 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @q)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %192, %148
  %151 = load i32, ptr %7, align 4, !tbaa !5
  %152 = load i32, ptr @q, align 4, !tbaa !5
  %153 = icmp slt i32 %151, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %195

155:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %156 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %8, ptr noundef %9)
  %157 = load i32, ptr %8, align 4, !tbaa !5
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %167

159:                                              ; preds = %155
  %160 = load i32, ptr %9, align 4, !tbaa !5
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @row, i64 0, i64 1), i64 0, i64 %161
  %163 = load i8, ptr %162, align 1, !tbaa !9
  %164 = load i32, ptr %7, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %165
  store i8 %163, ptr %166, align 1, !tbaa !9
  br label %191

167:                                              ; preds = %155
  %168 = load i32, ptr %9, align 4, !tbaa !5
  %169 = icmp eq i32 %168, 1
  br i1 %169, label %170, label %178

170:                                              ; preds = %167
  %171 = load i32, ptr %8, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds ([2 x [100001 x i8]], ptr @col, i64 0, i64 1), i64 0, i64 %172
  %174 = load i8, ptr %173, align 1, !tbaa !9
  %175 = load i32, ptr %7, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %176
  store i8 %174, ptr %177, align 1, !tbaa !9
  br label %190

178:                                              ; preds = %167
  %179 = load i32, ptr %8, align 4, !tbaa !5
  %180 = load i32, ptr %9, align 4, !tbaa !5
  %181 = sub nsw i32 %179, %180
  %182 = load i32, ptr @m, align 4, !tbaa !5
  %183 = add nsw i32 %181, %182
  %184 = sext i32 %183 to i64
  %185 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !9
  %187 = load i32, ptr %7, align 4, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %188
  store i8 %186, ptr %189, align 1, !tbaa !9
  br label %190

190:                                              ; preds = %178, %170
  br label %191

191:                                              ; preds = %190, %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %192

192:                                              ; preds = %191
  %193 = load i32, ptr %7, align 4, !tbaa !5
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %7, align 4, !tbaa !5
  br label %150, !llvm.loop !15

195:                                              ; preds = %154
  %196 = load i32, ptr @q, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %197
  store i8 0, ptr %198, align 1, !tbaa !9
  %199 = call i32 @puts(ptr noundef @ans)
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #5
  br label %11, !llvm.loop !16

200:                                              ; preds = %11
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr noundef, ...) #1

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

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

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

declare i32 @puts(ptr noundef) #1

attributes #0 = { mustprogress norecurse 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind willreturn memory(read) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


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

@t = external dso_local global i32, align 4
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@q = external dso_local global i32, align 4
@row = external dso_local global [2 x [100001 x i8]], align 16
@col = external dso_local global [2 x [100001 x i8]], align 16
@pos = external dso_local local_unnamed_addr global [200003 x i8], align 16
@ans = external dso_local global [100001 x i8], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not78 = icmp eq i32 %4, 0
  br i1 %.not78, label %._crit_edge81, label %.lr.ph80

.lr.ph80:                                         ; preds = %0, %._crit_edge77
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull getelementptr inbounds (i8, ptr @row, i64 1), ptr noundef nonnull getelementptr inbounds (i8, ptr @col, i64 1))
  %7 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @row, i64 1)) #4
  %8 = trunc i64 %7 to i32
  store i32 %8, ptr @m, align 4, !tbaa !5
  %9 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) getelementptr inbounds (i8, ptr @col, i64 1)) #4
  %10 = trunc i64 %9 to i32
  store i32 %10, ptr @n, align 4, !tbaa !5
  %11 = load i8, ptr getelementptr inbounds (i8, ptr @col, i64 1), align 1, !tbaa !9
  store i8 %11, ptr getelementptr inbounds (i8, ptr @row, i64 100001), align 1, !tbaa !9
  %.not3555 = icmp slt i32 %8, 1
  br i1 %.not3555, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph80
  %12 = add nuw nsw i64 %7, 1
  %wide.trip.count = and i64 %12, 4294967295
  %13 = add nsw i64 %wide.trip.count, -1
  %xtraiter = and i64 %13, 1
  %14 = icmp eq i64 %wide.trip.count, 2
  br i1 %14, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %13, -2
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.thread.1, %.lr.ph.preheader
  %.unr = phi i8 [ %11, %.lr.ph.preheader ], [ %39, %.thread.1 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %.thread.1 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %15 = icmp eq i8 %.unr, 49
  br i1 %15, label %16, label %.thread.epil

16:                                               ; preds = %.lr.ph.epil
  %17 = getelementptr inbounds [100001 x i8], ptr @row, i64 0, i64 %indvars.iv.unr
  %18 = load i8, ptr %17, align 1, !tbaa !9
  %.fr.epil = freeze i8 %18
  %19 = icmp eq i8 %.fr.epil, 49
  %spec.select.epil = select i1 %19, i8 48, i8 49
  br label %.thread.epil

.thread.epil:                                     ; preds = %16, %.lr.ph.epil
  %20 = phi i8 [ 49, %.lr.ph.epil ], [ %spec.select.epil, %16 ]
  %21 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv.unr
  store i8 %20, ptr %21, align 1, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %.thread.epil, %._crit_edge.loopexit.unr-lcssa, %.lr.ph80
  %22 = load i8, ptr getelementptr inbounds (i8, ptr @row, i64 1), align 1, !tbaa !9
  store i8 %22, ptr getelementptr inbounds (i8, ptr @col, i64 100001), align 1, !tbaa !9
  %.not3657 = icmp slt i32 %10, 1
  br i1 %.not3657, label %._crit_edge61, label %.lr.ph60.preheader

.lr.ph60.preheader:                               ; preds = %._crit_edge
  %23 = add nuw nsw i64 %9, 1
  %wide.trip.count87 = and i64 %23, 4294967295
  %24 = add nsw i64 %wide.trip.count87, -1
  %xtraiter103 = and i64 %24, 1
  %25 = icmp eq i64 %wide.trip.count87, 2
  br i1 %25, label %._crit_edge61.loopexit.unr-lcssa, label %.lr.ph60.preheader.new

.lr.ph60.preheader.new:                           ; preds = %.lr.ph60.preheader
  %unroll_iter106 = and i64 %24, -2
  br label %.lr.ph60

.lr.ph:                                           ; preds = %.thread.1, %.lr.ph.preheader.new
  %26 = phi i8 [ %11, %.lr.ph.preheader.new ], [ %39, %.thread.1 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %.thread.1 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.thread.1 ]
  %27 = icmp eq i8 %26, 49
  br i1 %27, label %28, label %.thread

28:                                               ; preds = %.lr.ph
  %29 = getelementptr inbounds [100001 x i8], ptr @row, i64 0, i64 %indvars.iv
  %30 = load i8, ptr %29, align 1, !tbaa !9
  %.fr = freeze i8 %30
  %31 = icmp eq i8 %.fr, 49
  %spec.select = select i1 %31, i8 48, i8 49
  br label %.thread

.thread:                                          ; preds = %28, %.lr.ph
  %32 = phi i8 [ 49, %.lr.ph ], [ %spec.select, %28 ]
  %33 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv
  store i8 %32, ptr %33, align 1, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = icmp eq i8 %32, 49
  br i1 %34, label %35, label %.thread.1

35:                                               ; preds = %.thread
  %36 = getelementptr inbounds [100001 x i8], ptr @row, i64 0, i64 %indvars.iv.next
  %37 = load i8, ptr %36, align 1, !tbaa !9
  %.fr.1 = freeze i8 %37
  %38 = icmp eq i8 %.fr.1, 49
  %spec.select.1 = select i1 %38, i8 48, i8 49
  br label %.thread.1

.thread.1:                                        ; preds = %35, %.thread
  %39 = phi i8 [ 49, %.thread ], [ %spec.select.1, %35 ]
  %40 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv.next
  store i8 %39, ptr %40, align 1, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !10

._crit_edge61.loopexit.unr-lcssa:                 ; preds = %.thread41.1, %.lr.ph60.preheader
  %.unr104 = phi i8 [ %22, %.lr.ph60.preheader ], [ %65, %.thread41.1 ]
  %indvars.iv84.unr = phi i64 [ 1, %.lr.ph60.preheader ], [ %indvars.iv.next85.1, %.thread41.1 ]
  %lcmp.mod105.not = icmp eq i64 %xtraiter103, 0
  br i1 %lcmp.mod105.not, label %._crit_edge61, label %.lr.ph60.epil

.lr.ph60.epil:                                    ; preds = %._crit_edge61.loopexit.unr-lcssa
  %41 = icmp eq i8 %.unr104, 49
  br i1 %41, label %42, label %.thread41.epil

42:                                               ; preds = %.lr.ph60.epil
  %43 = getelementptr inbounds [100001 x i8], ptr @col, i64 0, i64 %indvars.iv84.unr
  %44 = load i8, ptr %43, align 1, !tbaa !9
  %.fr52.epil = freeze i8 %44
  %45 = icmp eq i8 %.fr52.epil, 49
  %spec.select49.epil = select i1 %45, i8 48, i8 49
  br label %.thread41.epil

.thread41.epil:                                   ; preds = %42, %.lr.ph60.epil
  %46 = phi i8 [ 49, %.lr.ph60.epil ], [ %spec.select49.epil, %42 ]
  %47 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv84.unr
  store i8 %46, ptr %47, align 1, !tbaa !9
  br label %._crit_edge61

._crit_edge61:                                    ; preds = %.thread41.epil, %._crit_edge61.loopexit.unr-lcssa, %._crit_edge
  %.not3762 = icmp slt i32 %8, 2
  br i1 %.not3762, label %._crit_edge67, label %.lr.ph66

.lr.ph66:                                         ; preds = %._crit_edge61
  %48 = load i8, ptr getelementptr inbounds (i8, ptr @col, i64 100003), align 1, !tbaa !9
  %reass.sub = add nuw nsw i64 %7, 2
  %49 = add nuw nsw i64 %7, 1
  %wide.trip.count91 = and i64 %49, 4294967295
  %xtraiter108 = and i64 %49, 1
  %50 = icmp eq i64 %wide.trip.count91, 3
  br i1 %50, label %._crit_edge67.loopexit.unr-lcssa, label %.lr.ph66.new

.lr.ph66.new:                                     ; preds = %.lr.ph66
  %51 = add nsw i64 %wide.trip.count91, -2
  %unroll_iter110 = sub nsw i64 %51, %xtraiter108
  br label %81

.lr.ph60:                                         ; preds = %.thread41.1, %.lr.ph60.preheader.new
  %52 = phi i8 [ %22, %.lr.ph60.preheader.new ], [ %65, %.thread41.1 ]
  %indvars.iv84 = phi i64 [ 1, %.lr.ph60.preheader.new ], [ %indvars.iv.next85.1, %.thread41.1 ]
  %niter107 = phi i64 [ 0, %.lr.ph60.preheader.new ], [ %niter107.next.1, %.thread41.1 ]
  %53 = icmp eq i8 %52, 49
  br i1 %53, label %54, label %.thread41

54:                                               ; preds = %.lr.ph60
  %55 = getelementptr inbounds [100001 x i8], ptr @col, i64 0, i64 %indvars.iv84
  %56 = load i8, ptr %55, align 1, !tbaa !9
  %.fr52 = freeze i8 %56
  %57 = icmp eq i8 %.fr52, 49
  %spec.select49 = select i1 %57, i8 48, i8 49
  br label %.thread41

.thread41:                                        ; preds = %54, %.lr.ph60
  %58 = phi i8 [ 49, %.lr.ph60 ], [ %spec.select49, %54 ]
  %59 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv84
  store i8 %58, ptr %59, align 1, !tbaa !9
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %60 = icmp eq i8 %58, 49
  br i1 %60, label %61, label %.thread41.1

61:                                               ; preds = %.thread41
  %62 = getelementptr inbounds [100001 x i8], ptr @col, i64 0, i64 %indvars.iv.next85
  %63 = load i8, ptr %62, align 1, !tbaa !9
  %.fr52.1 = freeze i8 %63
  %64 = icmp eq i8 %.fr52.1, 49
  %spec.select49.1 = select i1 %64, i8 48, i8 49
  br label %.thread41.1

.thread41.1:                                      ; preds = %61, %.thread41
  %65 = phi i8 [ 49, %.thread41 ], [ %spec.select49.1, %61 ]
  %66 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv.next85
  store i8 %65, ptr %66, align 1, !tbaa !9
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %niter107.next.1 = add i64 %niter107, 2
  %niter107.ncmp.1 = icmp eq i64 %niter107.next.1, %unroll_iter106
  br i1 %niter107.ncmp.1, label %._crit_edge61.loopexit.unr-lcssa, label %.lr.ph60, !llvm.loop !12

._crit_edge67.loopexit.unr-lcssa:                 ; preds = %.thread44.1, %.lr.ph66
  %indvars.iv89.unr = phi i64 [ 2, %.lr.ph66 ], [ %indvars.iv.next90.1, %.thread44.1 ]
  %.02963.unr = phi i8 [ %48, %.lr.ph66 ], [ %96, %.thread44.1 ]
  %lcmp.mod109.not = icmp eq i64 %xtraiter108, 0
  br i1 %lcmp.mod109.not, label %._crit_edge67, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge67.loopexit.unr-lcssa
  %67 = icmp eq i8 %.02963.unr, 49
  br i1 %67, label %68, label %.thread44.epil

68:                                               ; preds = %.epil.preheader
  %69 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv89.unr
  %70 = load i8, ptr %69, align 1, !tbaa !9
  %.fr53.epil = freeze i8 %70
  %71 = icmp eq i8 %.fr53.epil, 49
  %spec.select50.epil = select i1 %71, i8 48, i8 49
  br label %.thread44.epil

.thread44.epil:                                   ; preds = %68, %.epil.preheader
  %72 = phi i8 [ 49, %.epil.preheader ], [ %spec.select50.epil, %68 ]
  %73 = sub i64 %reass.sub, %indvars.iv89.unr
  %sext.epil = shl i64 %73, 32
  %74 = ashr exact i64 %sext.epil, 32
  %75 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %74
  store i8 %72, ptr %75, align 1, !tbaa !9
  br label %._crit_edge67

._crit_edge67:                                    ; preds = %.thread44.epil, %._crit_edge67.loopexit.unr-lcssa, %._crit_edge61
  %.not3868 = icmp slt i32 %10, 2
  br i1 %.not3868, label %._crit_edge73, label %.lr.ph72

.lr.ph72:                                         ; preds = %._crit_edge67
  %76 = load i8, ptr getelementptr inbounds (i8, ptr @row, i64 100003), align 1, !tbaa !9
  %77 = add i64 %7, 4294967294
  %78 = add nuw nsw i64 %9, 1
  %wide.trip.count95 = and i64 %78, 4294967295
  %xtraiter113 = and i64 %78, 1
  %79 = icmp eq i64 %wide.trip.count95, 3
  br i1 %79, label %._crit_edge73.loopexit.unr-lcssa, label %.lr.ph72.new

.lr.ph72.new:                                     ; preds = %.lr.ph72
  %80 = add nsw i64 %wide.trip.count95, -2
  %unroll_iter115 = sub nsw i64 %80, %xtraiter113
  br label %112

81:                                               ; preds = %.thread44.1, %.lr.ph66.new
  %indvars.iv89 = phi i64 [ 2, %.lr.ph66.new ], [ %indvars.iv.next90.1, %.thread44.1 ]
  %.02963 = phi i8 [ %48, %.lr.ph66.new ], [ %96, %.thread44.1 ]
  %niter111 = phi i64 [ 0, %.lr.ph66.new ], [ %niter111.next.1, %.thread44.1 ]
  %82 = icmp eq i8 %.02963, 49
  br i1 %82, label %83, label %.thread44

83:                                               ; preds = %81
  %84 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv89
  %85 = load i8, ptr %84, align 1, !tbaa !9
  %.fr53 = freeze i8 %85
  %86 = icmp eq i8 %.fr53, 49
  %spec.select50 = select i1 %86, i8 48, i8 49
  br label %.thread44

.thread44:                                        ; preds = %83, %81
  %87 = phi i8 [ 49, %81 ], [ %spec.select50, %83 ]
  %88 = sub i64 %reass.sub, %indvars.iv89
  %sext = shl i64 %88, 32
  %89 = ashr exact i64 %sext, 32
  %90 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %89
  store i8 %87, ptr %90, align 1, !tbaa !9
  %indvars.iv.next90 = or disjoint i64 %indvars.iv89, 1
  %91 = icmp eq i8 %87, 49
  br i1 %91, label %92, label %.thread44.1

92:                                               ; preds = %.thread44
  %93 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %indvars.iv.next90
  %94 = load i8, ptr %93, align 2, !tbaa !9
  %.fr53.1 = freeze i8 %94
  %95 = icmp eq i8 %.fr53.1, 49
  %spec.select50.1 = select i1 %95, i8 48, i8 49
  br label %.thread44.1

.thread44.1:                                      ; preds = %92, %.thread44
  %96 = phi i8 [ 49, %.thread44 ], [ %spec.select50.1, %92 ]
  %97 = sub i64 %reass.sub, %indvars.iv.next90
  %sext.1 = shl i64 %97, 32
  %98 = ashr exact i64 %sext.1, 32
  %99 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %98
  store i8 %96, ptr %99, align 1, !tbaa !9
  %indvars.iv.next90.1 = add nuw nsw i64 %indvars.iv89, 2
  %niter111.next.1 = add i64 %niter111, 2
  %niter111.ncmp.1 = icmp eq i64 %niter111.next.1, %unroll_iter110
  br i1 %niter111.ncmp.1, label %._crit_edge67.loopexit.unr-lcssa, label %81, !llvm.loop !13

._crit_edge73.loopexit.unr-lcssa:                 ; preds = %.thread47.1, %.lr.ph72
  %indvars.iv93.unr = phi i64 [ 2, %.lr.ph72 ], [ %indvars.iv.next94.1, %.thread47.1 ]
  %.169.unr = phi i8 [ %76, %.lr.ph72 ], [ %127, %.thread47.1 ]
  %lcmp.mod114.not = icmp eq i64 %xtraiter113, 0
  br i1 %lcmp.mod114.not, label %._crit_edge73, label %.epil.preheader112

.epil.preheader112:                               ; preds = %._crit_edge73.loopexit.unr-lcssa
  %100 = icmp eq i8 %.169.unr, 49
  br i1 %100, label %101, label %.thread47.epil

101:                                              ; preds = %.epil.preheader112
  %102 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv93.unr
  %103 = load i8, ptr %102, align 1, !tbaa !9
  %.fr54.epil = freeze i8 %103
  %104 = icmp eq i8 %.fr54.epil, 49
  %spec.select51.epil = select i1 %104, i8 48, i8 49
  br label %.thread47.epil

.thread47.epil:                                   ; preds = %101, %.epil.preheader112
  %105 = phi i8 [ 49, %.epil.preheader112 ], [ %spec.select51.epil, %101 ]
  %106 = add i64 %77, %indvars.iv93.unr
  %sext100.epil = shl i64 %106, 32
  %107 = ashr exact i64 %sext100.epil, 32
  %108 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %107
  store i8 %105, ptr %108, align 1, !tbaa !9
  br label %._crit_edge73

._crit_edge73:                                    ; preds = %.thread47.epil, %._crit_edge73.loopexit.unr-lcssa, %._crit_edge67
  %109 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @q)
  %110 = load i32, ptr @q, align 4, !tbaa !5
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %.lr.ph76, label %._crit_edge73.._crit_edge77_crit_edge

._crit_edge73.._crit_edge77_crit_edge:            ; preds = %._crit_edge73
  %.pre = sext i32 %110 to i64
  br label %._crit_edge77

112:                                              ; preds = %.thread47.1, %.lr.ph72.new
  %indvars.iv93 = phi i64 [ 2, %.lr.ph72.new ], [ %indvars.iv.next94.1, %.thread47.1 ]
  %.169 = phi i8 [ %76, %.lr.ph72.new ], [ %127, %.thread47.1 ]
  %niter116 = phi i64 [ 0, %.lr.ph72.new ], [ %niter116.next.1, %.thread47.1 ]
  %113 = icmp eq i8 %.169, 49
  br i1 %113, label %114, label %.thread47

114:                                              ; preds = %112
  %115 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv93
  %116 = load i8, ptr %115, align 1, !tbaa !9
  %.fr54 = freeze i8 %116
  %117 = icmp eq i8 %.fr54, 49
  %spec.select51 = select i1 %117, i8 48, i8 49
  br label %.thread47

.thread47:                                        ; preds = %114, %112
  %118 = phi i8 [ 49, %112 ], [ %spec.select51, %114 ]
  %119 = add i64 %77, %indvars.iv93
  %sext100 = shl i64 %119, 32
  %120 = ashr exact i64 %sext100, 32
  %121 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %120
  store i8 %118, ptr %121, align 1, !tbaa !9
  %indvars.iv.next94 = or disjoint i64 %indvars.iv93, 1
  %122 = icmp eq i8 %118, 49
  br i1 %122, label %123, label %.thread47.1

123:                                              ; preds = %.thread47
  %124 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %indvars.iv.next94
  %125 = load i8, ptr %124, align 2, !tbaa !9
  %.fr54.1 = freeze i8 %125
  %126 = icmp eq i8 %.fr54.1, 49
  %spec.select51.1 = select i1 %126, i8 48, i8 49
  br label %.thread47.1

.thread47.1:                                      ; preds = %123, %.thread47
  %127 = phi i8 [ 49, %.thread47 ], [ %spec.select51.1, %123 ]
  %128 = add i64 %77, %indvars.iv.next94
  %sext100.1 = shl i64 %128, 32
  %129 = ashr exact i64 %sext100.1, 32
  %130 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %129
  store i8 %127, ptr %130, align 1, !tbaa !9
  %indvars.iv.next94.1 = add nuw nsw i64 %indvars.iv93, 2
  %niter116.next.1 = add i64 %niter116, 2
  %niter116.ncmp.1 = icmp eq i64 %niter116.next.1, %unroll_iter115
  br i1 %niter116.ncmp.1, label %._crit_edge73.loopexit.unr-lcssa, label %112, !llvm.loop !14

._crit_edge77:                                    ; preds = %153, %._crit_edge73.._crit_edge77_crit_edge
  %.pre-phi = phi i64 [ %.pre, %._crit_edge73.._crit_edge77_crit_edge ], [ %157, %153 ]
  %131 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %.pre-phi
  store i8 0, ptr %131, align 1, !tbaa !9
  %132 = call i32 @puts(ptr noundef nonnull dereferenceable(1) @ans)
  %133 = load i32, ptr @t, align 4, !tbaa !5
  %134 = add nsw i32 %133, -1
  store i32 %134, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %133, 0
  br i1 %.not, label %._crit_edge81, label %.lr.ph80, !llvm.loop !15

.lr.ph76:                                         ; preds = %._crit_edge73, %153
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %153 ], [ 0, %._crit_edge73 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %135 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %136 = load i32, ptr %1, align 4, !tbaa !5
  %137 = icmp eq i32 %136, 1
  %138 = load i32, ptr %2, align 4, !tbaa !5
  br i1 %137, label %139, label %142

139:                                              ; preds = %.lr.ph76
  %140 = sext i32 %138 to i64
  %141 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @row, i64 100001), i64 0, i64 %140
  br label %153

142:                                              ; preds = %.lr.ph76
  %143 = icmp eq i32 %138, 1
  br i1 %143, label %144, label %147

144:                                              ; preds = %142
  %145 = sext i32 %136 to i64
  %146 = getelementptr inbounds [100001 x i8], ptr getelementptr inbounds (i8, ptr @col, i64 100001), i64 0, i64 %145
  br label %153

147:                                              ; preds = %142
  %148 = sub i32 %136, %138
  %149 = load i32, ptr @m, align 4, !tbaa !5
  %150 = add nsw i32 %148, %149
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [200003 x i8], ptr @pos, i64 0, i64 %151
  br label %153

153:                                              ; preds = %144, %147, %139
  %.sink102 = phi ptr [ %146, %144 ], [ %152, %147 ], [ %141, %139 ]
  %154 = load i8, ptr %.sink102, align 1, !tbaa !9
  %155 = getelementptr inbounds [100001 x i8], ptr @ans, i64 0, i64 %indvars.iv97
  store i8 %154, ptr %155, align 1, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %indvars.iv.next98 = add nuw nsw i64 %indvars.iv97, 1
  %156 = load i32, ptr @q, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = icmp slt i64 %indvars.iv.next98, %157
  br i1 %158, label %.lr.ph76, label %._crit_edge77, !llvm.loop !16

._crit_edge81:                                    ; preds = %._crit_edge77, %0
  ret i32 0
}

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

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

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

attributes #0 = { mustprogress nofree norecurse 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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind willreturn memory(read) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass