; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/141 Division 2/Problem B (B)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@n1 = external dso_local global i32, align 4
@n2 = external dso_local global i32, align 4
@m1 = external dso_local global i32, align 4
@m2 = external dso_local global i32, align 4
@res = external dso_local global i32, align 4
@cnt = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@x = external dso_local global i32, align 4
@y = external dso_local global i32, align 4
@a = external dso_local global [50 x [50 x i32]], align 16
@b = external dso_local global [50 x [50 x i32]], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [7 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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n1, ptr noundef @m1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %41, %0
  %13 = load i32, ptr %2, align 4, !tbaa !5
  %14 = load i32, ptr @n1, align 4, !tbaa !5
  %15 = icmp slt i32 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %12
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %44

17:                                               ; preds = %12
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %19

19:                                               ; preds = %37, %17
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = load i32, ptr @m1, align 4, !tbaa !5
  %22 = icmp slt i32 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %40

24:                                               ; preds = %19
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %26)
  %28 = load i8, ptr %27, align 1, !tbaa !9
  %29 = sext i8 %28 to i32
  %30 = sub nsw i32 %29, 48
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %32
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [50 x i32], ptr %33, i64 0, i64 %35
  store i32 %30, ptr %36, align 4, !tbaa !5
  br label %37

37:                                               ; preds = %24
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr %4, align 4, !tbaa !5
  br label %19, !llvm.loop !10

40:                                               ; preds = %23
  br label %41

41:                                               ; preds = %40
  %42 = load i32, ptr %2, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %2, align 4, !tbaa !5
  br label %12, !llvm.loop !12

44:                                               ; preds = %16
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n2, ptr noundef @m2)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %75, %44
  %47 = load i32, ptr %5, align 4, !tbaa !5
  %48 = load i32, ptr @n2, align 4, !tbaa !5
  %49 = icmp slt i32 %47, %48
  br i1 %49, label %51, label %50

50:                                               ; preds = %46
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %78

51:                                               ; preds = %46
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %71, %51
  %54 = load i32, ptr %6, align 4, !tbaa !5
  %55 = load i32, ptr @m2, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %74

58:                                               ; preds = %53
  %59 = load i32, ptr %6, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %60)
  %62 = load i8, ptr %61, align 1, !tbaa !9
  %63 = sext i8 %62 to i32
  %64 = sub nsw i32 %63, 48
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [50 x [50 x i32]], ptr @b, i64 0, i64 %66
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [50 x i32], ptr %67, i64 0, i64 %69
  store i32 %64, ptr %70, align 4, !tbaa !5
  br label %71

71:                                               ; preds = %58
  %72 = load i32, ptr %6, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %6, align 4, !tbaa !5
  br label %53, !llvm.loop !13

74:                                               ; preds = %57
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %5, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %5, align 4, !tbaa !5
  br label %46, !llvm.loop !14

78:                                               ; preds = %50
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @n1, ptr noundef nonnull align 4 dereferenceable(4) @n2)
  %80 = load i32, ptr %79, align 4, !tbaa !5
  store i32 %80, ptr @n, align 4, !tbaa !5
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @m1, ptr noundef nonnull align 4 dereferenceable(4) @m2)
  %82 = load i32, ptr %81, align 4, !tbaa !5
  store i32 %82, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %83 = load i32, ptr @n, align 4, !tbaa !5
  %84 = sub nsw i32 0, %83
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %85

85:                                               ; preds = %186, %78
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = icmp sle i32 %86, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %189

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %91 = load i32, ptr @m, align 4, !tbaa !5
  %92 = sub nsw i32 0, %91
  store i32 %92, ptr %8, align 4, !tbaa !5
  br label %93

93:                                               ; preds = %182, %90
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = load i32, ptr @m, align 4, !tbaa !5
  %96 = icmp sle i32 %94, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %93
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %185

98:                                               ; preds = %93
  store i32 0, ptr @cnt, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %170, %98
  %100 = load i32, ptr %9, align 4, !tbaa !5
  %101 = load i32, ptr @n1, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %173

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %166, %104
  %106 = load i32, ptr %10, align 4, !tbaa !5
  %107 = load i32, ptr @m1, align 4, !tbaa !5
  %108 = icmp slt i32 %106, %107
  br i1 %108, label %110, label %109

109:                                              ; preds = %105
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %169

110:                                              ; preds = %105
  %111 = load i32, ptr %9, align 4, !tbaa !5
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = add nsw i32 %111, %112
  %114 = icmp sge i32 %113, 0
  br i1 %114, label %115, label %165

115:                                              ; preds = %110
  %116 = load i32, ptr %9, align 4, !tbaa !5
  %117 = load i32, ptr %7, align 4, !tbaa !5
  %118 = add nsw i32 %116, %117
  %119 = load i32, ptr @n2, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %121, label %165

121:                                              ; preds = %115
  %122 = load i32, ptr %10, align 4, !tbaa !5
  %123 = load i32, ptr %8, align 4, !tbaa !5
  %124 = add nsw i32 %122, %123
  %125 = icmp sge i32 %124, 0
  br i1 %125, label %126, label %165

126:                                              ; preds = %121
  %127 = load i32, ptr %10, align 4, !tbaa !5
  %128 = load i32, ptr %8, align 4, !tbaa !5
  %129 = add nsw i32 %127, %128
  %130 = load i32, ptr @m2, align 4, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %132, label %165

132:                                              ; preds = %126
  %133 = load i32, ptr %9, align 4, !tbaa !5
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %134
  %136 = load i32, ptr %10, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [50 x i32], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !5
  %141 = load i32, ptr %7, align 4, !tbaa !5
  %142 = add nsw i32 %140, %141
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [50 x [50 x i32]], ptr @b, i64 0, i64 %143
  %145 = load i32, ptr %10, align 4, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !5
  %147 = add nsw i32 %145, %146
  %148 = sext i32 %147 to i64
  %149 = getelementptr inbounds [50 x i32], ptr %144, i64 0, i64 %148
  %150 = load i32, ptr %149, align 4, !tbaa !5
  %151 = icmp eq i32 %139, %150
  br i1 %151, label %152, label %164

152:                                              ; preds = %132
  %153 = load i32, ptr %9, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %154
  %156 = load i32, ptr %10, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [50 x i32], ptr %155, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !5
  %160 = icmp eq i32 %159, 1
  br i1 %160, label %161, label %164

161:                                              ; preds = %152
  %162 = load i32, ptr @cnt, align 4, !tbaa !5
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr @cnt, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %161, %152, %132
  br label %165

165:                                              ; preds = %164, %126, %121, %115, %110
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %10, align 4, !tbaa !5
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %10, align 4, !tbaa !5
  br label %105, !llvm.loop !15

169:                                              ; preds = %109
  br label %170

170:                                              ; preds = %169
  %171 = load i32, ptr %9, align 4, !tbaa !5
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %9, align 4, !tbaa !5
  br label %99, !llvm.loop !16

173:                                              ; preds = %103
  %174 = load i32, ptr @cnt, align 4, !tbaa !5
  %175 = load i32, ptr @res, align 4, !tbaa !5
  %176 = icmp sgt i32 %174, %175
  br i1 %176, label %177, label %181

177:                                              ; preds = %173
  %178 = load i32, ptr @cnt, align 4, !tbaa !5
  store i32 %178, ptr @res, align 4, !tbaa !5
  %179 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %179, ptr @x, align 4, !tbaa !5
  %180 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %180, ptr @y, align 4, !tbaa !5
  br label %181

181:                                              ; preds = %177, %173
  br label %182

182:                                              ; preds = %181
  %183 = load i32, ptr %8, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %8, align 4, !tbaa !5
  br label %93, !llvm.loop !17

185:                                              ; preds = %97
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %7, align 4, !tbaa !5
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %7, align 4, !tbaa !5
  br label %85, !llvm.loop !18

189:                                              ; preds = %89
  %190 = load i32, ptr @x, align 4, !tbaa !5
  %191 = load i32, ptr @y, align 4, !tbaa !5
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %190, i32 noundef %191)
  ret i32 0
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #4

declare i32 @printf(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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress 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 = { inlinehint mustprogress 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 }

!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}
!17 = distinct !{!17, !11}
!18 = distinct !{!18, !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"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@n1 = external dso_local global i32, align 4
@n2 = external dso_local global i32, align 4
@m1 = external dso_local global i32, align 4
@m2 = external dso_local global i32, align 4
@res = external dso_local local_unnamed_addr global i32, align 4
@cnt = external dso_local local_unnamed_addr 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
@x = external dso_local local_unnamed_addr global i32, align 4
@y = external dso_local local_unnamed_addr global i32, align 4
@a = external dso_local local_unnamed_addr global [50 x [50 x i32]], align 16
@b = external dso_local local_unnamed_addr global [50 x [50 x i32]], align 16
@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.2 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n1, ptr noundef nonnull @m1)
  %2 = load i32, ptr @n1, align 4, !tbaa !5
  %3 = icmp sgt i32 %2, 0
  br i1 %3, label %.lr.ph59, label %._crit_edge60

._crit_edge60:                                    ; preds = %._crit_edge, %0
  %4 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n2, ptr noundef nonnull @m2)
  %5 = load i32, ptr @n2, align 4, !tbaa !5
  %6 = icmp sgt i32 %5, 0
  br i1 %6, label %.lr.ph67, label %._crit_edge68

.lr.ph59:                                         ; preds = %0, %._crit_edge
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %._crit_edge ], [ 0, %0 ]
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %8 = load i32, ptr @m1, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph59
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %10 = load i32, ptr @n1, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = icmp slt i64 %indvars.iv.next131, %11
  br i1 %12, label %.lr.ph59, label %._crit_edge60, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph59, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph59 ]
  %13 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv)
  %14 = load i8, ptr %13, align 1, !tbaa !11
  %15 = sext i8 %14 to i32
  %16 = add nsw i32 %15, -48
  %17 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv130, i64 %indvars.iv
  store i32 %16, ptr %17, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @m1, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %.lr.ph, label %._crit_edge, !llvm.loop !12

._crit_edge68:                                    ; preds = %._crit_edge64, %._crit_edge60
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @n1, ptr noundef nonnull align 4 dereferenceable(4) @n2)
  %22 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %22, ptr @n, align 4, !tbaa !5
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) @m1, ptr noundef nonnull align 4 dereferenceable(4) @m2)
  %24 = load i32, ptr %23, align 4, !tbaa !5
  store i32 %24, ptr @m, align 4, !tbaa !5
  %25 = load i32, ptr @n, align 4, !tbaa !5
  %26 = sub i32 0, %25
  %res.promoted94 = load i32, ptr @res, align 4, !tbaa !5
  %.not105 = icmp slt i32 %25, 0
  br i1 %.not105, label %._crit_edge112, label %.lr.ph111

.lr.ph111:                                        ; preds = %._crit_edge68
  %27 = sub i32 0, %24
  %.not5179 = icmp slt i32 %24, 0
  %28 = load i32, ptr @n1, align 4
  %29 = load i32, ptr @m1, align 4
  %30 = icmp sgt i32 %29, 0
  %31 = load i32, ptr @n2, align 4
  %32 = load i32, ptr @m2, align 4
  br i1 %.not5179, label %._crit_edge112, label %.lr.ph111.split

.lr.ph111.split:                                  ; preds = %.lr.ph111
  %33 = icmp sgt i32 %28, 0
  br i1 %33, label %.lr.ph111.split.split.us, label %.lr.ph83.preheader

.lr.ph83.preheader:                               ; preds = %.lr.ph111.split
  %34 = sub nsw i32 1, %24
  %35 = icmp eq i32 %24, 0
  br label %.lr.ph83

.lr.ph111.split.split.us:                         ; preds = %.lr.ph111.split
  br i1 %30, label %.lr.ph83.us.us.preheader, label %.lr.ph83.us.preheader

.lr.ph83.us.preheader:                            ; preds = %.lr.ph111.split.split.us
  %36 = sub nsw i32 1, %24
  %37 = icmp eq i32 %24, 0
  br label %.lr.ph83.us

.lr.ph83.us.us.preheader:                         ; preds = %.lr.ph111.split.split.us
  %38 = sext i32 %32 to i64
  %39 = sext i32 %31 to i64
  %40 = sext i32 %27 to i64
  %41 = add nuw i32 %24, 1
  %42 = sext i32 %26 to i64
  %43 = add nuw i32 %25, 1
  %wide.trip.count149 = zext nneg i32 %28 to i64
  %wide.trip.count = zext nneg i32 %29 to i64
  br label %.lr.ph83.us.us

.lr.ph83.us.us:                                   ; preds = %.lr.ph83.us.us.preheader, %._crit_edge84.split.us.split.us.us.us
  %indvars.iv155 = phi i64 [ %42, %.lr.ph83.us.us.preheader ], [ %indvars.iv.next156, %._crit_edge84.split.us.split.us.us.us ]
  %.lcssa78.us.us104106.us114.us = phi i32 [ %res.promoted94, %.lr.ph83.us.us.preheader ], [ %.lcssa78.us.us101.us.us, %._crit_edge84.split.us.split.us.us.us ]
  %44 = trunc nsw i64 %indvars.iv155 to i32
  br label %.preheader.lr.ph.us.us.us.us

.preheader.lr.ph.us.us.us.us:                     ; preds = %48, %.lr.ph83.us.us
  %indvars.iv151 = phi i64 [ %indvars.iv.next152, %48 ], [ %40, %.lr.ph83.us.us ]
  %.lcssa78.us.us102.us.us = phi i32 [ %.lcssa78.us.us101.us.us, %48 ], [ %.lcssa78.us.us104106.us114.us, %.lr.ph83.us.us ]
  %45 = phi i32 [ %49, %48 ], [ %.lcssa78.us.us104106.us114.us, %.lr.ph83.us.us ]
  br label %.preheader.us.us.us.us.us

46:                                               ; preds = %._crit_edge74.split.us.us.us.us.us
  store i32 %57, ptr @res, align 4, !tbaa !5
  store i32 %44, ptr @x, align 4, !tbaa !5
  %47 = trunc nsw i64 %indvars.iv151 to i32
  store i32 %47, ptr @y, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %._crit_edge74.split.us.us.us.us.us, %46
  %.lcssa78.us.us101.us.us = phi i32 [ %.lcssa78.us.us102.us.us, %._crit_edge74.split.us.us.us.us.us ], [ %57, %46 ]
  %49 = phi i32 [ %45, %._crit_edge74.split.us.us.us.us.us ], [ %57, %46 ]
  %indvars.iv.next152 = add nsw i64 %indvars.iv151, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next152 to i32
  %exitcond154.not = icmp eq i32 %41, %lftr.wideiv
  br i1 %exitcond154.not, label %._crit_edge84.split.us.split.us.us.us, label %.preheader.lr.ph.us.us.us.us, !llvm.loop !13

.preheader.us.us.us.us.us:                        ; preds = %._crit_edge71.us.us.us.us.us, %.preheader.lr.ph.us.us.us.us
  %indvars.iv146 = phi i64 [ %indvars.iv.next147, %._crit_edge71.us.us.us.us.us ], [ 0, %.preheader.lr.ph.us.us.us.us ]
  %50 = phi i32 [ %56, %._crit_edge71.us.us.us.us.us ], [ 0, %.preheader.lr.ph.us.us.us.us ]
  %51 = phi i32 [ %57, %._crit_edge71.us.us.us.us.us ], [ 0, %.preheader.lr.ph.us.us.us.us ]
  %52 = phi i32 [ %58, %._crit_edge71.us.us.us.us.us ], [ 0, %.preheader.lr.ph.us.us.us.us ]
  %53 = add nsw i64 %indvars.iv146, %indvars.iv155
  %54 = icmp sgt i64 %53, -1
  %55 = icmp slt i64 %53, %39
  %or.cond.us.us.us.us.us = select i1 %54, i1 %55, i1 false
  br i1 %or.cond.us.us.us.us.us, label %.lr.ph70.split.us.us.us.us.us.us, label %._crit_edge71.us.us.us.us.us

._crit_edge71.us.us.us.us.us:                     ; preds = %75, %.preheader.us.us.us.us.us
  %56 = phi i32 [ %50, %.preheader.us.us.us.us.us ], [ %76, %75 ]
  %57 = phi i32 [ %51, %.preheader.us.us.us.us.us ], [ %77, %75 ]
  %58 = phi i32 [ %52, %.preheader.us.us.us.us.us ], [ %78, %75 ]
  %indvars.iv.next147 = add nuw nsw i64 %indvars.iv146, 1
  %exitcond150.not = icmp eq i64 %indvars.iv.next147, %wide.trip.count149
  br i1 %exitcond150.not, label %._crit_edge74.split.us.us.us.us.us, label %.preheader.us.us.us.us.us, !llvm.loop !14

.lr.ph70.split.us.us.us.us.us.us:                 ; preds = %.preheader.us.us.us.us.us, %75
  %indvars.iv142 = phi i64 [ %indvars.iv.next143, %75 ], [ 0, %.preheader.us.us.us.us.us ]
  %59 = phi i32 [ %76, %75 ], [ %50, %.preheader.us.us.us.us.us ]
  %60 = phi i32 [ %77, %75 ], [ %51, %.preheader.us.us.us.us.us ]
  %61 = phi i32 [ %78, %75 ], [ %52, %.preheader.us.us.us.us.us ]
  %62 = phi i32 [ %79, %75 ], [ %52, %.preheader.us.us.us.us.us ]
  %63 = add nsw i64 %indvars.iv142, %indvars.iv151
  %64 = icmp sgt i64 %63, -1
  %65 = icmp slt i64 %63, %38
  %or.cond54.us.us.us.us.us.us = select i1 %64, i1 %65, i1 false
  br i1 %or.cond54.us.us.us.us.us.us, label %66, label %75

66:                                               ; preds = %.lr.ph70.split.us.us.us.us.us.us
  %67 = getelementptr inbounds [50 x [50 x i32]], ptr @a, i64 0, i64 %indvars.iv146, i64 %indvars.iv142
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = getelementptr inbounds [50 x [50 x i32]], ptr @b, i64 0, i64 %53, i64 %63
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp eq i32 %68, 1
  %72 = icmp eq i32 %70, 1
  %or.cond55.us.us.us.us.us.us = and i1 %71, %72
  br i1 %or.cond55.us.us.us.us.us.us, label %73, label %75

73:                                               ; preds = %66
  %74 = add nsw i32 %62, 1
  br label %75

75:                                               ; preds = %73, %66, %.lr.ph70.split.us.us.us.us.us.us
  %76 = phi i32 [ %59, %.lr.ph70.split.us.us.us.us.us.us ], [ %74, %73 ], [ %59, %66 ]
  %77 = phi i32 [ %60, %.lr.ph70.split.us.us.us.us.us.us ], [ %74, %73 ], [ %60, %66 ]
  %78 = phi i32 [ %61, %.lr.ph70.split.us.us.us.us.us.us ], [ %74, %73 ], [ %61, %66 ]
  %79 = phi i32 [ %62, %.lr.ph70.split.us.us.us.us.us.us ], [ %74, %73 ], [ %62, %66 ]
  %indvars.iv.next143 = add nuw nsw i64 %indvars.iv142, 1
  %exitcond145.not = icmp eq i64 %indvars.iv.next143, %wide.trip.count
  br i1 %exitcond145.not, label %._crit_edge71.us.us.us.us.us, label %.lr.ph70.split.us.us.us.us.us.us, !llvm.loop !15

._crit_edge74.split.us.us.us.us.us:               ; preds = %._crit_edge71.us.us.us.us.us
  %80 = icmp sgt i32 %57, %45
  br i1 %80, label %46, label %48

._crit_edge84.split.us.split.us.us.us:            ; preds = %48
  %indvars.iv.next156 = add nsw i64 %indvars.iv155, 1
  %lftr.wideiv158 = trunc i64 %indvars.iv.next156 to i32
  %exitcond159.not = icmp eq i32 %43, %lftr.wideiv158
  br i1 %exitcond159.not, label %._crit_edge112.split, label %.lr.ph83.us.us, !llvm.loop !16

.lr.ph83.us:                                      ; preds = %.lr.ph83.us.preheader, %._crit_edge84.split.us.split.us119
  %.042107.us113 = phi i32 [ %90, %._crit_edge84.split.us.split.us119 ], [ %26, %.lr.ph83.us.preheader ]
  %.lcssa78.us.us104106.us114 = phi i32 [ %.lcssa78.us.us99.us.lcssa, %._crit_edge84.split.us.split.us119 ], [ %res.promoted94, %.lr.ph83.us.preheader ]
  %81 = icmp slt i32 %.lcssa78.us.us104106.us114, 0
  br i1 %81, label %82, label %.preheader.lr.ph.us.us116.prol.loopexit

82:                                               ; preds = %.lr.ph83.us
  store i32 0, ptr @res, align 4, !tbaa !5
  store i32 %.042107.us113, ptr @x, align 4, !tbaa !5
  store i32 %27, ptr @y, align 4, !tbaa !5
  br label %.preheader.lr.ph.us.us116.prol.loopexit

.preheader.lr.ph.us.us116.prol.loopexit:          ; preds = %.lr.ph83.us, %82
  %83 = phi i32 [ %.lcssa78.us.us104106.us114, %.lr.ph83.us ], [ 0, %82 ]
  br i1 %37, label %._crit_edge84.split.us.split.us119, label %.preheader.lr.ph.us.us116

.preheader.lr.ph.us.us116:                        ; preds = %.preheader.lr.ph.us.us116.prol.loopexit, %.preheader.lr.ph.us.us116.1
  %.lcssa78.us.us100.us = phi i32 [ %.lcssa78.us.us99.us, %.preheader.lr.ph.us.us116.1 ], [ %83, %.preheader.lr.ph.us.us116.prol.loopexit ]
  %.04180.us.us117 = phi i32 [ %89, %.preheader.lr.ph.us.us116.1 ], [ %36, %.preheader.lr.ph.us.us116.prol.loopexit ]
  %84 = phi i32 [ %87, %.preheader.lr.ph.us.us116.1 ], [ %83, %.preheader.lr.ph.us.us116.prol.loopexit ]
  %85 = icmp slt i32 %84, 0
  br i1 %85, label %86, label %.preheader.lr.ph.us.us116.1

86:                                               ; preds = %.preheader.lr.ph.us.us116
  store i32 0, ptr @res, align 4, !tbaa !5
  store i32 %.042107.us113, ptr @x, align 4, !tbaa !5
  store i32 %.04180.us.us117, ptr @y, align 4, !tbaa !5
  br label %.preheader.lr.ph.us.us116.1

.preheader.lr.ph.us.us116.1:                      ; preds = %.preheader.lr.ph.us.us116, %86
  %.lcssa78.us.us99.us = phi i32 [ %.lcssa78.us.us100.us, %.preheader.lr.ph.us.us116 ], [ 0, %86 ]
  %87 = phi i32 [ %84, %.preheader.lr.ph.us.us116 ], [ 0, %86 ]
  %88 = add i32 %.04180.us.us117, 1
  %89 = add i32 %.04180.us.us117, 2
  %exitcond140.not.1 = icmp eq i32 %88, %24
  br i1 %exitcond140.not.1, label %._crit_edge84.split.us.split.us119, label %.preheader.lr.ph.us.us116, !llvm.loop !13

._crit_edge84.split.us.split.us119:               ; preds = %.preheader.lr.ph.us.us116.1, %.preheader.lr.ph.us.us116.prol.loopexit
  %.lcssa78.us.us99.us.lcssa = phi i32 [ %83, %.preheader.lr.ph.us.us116.prol.loopexit ], [ %.lcssa78.us.us99.us, %.preheader.lr.ph.us.us116.1 ]
  %90 = add i32 %.042107.us113, 1
  %exitcond141.not = icmp eq i32 %.042107.us113, %25
  br i1 %exitcond141.not, label %._crit_edge112.split, label %.lr.ph83.us, !llvm.loop !16

.lr.ph67:                                         ; preds = %._crit_edge60, %._crit_edge64
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %._crit_edge64 ], [ 0, %._crit_edge60 ]
  %91 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11)
  %92 = load i32, ptr @m2, align 4, !tbaa !5
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %.lr.ph63, label %._crit_edge64

._crit_edge64:                                    ; preds = %.lr.ph63, %.lr.ph67
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %94 = load i32, ptr @n2, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next137, %95
  br i1 %96, label %.lr.ph67, label %._crit_edge68, !llvm.loop !17

.lr.ph63:                                         ; preds = %.lr.ph67, %.lr.ph63
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.lr.ph63 ], [ 0, %.lr.ph67 ]
  %97 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11, i64 noundef %indvars.iv133)
  %98 = load i8, ptr %97, align 1, !tbaa !11
  %99 = sext i8 %98 to i32
  %100 = add nsw i32 %99, -48
  %101 = getelementptr inbounds [50 x [50 x i32]], ptr @b, i64 0, i64 %indvars.iv136, i64 %indvars.iv133
  store i32 %100, ptr %101, align 4, !tbaa !5
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %102 = load i32, ptr @m2, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = icmp slt i64 %indvars.iv.next134, %103
  br i1 %104, label %.lr.ph63, label %._crit_edge64, !llvm.loop !18

._crit_edge112.split:                             ; preds = %._crit_edge84.split, %._crit_edge84.split.us.split.us119, %._crit_edge84.split.us.split.us.us.us
  %.us-phi121 = phi i32 [ %56, %._crit_edge84.split.us.split.us.us.us ], [ 0, %._crit_edge84.split.us.split.us119 ], [ 0, %._crit_edge84.split ]
  store i32 %.us-phi121, ptr @cnt, align 4, !tbaa !5
  br label %._crit_edge112

._crit_edge112:                                   ; preds = %.lr.ph111, %._crit_edge112.split, %._crit_edge68
  %105 = load i32, ptr @x, align 4, !tbaa !5
  %106 = load i32, ptr @y, align 4, !tbaa !5
  %107 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %105, i32 noundef %106)
  ret i32 0

.lr.ph83:                                         ; preds = %.lr.ph83.preheader, %._crit_edge84.split
  %.042107 = phi i32 [ %111, %._crit_edge84.split ], [ %26, %.lr.ph83.preheader ]
  %.lcssa78.us.us104106 = phi i32 [ %.lcssa78.us.us96.lcssa, %._crit_edge84.split ], [ %res.promoted94, %.lr.ph83.preheader ]
  %108 = icmp slt i32 %.lcssa78.us.us104106, 0
  br i1 %108, label %109, label %.prol.loopexit

109:                                              ; preds = %.lr.ph83
  store i32 0, ptr @res, align 4, !tbaa !5
  store i32 %.042107, ptr @x, align 4, !tbaa !5
  store i32 %27, ptr @y, align 4, !tbaa !5
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.lr.ph83, %109
  %110 = phi i32 [ %.lcssa78.us.us104106, %.lr.ph83 ], [ 0, %109 ]
  br i1 %35, label %._crit_edge84.split, label %.lr.ph83.new

._crit_edge84.split:                              ; preds = %115, %.prol.loopexit
  %.lcssa78.us.us96.lcssa = phi i32 [ %110, %.prol.loopexit ], [ %.lcssa78.us.us96, %115 ]
  %111 = add i32 %.042107, 1
  %exitcond139.not = icmp eq i32 %.042107, %25
  br i1 %exitcond139.not, label %._crit_edge112.split, label %.lr.ph83, !llvm.loop !16

.lr.ph83.new:                                     ; preds = %.prol.loopexit, %115
  %.lcssa78.us.us97 = phi i32 [ %.lcssa78.us.us96, %115 ], [ %110, %.prol.loopexit ]
  %.04180 = phi i32 [ %118, %115 ], [ %34, %.prol.loopexit ]
  %112 = phi i32 [ %116, %115 ], [ %110, %.prol.loopexit ]
  %113 = icmp slt i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %.lr.ph83.new
  store i32 0, ptr @res, align 4, !tbaa !5
  store i32 %.042107, ptr @x, align 4, !tbaa !5
  store i32 %.04180, ptr @y, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %.lr.ph83.new, %114
  %.lcssa78.us.us96 = phi i32 [ %.lcssa78.us.us97, %.lr.ph83.new ], [ 0, %114 ]
  %116 = phi i32 [ %112, %.lr.ph83.new ], [ 0, %114 ]
  %117 = add i32 %.04180, 1
  %118 = add i32 %.04180, 2
  %exitcond.not.1 = icmp eq i32 %117, %24
  br i1 %exitcond.not.1, label %._crit_edge84.split, label %.lr.ph83.new, !llvm.loop !13
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 = { 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 = { "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 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 = { inlinehint mustprogress 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" }

!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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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