; LLVM IR from AdarshGaur/Competitive-Programming :: Atcoder/Random Problems (D - aab aba baa)

; 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" }
%"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::allocator" = type { i8 }

@_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 norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca [31 x [31 x i64]], align 16
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.std::allocator", align 1
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::allocator", align 1
  store i32 0, ptr %1, align 4
  %17 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %18 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %19 = getelementptr i8, ptr %18, i64 -24
  %20 = load i64, ptr %19, align 8
  %21 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %20
  %22 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %21, ptr noundef null)
  %23 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %24 = getelementptr i8, ptr %23, i64 -24
  %25 = load i64, ptr %24, align 8
  %26 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %25
  %27 = call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %26, i64 noundef 20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.start.p0(i64 7688, ptr %5) #6
  %31 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 0
  %32 = getelementptr inbounds [31 x i64], ptr %31, i64 0, i64 0
  store i64 0, ptr %32, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 1, ptr %6, align 8, !tbaa !8
  br label %33

33:                                               ; preds = %44, %0
  %34 = load i64, ptr %6, align 8, !tbaa !8
  %35 = icmp slt i64 %34, 31
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %47

37:                                               ; preds = %33
  %38 = load i64, ptr %6, align 8, !tbaa !8
  %39 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %38
  %40 = getelementptr inbounds [31 x i64], ptr %39, i64 0, i64 0
  store i64 1, ptr %40, align 8, !tbaa !8
  %41 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 0
  %42 = load i64, ptr %6, align 8, !tbaa !8
  %43 = getelementptr inbounds [31 x i64], ptr %41, i64 0, i64 %42
  store i64 1, ptr %43, align 8, !tbaa !8
  br label %44

44:                                               ; preds = %37
  %45 = load i64, ptr %6, align 8, !tbaa !8
  %46 = add nsw i64 %45, 1
  store i64 %46, ptr %6, align 8, !tbaa !8
  br label %33, !llvm.loop !11

47:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 1, ptr %7, align 8, !tbaa !8
  br label %48

48:                                               ; preds = %79, %47
  %49 = load i64, ptr %7, align 8, !tbaa !8
  %50 = icmp slt i64 %49, 31
  br i1 %50, label %52, label %51

51:                                               ; preds = %48
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %82

52:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 1, ptr %9, align 8, !tbaa !8
  br label %53

53:                                               ; preds = %75, %52
  %54 = load i64, ptr %9, align 8, !tbaa !8
  %55 = icmp slt i64 %54, 31
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %78

57:                                               ; preds = %53
  %58 = load i64, ptr %7, align 8, !tbaa !8
  %59 = sub nsw i64 %58, 1
  %60 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %59
  %61 = load i64, ptr %9, align 8, !tbaa !8
  %62 = getelementptr inbounds [31 x i64], ptr %60, i64 0, i64 %61
  %63 = load i64, ptr %62, align 8, !tbaa !8
  %64 = load i64, ptr %7, align 8, !tbaa !8
  %65 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %64
  %66 = load i64, ptr %9, align 8, !tbaa !8
  %67 = sub nsw i64 %66, 1
  %68 = getelementptr inbounds [31 x i64], ptr %65, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = add nsw i64 %63, %69
  %71 = load i64, ptr %7, align 8, !tbaa !8
  %72 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %71
  %73 = load i64, ptr %9, align 8, !tbaa !8
  %74 = getelementptr inbounds [31 x i64], ptr %72, i64 0, i64 %73
  store i64 %70, ptr %74, align 8, !tbaa !8
  br label %75

75:                                               ; preds = %57
  %76 = load i64, ptr %9, align 8, !tbaa !8
  %77 = add nsw i64 %76, 1
  store i64 %77, ptr %9, align 8, !tbaa !8
  br label %53, !llvm.loop !13

78:                                               ; preds = %56
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %7, align 8, !tbaa !8
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %7, align 8, !tbaa !8
  br label %48, !llvm.loop !14

82:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  br label %83

83:                                               ; preds = %123, %82
  %84 = load i64, ptr %4, align 8, !tbaa !8
  %85 = icmp sgt i64 %84, 0
  br i1 %85, label %86, label %124

86:                                               ; preds = %83
  %87 = load i64, ptr %2, align 8, !tbaa !8
  %88 = icmp eq i64 %87, 0
  br i1 %88, label %92, label %89

89:                                               ; preds = %86
  %90 = load i64, ptr %3, align 8, !tbaa !8
  %91 = icmp eq i64 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %89, %86
  br label %124

93:                                               ; preds = %89
  %94 = load i64, ptr %4, align 8, !tbaa !8
  %95 = load i64, ptr %2, align 8, !tbaa !8
  %96 = sub nsw i64 %95, 1
  %97 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %96
  %98 = load i64, ptr %3, align 8, !tbaa !8
  %99 = getelementptr inbounds [31 x i64], ptr %97, i64 0, i64 %98
  %100 = load i64, ptr %99, align 8, !tbaa !8
  %101 = icmp sgt i64 %94, %100
  br i1 %101, label %102, label %118

102:                                              ; preds = %93
  %103 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 98)
          to label %104 unwind label %114

104:                                              ; preds = %102
  %105 = load i64, ptr %2, align 8, !tbaa !8
  %106 = sub nsw i64 %105, 1
  %107 = getelementptr inbounds [31 x [31 x i64]], ptr %5, i64 0, i64 %106
  %108 = load i64, ptr %3, align 8, !tbaa !8
  %109 = add nsw i64 %108, -1
  store i64 %109, ptr %3, align 8, !tbaa !8
  %110 = getelementptr inbounds [31 x i64], ptr %107, i64 0, i64 %108
  %111 = load i64, ptr %110, align 8, !tbaa !8
  %112 = load i64, ptr %4, align 8, !tbaa !8
  %113 = sub nsw i64 %112, %111
  store i64 %113, ptr %4, align 8, !tbaa !8
  br label %123

114:                                              ; preds = %134, %132, %118, %102
  %115 = landingpad { ptr, i32 }
          cleanup
  %116 = extractvalue { ptr, i32 } %115, 0
  store ptr %116, ptr %11, align 8
  %117 = extractvalue { ptr, i32 } %115, 1
  store i32 %117, ptr %12, align 4
  br label %156

118:                                              ; preds = %93
  %119 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %10, i8 noundef signext 97)
          to label %120 unwind label %114

120:                                              ; preds = %118
  %121 = load i64, ptr %2, align 8, !tbaa !8
  %122 = add nsw i64 %121, -1
  store i64 %122, ptr %2, align 8, !tbaa !8
  br label %123

123:                                              ; preds = %120, %104
  br label %83, !llvm.loop !15

124:                                              ; preds = %92, %83
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #6
  %125 = load i64, ptr %2, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %13, i64 noundef %125, i8 noundef signext 97, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %126 unwind label %138

126:                                              ; preds = %124
  %127 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %128 unwind label %142

128:                                              ; preds = %126
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #6
  %129 = load i64, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef %129, i8 noundef signext 98, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %130 unwind label %147

130:                                              ; preds = %128
  %131 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %132 unwind label %151

132:                                              ; preds = %130
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %134 unwind label %114

134:                                              ; preds = %132
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef @.str)
          to label %136 unwind label %114

136:                                              ; preds = %134
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 7688, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %137 = load i32, ptr %1, align 4
  ret i32 %137

138:                                              ; preds = %124
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %11, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %12, align 4
  br label %146

142:                                              ; preds = %126
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %11, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #6
  br label %146

146:                                              ; preds = %142, %138
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #6
  br label %156

147:                                              ; preds = %128
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %11, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %12, align 4
  br label %155

151:                                              ; preds = %130
  %152 = landingpad { ptr, i32 }
          cleanup
  %153 = extractvalue { ptr, i32 } %152, 0
  store ptr %153, ptr %11, align 8
  %154 = extractvalue { ptr, i32 } %152, 1
  store i32 %154, ptr %12, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #6
  br label %155

155:                                              ; preds = %151, %147
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %16) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #6
  br label %156

156:                                              ; preds = %155, %146, %114
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 7688, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %11, align 8
  %159 = load i32, ptr %12, align 4
  %160 = insertvalue { ptr, i32 } poison, ptr %158, 0
  %161 = insertvalue { ptr, i32 } %160, i32 %159, 1
  resume { ptr, i32 } %161
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i8 noundef signext, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 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) #5

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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


; 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" }
%"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::allocator" = type { i8 }

@_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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
.preheader.preheader:
  %0 = alloca i64, align 8
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca [31 x [31 x i64]], align 16
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  %15 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %17
  %19 = tail call noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216) %18, i64 noundef 20)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %0)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %22 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(8) %2)
  call void @llvm.lifetime.start.p0(i64 7688, ptr nonnull %3) #6
  store i64 0, ptr %3, align 16, !tbaa !8
  %23 = getelementptr inbounds i8, ptr %3, i64 248
  store i64 1, ptr %23, align 8, !tbaa !8
  %24 = getelementptr inbounds i8, ptr %3, i64 8
  store i64 1, ptr %24, align 8, !tbaa !8
  %25 = getelementptr inbounds i8, ptr %3, i64 496
  store i64 1, ptr %25, align 16, !tbaa !8
  %26 = getelementptr inbounds i8, ptr %3, i64 16
  store i64 1, ptr %26, align 16, !tbaa !8
  %27 = getelementptr inbounds i8, ptr %3, i64 744
  store i64 1, ptr %27, align 8, !tbaa !8
  %28 = getelementptr inbounds i8, ptr %3, i64 24
  store i64 1, ptr %28, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %3, i64 992
  store i64 1, ptr %29, align 16, !tbaa !8
  %30 = getelementptr inbounds i8, ptr %3, i64 32
  store i64 1, ptr %30, align 16, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %3, i64 1240
  store i64 1, ptr %31, align 8, !tbaa !8
  %32 = getelementptr inbounds i8, ptr %3, i64 40
  store i64 1, ptr %32, align 8, !tbaa !8
  %33 = getelementptr inbounds i8, ptr %3, i64 1488
  store i64 1, ptr %33, align 16, !tbaa !8
  %34 = getelementptr inbounds i8, ptr %3, i64 48
  store i64 1, ptr %34, align 16, !tbaa !8
  %35 = getelementptr inbounds i8, ptr %3, i64 1736
  store i64 1, ptr %35, align 8, !tbaa !8
  %36 = getelementptr inbounds i8, ptr %3, i64 56
  store i64 1, ptr %36, align 8, !tbaa !8
  %37 = getelementptr inbounds i8, ptr %3, i64 1984
  store i64 1, ptr %37, align 16, !tbaa !8
  %38 = getelementptr inbounds i8, ptr %3, i64 64
  store i64 1, ptr %38, align 16, !tbaa !8
  %39 = getelementptr inbounds i8, ptr %3, i64 2232
  store i64 1, ptr %39, align 8, !tbaa !8
  %40 = getelementptr inbounds i8, ptr %3, i64 72
  store i64 1, ptr %40, align 8, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %3, i64 2480
  store i64 1, ptr %41, align 16, !tbaa !8
  %42 = getelementptr inbounds i8, ptr %3, i64 80
  store i64 1, ptr %42, align 16, !tbaa !8
  %43 = getelementptr inbounds i8, ptr %3, i64 2728
  store i64 1, ptr %43, align 8, !tbaa !8
  %44 = getelementptr inbounds i8, ptr %3, i64 88
  store i64 1, ptr %44, align 8, !tbaa !8
  %45 = getelementptr inbounds i8, ptr %3, i64 2976
  store i64 1, ptr %45, align 16, !tbaa !8
  %46 = getelementptr inbounds i8, ptr %3, i64 96
  store i64 1, ptr %46, align 16, !tbaa !8
  %47 = getelementptr inbounds i8, ptr %3, i64 3224
  store i64 1, ptr %47, align 8, !tbaa !8
  %48 = getelementptr inbounds i8, ptr %3, i64 104
  store i64 1, ptr %48, align 8, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %3, i64 3472
  store i64 1, ptr %49, align 16, !tbaa !8
  %50 = getelementptr inbounds i8, ptr %3, i64 112
  store i64 1, ptr %50, align 16, !tbaa !8
  %51 = getelementptr inbounds i8, ptr %3, i64 3720
  store i64 1, ptr %51, align 8, !tbaa !8
  %52 = getelementptr inbounds i8, ptr %3, i64 120
  store i64 1, ptr %52, align 8, !tbaa !8
  %53 = getelementptr inbounds i8, ptr %3, i64 3968
  store i64 1, ptr %53, align 16, !tbaa !8
  %54 = getelementptr inbounds i8, ptr %3, i64 128
  store i64 1, ptr %54, align 16, !tbaa !8
  %55 = getelementptr inbounds i8, ptr %3, i64 4216
  store i64 1, ptr %55, align 8, !tbaa !8
  %56 = getelementptr inbounds i8, ptr %3, i64 136
  store i64 1, ptr %56, align 8, !tbaa !8
  %57 = getelementptr inbounds i8, ptr %3, i64 4464
  store i64 1, ptr %57, align 16, !tbaa !8
  %58 = getelementptr inbounds i8, ptr %3, i64 144
  store i64 1, ptr %58, align 16, !tbaa !8
  %59 = getelementptr inbounds i8, ptr %3, i64 4712
  store i64 1, ptr %59, align 8, !tbaa !8
  %60 = getelementptr inbounds i8, ptr %3, i64 152
  store i64 1, ptr %60, align 8, !tbaa !8
  %61 = getelementptr inbounds i8, ptr %3, i64 4960
  store i64 1, ptr %61, align 16, !tbaa !8
  %62 = getelementptr inbounds i8, ptr %3, i64 160
  store i64 1, ptr %62, align 16, !tbaa !8
  %63 = getelementptr inbounds i8, ptr %3, i64 5208
  store i64 1, ptr %63, align 8, !tbaa !8
  %64 = getelementptr inbounds i8, ptr %3, i64 168
  store i64 1, ptr %64, align 8, !tbaa !8
  %65 = getelementptr inbounds i8, ptr %3, i64 5456
  store i64 1, ptr %65, align 16, !tbaa !8
  %66 = getelementptr inbounds i8, ptr %3, i64 176
  store i64 1, ptr %66, align 16, !tbaa !8
  %67 = getelementptr inbounds i8, ptr %3, i64 5704
  store i64 1, ptr %67, align 8, !tbaa !8
  %68 = getelementptr inbounds i8, ptr %3, i64 184
  store i64 1, ptr %68, align 8, !tbaa !8
  %69 = getelementptr inbounds i8, ptr %3, i64 5952
  store i64 1, ptr %69, align 16, !tbaa !8
  %70 = getelementptr inbounds i8, ptr %3, i64 192
  store i64 1, ptr %70, align 16, !tbaa !8
  %71 = getelementptr inbounds i8, ptr %3, i64 6200
  store i64 1, ptr %71, align 8, !tbaa !8
  %72 = getelementptr inbounds i8, ptr %3, i64 200
  store i64 1, ptr %72, align 8, !tbaa !8
  %73 = getelementptr inbounds i8, ptr %3, i64 6448
  store i64 1, ptr %73, align 16, !tbaa !8
  %74 = getelementptr inbounds i8, ptr %3, i64 208
  store i64 1, ptr %74, align 16, !tbaa !8
  %75 = getelementptr inbounds i8, ptr %3, i64 6696
  store i64 1, ptr %75, align 8, !tbaa !8
  %76 = getelementptr inbounds i8, ptr %3, i64 216
  store i64 1, ptr %76, align 8, !tbaa !8
  %77 = getelementptr inbounds i8, ptr %3, i64 6944
  store i64 1, ptr %77, align 16, !tbaa !8
  %78 = getelementptr inbounds i8, ptr %3, i64 224
  store i64 1, ptr %78, align 16, !tbaa !8
  %79 = getelementptr inbounds i8, ptr %3, i64 7192
  store i64 1, ptr %79, align 8, !tbaa !8
  %80 = getelementptr inbounds i8, ptr %3, i64 232
  store i64 1, ptr %80, align 8, !tbaa !8
  %81 = getelementptr inbounds i8, ptr %3, i64 7440
  store i64 1, ptr %81, align 16, !tbaa !8
  %82 = getelementptr inbounds i8, ptr %3, i64 240
  store i64 1, ptr %82, align 16, !tbaa !8
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %.02134 = phi i64 [ %204, %.preheader ], [ 1, %.preheader.preheader ]
  %.phi.trans.insert = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 0
  %.pre = load i64, ptr %.phi.trans.insert, align 8, !tbaa !8
  %83 = add nsw i64 %.02134, -1
  %84 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 1
  %85 = load i64, ptr %84, align 8, !tbaa !8
  %86 = add nsw i64 %.pre, %85
  %87 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 1
  store i64 %86, ptr %87, align 8, !tbaa !8
  %88 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 2
  %89 = load i64, ptr %88, align 8, !tbaa !8
  %90 = add nsw i64 %86, %89
  %91 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 2
  store i64 %90, ptr %91, align 8, !tbaa !8
  %92 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 3
  %93 = load i64, ptr %92, align 8, !tbaa !8
  %94 = add nsw i64 %90, %93
  %95 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 3
  store i64 %94, ptr %95, align 8, !tbaa !8
  %96 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 4
  %97 = load i64, ptr %96, align 8, !tbaa !8
  %98 = add nsw i64 %94, %97
  %99 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 4
  store i64 %98, ptr %99, align 8, !tbaa !8
  %100 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 5
  %101 = load i64, ptr %100, align 8, !tbaa !8
  %102 = add nsw i64 %98, %101
  %103 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 5
  store i64 %102, ptr %103, align 8, !tbaa !8
  %104 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 6
  %105 = load i64, ptr %104, align 8, !tbaa !8
  %106 = add nsw i64 %102, %105
  %107 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 6
  store i64 %106, ptr %107, align 8, !tbaa !8
  %108 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 7
  %109 = load i64, ptr %108, align 8, !tbaa !8
  %110 = add nsw i64 %106, %109
  %111 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 7
  store i64 %110, ptr %111, align 8, !tbaa !8
  %112 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 8
  %113 = load i64, ptr %112, align 8, !tbaa !8
  %114 = add nsw i64 %110, %113
  %115 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 8
  store i64 %114, ptr %115, align 8, !tbaa !8
  %116 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 9
  %117 = load i64, ptr %116, align 8, !tbaa !8
  %118 = add nsw i64 %114, %117
  %119 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 9
  store i64 %118, ptr %119, align 8, !tbaa !8
  %120 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 10
  %121 = load i64, ptr %120, align 8, !tbaa !8
  %122 = add nsw i64 %118, %121
  %123 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 10
  store i64 %122, ptr %123, align 8, !tbaa !8
  %124 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 11
  %125 = load i64, ptr %124, align 8, !tbaa !8
  %126 = add nsw i64 %122, %125
  %127 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 11
  store i64 %126, ptr %127, align 8, !tbaa !8
  %128 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 12
  %129 = load i64, ptr %128, align 8, !tbaa !8
  %130 = add nsw i64 %126, %129
  %131 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 12
  store i64 %130, ptr %131, align 8, !tbaa !8
  %132 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 13
  %133 = load i64, ptr %132, align 8, !tbaa !8
  %134 = add nsw i64 %130, %133
  %135 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 13
  store i64 %134, ptr %135, align 8, !tbaa !8
  %136 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 14
  %137 = load i64, ptr %136, align 8, !tbaa !8
  %138 = add nsw i64 %134, %137
  %139 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 14
  store i64 %138, ptr %139, align 8, !tbaa !8
  %140 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 15
  %141 = load i64, ptr %140, align 8, !tbaa !8
  %142 = add nsw i64 %138, %141
  %143 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 15
  store i64 %142, ptr %143, align 8, !tbaa !8
  %144 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 16
  %145 = load i64, ptr %144, align 8, !tbaa !8
  %146 = add nsw i64 %142, %145
  %147 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 16
  store i64 %146, ptr %147, align 8, !tbaa !8
  %148 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 17
  %149 = load i64, ptr %148, align 8, !tbaa !8
  %150 = add nsw i64 %146, %149
  %151 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 17
  store i64 %150, ptr %151, align 8, !tbaa !8
  %152 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 18
  %153 = load i64, ptr %152, align 8, !tbaa !8
  %154 = add nsw i64 %150, %153
  %155 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 18
  store i64 %154, ptr %155, align 8, !tbaa !8
  %156 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 19
  %157 = load i64, ptr %156, align 8, !tbaa !8
  %158 = add nsw i64 %154, %157
  %159 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 19
  store i64 %158, ptr %159, align 8, !tbaa !8
  %160 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 20
  %161 = load i64, ptr %160, align 8, !tbaa !8
  %162 = add nsw i64 %158, %161
  %163 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 20
  store i64 %162, ptr %163, align 8, !tbaa !8
  %164 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 21
  %165 = load i64, ptr %164, align 8, !tbaa !8
  %166 = add nsw i64 %162, %165
  %167 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 21
  store i64 %166, ptr %167, align 8, !tbaa !8
  %168 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 22
  %169 = load i64, ptr %168, align 8, !tbaa !8
  %170 = add nsw i64 %166, %169
  %171 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 22
  store i64 %170, ptr %171, align 8, !tbaa !8
  %172 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 23
  %173 = load i64, ptr %172, align 8, !tbaa !8
  %174 = add nsw i64 %170, %173
  %175 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 23
  store i64 %174, ptr %175, align 8, !tbaa !8
  %176 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 24
  %177 = load i64, ptr %176, align 8, !tbaa !8
  %178 = add nsw i64 %174, %177
  %179 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 24
  store i64 %178, ptr %179, align 8, !tbaa !8
  %180 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 25
  %181 = load i64, ptr %180, align 8, !tbaa !8
  %182 = add nsw i64 %178, %181
  %183 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 25
  store i64 %182, ptr %183, align 8, !tbaa !8
  %184 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 26
  %185 = load i64, ptr %184, align 8, !tbaa !8
  %186 = add nsw i64 %182, %185
  %187 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 26
  store i64 %186, ptr %187, align 8, !tbaa !8
  %188 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 27
  %189 = load i64, ptr %188, align 8, !tbaa !8
  %190 = add nsw i64 %186, %189
  %191 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 27
  store i64 %190, ptr %191, align 8, !tbaa !8
  %192 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 28
  %193 = load i64, ptr %192, align 8, !tbaa !8
  %194 = add nsw i64 %190, %193
  %195 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 28
  store i64 %194, ptr %195, align 8, !tbaa !8
  %196 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 29
  %197 = load i64, ptr %196, align 8, !tbaa !8
  %198 = add nsw i64 %194, %197
  %199 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 29
  store i64 %198, ptr %199, align 8, !tbaa !8
  %200 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %83, i64 30
  %201 = load i64, ptr %200, align 8, !tbaa !8
  %202 = add nsw i64 %198, %201
  %203 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %.02134, i64 30
  store i64 %202, ptr %203, align 8, !tbaa !8
  %204 = add nuw nsw i64 %.02134, 1
  %exitcond36.not = icmp eq i64 %204, 31
  br i1 %exitcond36.not, label %205, label %.preheader, !llvm.loop !11

205:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #6
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  %206 = load i64, ptr %2, align 8, !tbaa !8
  %207 = icmp sgt i64 %206, 0
  %.pre39 = load i64, ptr %0, align 8, !tbaa !8
  br i1 %207, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %205, %234
  %208 = phi i64 [ %236, %234 ], [ %.pre39, %205 ]
  %209 = phi i64 [ %235, %234 ], [ %206, %205 ]
  %210 = icmp eq i64 %208, 0
  %211 = load i64, ptr %1, align 8
  %212 = icmp eq i64 %211, 0
  %or.cond = select i1 %210, i1 true, i1 %212
  br i1 %or.cond, label %._crit_edge, label %213

213:                                              ; preds = %.lr.ph
  %214 = add nsw i64 %208, -1
  %215 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %214, i64 %211
  %216 = load i64, ptr %215, align 8, !tbaa !8
  %217 = icmp sgt i64 %209, %216
  br i1 %217, label %218, label %229

218:                                              ; preds = %213
  %219 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext 98)
          to label %220 unwind label %.loopexit

220:                                              ; preds = %218
  %221 = load i64, ptr %0, align 8, !tbaa !8
  %222 = add nsw i64 %221, -1
  %223 = load i64, ptr %1, align 8, !tbaa !8
  %224 = add nsw i64 %223, -1
  store i64 %224, ptr %1, align 8, !tbaa !8
  %225 = getelementptr inbounds [31 x [31 x i64]], ptr %3, i64 0, i64 %222, i64 %223
  %226 = load i64, ptr %225, align 8, !tbaa !8
  %227 = load i64, ptr %2, align 8, !tbaa !8
  %228 = sub nsw i64 %227, %226
  store i64 %228, ptr %2, align 8, !tbaa !8
  br label %234

.loopexit:                                        ; preds = %218, %229
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %260

.loopexit.split-lp:                               ; preds = %245, %247
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %260

229:                                              ; preds = %213
  %230 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32) %4, i8 noundef signext 97)
          to label %231 unwind label %.loopexit

231:                                              ; preds = %229
  %232 = load i64, ptr %0, align 8, !tbaa !8
  %233 = add nsw i64 %232, -1
  store i64 %233, ptr %0, align 8, !tbaa !8
  %.pre38 = load i64, ptr %2, align 8, !tbaa !8
  br label %234

234:                                              ; preds = %231, %220
  %235 = phi i64 [ %.pre38, %231 ], [ %228, %220 ]
  %236 = phi i64 [ %233, %231 ], [ %221, %220 ]
  %237 = icmp sgt i64 %235, 0
  br i1 %237, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %234, %.lr.ph, %205
  %238 = phi i64 [ %.pre39, %205 ], [ %236, %234 ], [ %208, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %238, i8 noundef signext 97, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %239 unwind label %250

239:                                              ; preds = %._crit_edge
  %240 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %241 unwind label %252

241:                                              ; preds = %239
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  %242 = load i64, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %242, i8 noundef signext 98, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %243 unwind label %255

243:                                              ; preds = %241
  %244 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %245 unwind label %257

245:                                              ; preds = %243
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  %246 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %247 unwind label %.loopexit.split-lp

247:                                              ; preds = %245
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %246, ptr noundef nonnull @.str)
          to label %249 unwind label %.loopexit.split-lp

249:                                              ; preds = %247
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 7688, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %0) #6
  ret i32 0

250:                                              ; preds = %._crit_edge
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %254

252:                                              ; preds = %239
  %253 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #6
  br label %254

254:                                              ; preds = %252, %250
  %.pn = phi { ptr, i32 } [ %253, %252 ], [ %251, %250 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  br label %260

255:                                              ; preds = %241
  %256 = landingpad { ptr, i32 }
          cleanup
  br label %259

257:                                              ; preds = %243
  %258 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  br label %259

259:                                              ; preds = %257, %255
  %.pn27 = phi { ptr, i32 } [ %258, %257 ], [ %256, %255 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #6
  br label %260

260:                                              ; preds = %.loopexit, %.loopexit.split-lp, %259, %254
  %.pn29 = phi { ptr, i32 } [ %.pn27, %259 ], [ %.pn, %254 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 7688, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %0) #6
  resume { ptr, i32 } %.pn29
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt8ios_base9precisionEl(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) local_unnamed_addr #2 align 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEpLEc(ptr noundef nonnull align 8 dereferenceable(32), i8 noundef signext) local_unnamed_addr #4 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEmcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i8 noundef signext, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #2 align 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 #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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


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