; LLVM IR from kazunetakahashi/atcoder :: 201610_12/1224_xmaxcon16/E.ll (Z5solvev)

; 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::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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@A = external dso_local global [30 x [50 x i32]], align 16
@ans = external dso_local global [50 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca [4 x i32], align 16
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %33, %0
  %13 = load i32, ptr %1, align 4, !tbaa !5
  %14 = icmp slt i32 %13, 30
  br i1 %14, label %16, label %15

15:                                               ; preds = %12
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %36

16:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %29, %16
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = icmp slt i32 %18, 50
  br i1 %19, label %21, label %20

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

21:                                               ; preds = %17
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %23
  %25 = load i32, ptr %3, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [50 x i32], ptr %24, i64 0, i64 %26
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %27)
  br label %29

29:                                               ; preds = %21
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !5
  br label %17, !llvm.loop !9

32:                                               ; preds = %20
  br label %33

33:                                               ; preds = %32
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %1, align 4, !tbaa !5
  br label %12, !llvm.loop !11

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

37:                                               ; preds = %91, %36
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = icmp slt i32 %38, 50
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %94

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  %42 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 0
  %43 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 0
  %44 = getelementptr inbounds i32, ptr %43, i64 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %42, ptr noundef %44, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %61, %41
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = icmp slt i32 %46, 30
  br i1 %47, label %49, label %48

48:                                               ; preds = %45
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %64

49:                                               ; preds = %45
  %50 = load i32, ptr %7, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %51
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [50 x i32], ptr %52, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %49
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %7, align 4, !tbaa !5
  br label %45, !llvm.loop !12

64:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %65

65:                                               ; preds = %83, %64
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = icmp slt i32 %66, 4
  br i1 %67, label %69, label %68

68:                                               ; preds = %65
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %86

69:                                               ; preds = %65
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = load i32, ptr %10, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !5
  %75 = icmp slt i32 %70, %74
  br i1 %75, label %76, label %82

76:                                               ; preds = %69
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [4 x i32], ptr %5, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !5
  store i32 %80, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %81, ptr %9, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %76, %69
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %10, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %10, align 4, !tbaa !5
  br label %65, !llvm.loop !13

86:                                               ; preds = %68
  %87 = load i32, ptr %9, align 4, !tbaa !5
  %88 = load i32, ptr %4, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [50 x i32], ptr @ans, i64 0, i64 %89
  store i32 %87, ptr %90, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  br label %91

91:                                               ; preds = %86
  %92 = load i32, ptr %4, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %4, align 4, !tbaa !5
  br label %37, !llvm.loop !14

94:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %112, %94
  %96 = load i32, ptr %11, align 4, !tbaa !5
  %97 = icmp slt i32 %96, 50
  br i1 %97, label %99, label %98

98:                                               ; preds = %95
  store i32 17, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %115

99:                                               ; preds = %95
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [50 x i32], ptr @ans, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %103)
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = icmp slt i32 %105, 49
  br i1 %106, label %107, label %109

107:                                              ; preds = %99
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %111

109:                                              ; preds = %99
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %111

111:                                              ; preds = %109, %107
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %11, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %11, align 4, !tbaa !5
  br label %95, !llvm.loop !15

115:                                              ; preds = %98
  ret void
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { inlinehint mustprogress 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 = { 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; 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::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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@A = external dso_local global [30 x [50 x i32]], align 16
@ans = external dso_local local_unnamed_addr global [50 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca [4 x i32], align 16
  %2 = alloca i32, align 4
  br label %.preheader36

.preheader36:                                     ; preds = %0, %.preheader36
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %.preheader36 ]
  %3 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 0
  %4 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %5 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 1
  %6 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %7 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 2
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %9 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 3
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %11 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 4
  %12 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %13 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 5
  %14 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %15 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 6
  %16 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 7
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %19 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 8
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %21 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 9
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %23 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 10
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 11
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 12
  %28 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %29 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 13
  %30 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %31 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 14
  %32 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %31)
  %33 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 15
  %34 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %33)
  %35 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 16
  %36 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 17
  %38 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %37)
  %39 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 18
  %40 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %39)
  %41 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 19
  %42 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %43 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 20
  %44 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %43)
  %45 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 21
  %46 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %47 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 22
  %48 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %49 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 23
  %50 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %49)
  %51 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 24
  %52 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %51)
  %53 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 25
  %54 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %53)
  %55 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 26
  %56 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %55)
  %57 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 27
  %58 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %57)
  %59 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 28
  %60 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %59)
  %61 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 29
  %62 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %61)
  %63 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 30
  %64 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %63)
  %65 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 31
  %66 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %65)
  %67 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 32
  %68 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %67)
  %69 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 33
  %70 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %69)
  %71 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 34
  %72 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %71)
  %73 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 35
  %74 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %73)
  %75 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 36
  %76 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %75)
  %77 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 37
  %78 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %77)
  %79 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 38
  %80 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %79)
  %81 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 39
  %82 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %81)
  %83 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 40
  %84 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %83)
  %85 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 41
  %86 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %85)
  %87 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 42
  %88 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %87)
  %89 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 43
  %90 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %89)
  %91 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 44
  %92 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %91)
  %93 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 45
  %94 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %93)
  %95 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 46
  %96 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %95)
  %97 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 47
  %98 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %97)
  %99 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 48
  %100 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %99)
  %101 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 %indvars.iv, i64 49
  %102 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %101)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 30
  br i1 %exitcond.not, label %.preheader35, label %.preheader36, !llvm.loop !5

.preheader35:                                     ; preds = %.preheader36
  %103 = getelementptr inbounds i8, ptr %1, i64 16
  %104 = getelementptr inbounds i8, ptr %1, i64 4
  %105 = getelementptr inbounds i8, ptr %1, i64 8
  %106 = getelementptr inbounds i8, ptr %1, i64 12
  br label %.preheader34.preheader

.preheader34.preheader:                           ; preds = %.preheader35, %.preheader34.preheader
  %indvars.iv55 = phi i64 [ 0, %.preheader35 ], [ %indvars.iv.next56, %.preheader34.preheader ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  store i32 0, ptr %2, align 4, !tbaa !7
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %1, ptr noundef nonnull %103, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  %107 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 0, i64 %indvars.iv55
  %108 = load i32, ptr %107, align 4, !tbaa !7
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !7
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %110, align 4, !tbaa !7
  %113 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 1, i64 %indvars.iv55
  %114 = load i32, ptr %113, align 4, !tbaa !7
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %115
  %117 = load i32, ptr %116, align 4, !tbaa !7
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %116, align 4, !tbaa !7
  %119 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 2, i64 %indvars.iv55
  %120 = load i32, ptr %119, align 4, !tbaa !7
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !7
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 4, !tbaa !7
  %125 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 3, i64 %indvars.iv55
  %126 = load i32, ptr %125, align 4, !tbaa !7
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %127
  %129 = load i32, ptr %128, align 4, !tbaa !7
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %128, align 4, !tbaa !7
  %131 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 4, i64 %indvars.iv55
  %132 = load i32, ptr %131, align 4, !tbaa !7
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !7
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %134, align 4, !tbaa !7
  %137 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 5, i64 %indvars.iv55
  %138 = load i32, ptr %137, align 4, !tbaa !7
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !7
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %140, align 4, !tbaa !7
  %143 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 6, i64 %indvars.iv55
  %144 = load i32, ptr %143, align 4, !tbaa !7
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %145
  %147 = load i32, ptr %146, align 4, !tbaa !7
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %146, align 4, !tbaa !7
  %149 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 7, i64 %indvars.iv55
  %150 = load i32, ptr %149, align 4, !tbaa !7
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !7
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %152, align 4, !tbaa !7
  %155 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 8, i64 %indvars.iv55
  %156 = load i32, ptr %155, align 4, !tbaa !7
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %157
  %159 = load i32, ptr %158, align 4, !tbaa !7
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %158, align 4, !tbaa !7
  %161 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 9, i64 %indvars.iv55
  %162 = load i32, ptr %161, align 4, !tbaa !7
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !7
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %164, align 4, !tbaa !7
  %167 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 10, i64 %indvars.iv55
  %168 = load i32, ptr %167, align 4, !tbaa !7
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !7
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 4, !tbaa !7
  %173 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 11, i64 %indvars.iv55
  %174 = load i32, ptr %173, align 4, !tbaa !7
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !7
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %176, align 4, !tbaa !7
  %179 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 12, i64 %indvars.iv55
  %180 = load i32, ptr %179, align 4, !tbaa !7
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !7
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %182, align 4, !tbaa !7
  %185 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 13, i64 %indvars.iv55
  %186 = load i32, ptr %185, align 4, !tbaa !7
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %187
  %189 = load i32, ptr %188, align 4, !tbaa !7
  %190 = add nsw i32 %189, 1
  store i32 %190, ptr %188, align 4, !tbaa !7
  %191 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 14, i64 %indvars.iv55
  %192 = load i32, ptr %191, align 4, !tbaa !7
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !7
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %194, align 4, !tbaa !7
  %197 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 15, i64 %indvars.iv55
  %198 = load i32, ptr %197, align 4, !tbaa !7
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %199
  %201 = load i32, ptr %200, align 4, !tbaa !7
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %200, align 4, !tbaa !7
  %203 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 16, i64 %indvars.iv55
  %204 = load i32, ptr %203, align 4, !tbaa !7
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !7
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %206, align 4, !tbaa !7
  %209 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 17, i64 %indvars.iv55
  %210 = load i32, ptr %209, align 4, !tbaa !7
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %211
  %213 = load i32, ptr %212, align 4, !tbaa !7
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %212, align 4, !tbaa !7
  %215 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 18, i64 %indvars.iv55
  %216 = load i32, ptr %215, align 4, !tbaa !7
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !7
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %218, align 4, !tbaa !7
  %221 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 19, i64 %indvars.iv55
  %222 = load i32, ptr %221, align 4, !tbaa !7
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !7
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %224, align 4, !tbaa !7
  %227 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 20, i64 %indvars.iv55
  %228 = load i32, ptr %227, align 4, !tbaa !7
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %229
  %231 = load i32, ptr %230, align 4, !tbaa !7
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %230, align 4, !tbaa !7
  %233 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 21, i64 %indvars.iv55
  %234 = load i32, ptr %233, align 4, !tbaa !7
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !7
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %236, align 4, !tbaa !7
  %239 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 22, i64 %indvars.iv55
  %240 = load i32, ptr %239, align 4, !tbaa !7
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %241
  %243 = load i32, ptr %242, align 4, !tbaa !7
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %242, align 4, !tbaa !7
  %245 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 23, i64 %indvars.iv55
  %246 = load i32, ptr %245, align 4, !tbaa !7
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %247
  %249 = load i32, ptr %248, align 4, !tbaa !7
  %250 = add nsw i32 %249, 1
  store i32 %250, ptr %248, align 4, !tbaa !7
  %251 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 24, i64 %indvars.iv55
  %252 = load i32, ptr %251, align 4, !tbaa !7
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %253
  %255 = load i32, ptr %254, align 4, !tbaa !7
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %254, align 4, !tbaa !7
  %257 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 25, i64 %indvars.iv55
  %258 = load i32, ptr %257, align 4, !tbaa !7
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !7
  %262 = add nsw i32 %261, 1
  store i32 %262, ptr %260, align 4, !tbaa !7
  %263 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 26, i64 %indvars.iv55
  %264 = load i32, ptr %263, align 4, !tbaa !7
  %265 = sext i32 %264 to i64
  %266 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %265
  %267 = load i32, ptr %266, align 4, !tbaa !7
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %266, align 4, !tbaa !7
  %269 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 27, i64 %indvars.iv55
  %270 = load i32, ptr %269, align 4, !tbaa !7
  %271 = sext i32 %270 to i64
  %272 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %271
  %273 = load i32, ptr %272, align 4, !tbaa !7
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %272, align 4, !tbaa !7
  %275 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 28, i64 %indvars.iv55
  %276 = load i32, ptr %275, align 4, !tbaa !7
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %277
  %279 = load i32, ptr %278, align 4, !tbaa !7
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %278, align 4, !tbaa !7
  %281 = getelementptr inbounds [30 x [50 x i32]], ptr @A, i64 0, i64 29, i64 %indvars.iv55
  %282 = load i32, ptr %281, align 4, !tbaa !7
  %283 = sext i32 %282 to i64
  %284 = getelementptr inbounds [4 x i32], ptr %1, i64 0, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !7
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %284, align 4, !tbaa !7
  %287 = load i32, ptr %1, align 16, !tbaa !7
  %spec.select = call i32 @llvm.smax.i32(i32 %287, i32 0)
  %288 = load i32, ptr %104, align 4, !tbaa !7
  %289 = icmp slt i32 %spec.select, %288
  %spec.select.1 = call i32 @llvm.smax.i32(i32 %spec.select, i32 %288)
  %spec.select33.1 = zext i1 %289 to i32
  %290 = load i32, ptr %105, align 8, !tbaa !7
  %291 = icmp slt i32 %spec.select.1, %290
  %spec.select.2 = call i32 @llvm.smax.i32(i32 %spec.select.1, i32 %290)
  %spec.select33.2 = select i1 %291, i32 2, i32 %spec.select33.1
  %292 = load i32, ptr %106, align 4, !tbaa !7
  %293 = icmp slt i32 %spec.select.2, %292
  %spec.select33.3 = select i1 %293, i32 3, i32 %spec.select33.2
  %294 = getelementptr inbounds [50 x i32], ptr @ans, i64 0, i64 %indvars.iv55
  store i32 %spec.select33.3, ptr %294, align 4, !tbaa !7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next56, 50
  br i1 %exitcond58.not, label %.preheader.preheader, label %.preheader34.preheader, !llvm.loop !11

.preheader.preheader:                             ; preds = %.preheader34.preheader
  %295 = load i32, ptr @ans, align 16, !tbaa !7
  %296 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %295)
  br label %.preheader

297:                                              ; preds = %.preheader
  %298 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret void

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv5965 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next60, %.preheader ]
  %299 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv5965, 1
  %300 = getelementptr inbounds [50 x i32], ptr @ans, i64 0, i64 %indvars.iv.next60
  %301 = load i32, ptr %300, align 4, !tbaa !7
  %302 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %301)
  %.not = icmp eq i64 %indvars.iv.next60, 49
  br i1 %.not, label %297, label %.preheader
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}


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