; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/46 Beta Division 2/Problem E (E)

; 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_ostream" = type { ptr, %"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::__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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dp1 = external dso_local global [51 x [51 x [26 x i32]]], align 16
@dp2 = external dso_local global [51 x [51 x [26 x i32]]], align 16
@_Z2s1B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z2s2B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@n = external dso_local global i32, align 4
@rules = external dso_local global [26 x %"class.std::vector"], align 16
@dp = external dso_local global [51 x [51 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2 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 norecurse uwtable
define dso_local noundef i32 @main() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", 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
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %21 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %22 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %23 = getelementptr i8, ptr %22, i64 -24
  %24 = load i64, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %24
  %26 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %25, ptr noundef null)
  %27 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %28 = getelementptr i8, ptr %27, i64 -24
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %29
  %31 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %30, ptr noundef null)
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 0, ptr %2, align 4, !tbaa !8
  br label %35

35:                                               ; preds = %63, %0
  %36 = load i32, ptr %2, align 4, !tbaa !8
  %37 = load i32, ptr @n, align 4, !tbaa !8
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %80

40:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %41 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %42 unwind label %66

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 0)
          to label %44 unwind label %66

44:                                               ; preds = %42
  %45 = load i8, ptr %43, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  %47 = sub nsw i32 %46, 97
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [26 x %"class.std::vector"], ptr @rules, i64 0, i64 %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %50 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 3)
          to label %51 unwind label %70

51:                                               ; preds = %44
  %52 = load i8, ptr %50, align 1, !tbaa !11
  %53 = sext i8 %52 to i32
  %54 = sub nsw i32 %53, 97
  store i32 %54, ptr %7, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %55 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef 4)
          to label %56 unwind label %74

56:                                               ; preds = %51
  %57 = load i8, ptr %55, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = sub nsw i32 %58, 97
  store i32 %59, ptr %8, align 4, !tbaa !8
  %60 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %61 unwind label %74

61:                                               ; preds = %56
  store i64 %60, ptr %6, align 4
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 4 dereferenceable(8) %6)
          to label %62 unwind label %74

62:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %2, align 4, !tbaa !8
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %2, align 4, !tbaa !8
  br label %35, !llvm.loop !12

66:                                               ; preds = %42, %40
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %4, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %5, align 4
  br label %79

70:                                               ; preds = %44
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %4, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %5, align 4
  br label %78

74:                                               ; preds = %61, %56, %51
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %4, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %78

78:                                               ; preds = %74, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  br label %79

79:                                               ; preds = %78, %66
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %254

80:                                               ; preds = %39
  call void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef @dp1, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  call void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef @dp2, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %81 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11) #7
  %82 = trunc i64 %81 to i32
  store i32 %82, ptr %9, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %83 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11) #7
  %84 = trunc i64 %83 to i32
  store i32 %84, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 1000000000, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %85

85:                                               ; preds = %107, %80
  %86 = load i32, ptr %12, align 4, !tbaa !8
  %87 = load i32, ptr %9, align 4, !tbaa !8
  %88 = icmp sle i32 %86, %87
  br i1 %88, label %90, label %89

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

90:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %91

91:                                               ; preds = %103, %90
  %92 = load i32, ptr %14, align 4, !tbaa !8
  %93 = load i32, ptr %10, align 4, !tbaa !8
  %94 = icmp sle i32 %92, %93
  br i1 %94, label %96, label %95

95:                                               ; preds = %91
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %106

96:                                               ; preds = %91
  %97 = load i32, ptr %12, align 4, !tbaa !8
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %98
  %100 = load i32, ptr %14, align 4, !tbaa !8
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [51 x i32], ptr %99, i64 0, i64 %101
  store i32 1000000000, ptr %102, align 4, !tbaa !8
  br label %103

103:                                              ; preds = %96
  %104 = load i32, ptr %14, align 4, !tbaa !8
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %14, align 4, !tbaa !8
  br label %91, !llvm.loop !14

106:                                              ; preds = %95
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %12, align 4, !tbaa !8
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %12, align 4, !tbaa !8
  br label %85, !llvm.loop !15

110:                                              ; preds = %89
  store i32 0, ptr @dp, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !8
  br label %111

111:                                              ; preds = %224, %110
  %112 = load i32, ptr %15, align 4, !tbaa !8
  %113 = load i32, ptr %9, align 4, !tbaa !8
  %114 = icmp sle i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %227

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 1, ptr %16, align 4, !tbaa !8
  br label %117

117:                                              ; preds = %220, %116
  %118 = load i32, ptr %16, align 4, !tbaa !8
  %119 = load i32, ptr %10, align 4, !tbaa !8
  %120 = icmp sle i32 %118, %119
  br i1 %120, label %122, label %121

121:                                              ; preds = %117
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %223

122:                                              ; preds = %117
  %123 = load i32, ptr %15, align 4, !tbaa !8
  %124 = sub nsw i32 %123, 1
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %125
  %127 = load i32, ptr %16, align 4, !tbaa !8
  %128 = sub nsw i32 %127, 1
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [51 x i32], ptr %126, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !8
  %132 = icmp eq i32 %131, 1000000000
  br i1 %132, label %133, label %134

133:                                              ; preds = %122
  br label %220

134:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %135 = load i32, ptr %15, align 4, !tbaa !8
  store i32 %135, ptr %17, align 4, !tbaa !8
  br label %136

136:                                              ; preds = %216, %134
  %137 = load i32, ptr %17, align 4, !tbaa !8
  %138 = load i32, ptr %9, align 4, !tbaa !8
  %139 = icmp sle i32 %137, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %136
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %219

141:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %142 = load i32, ptr %16, align 4, !tbaa !8
  store i32 %142, ptr %18, align 4, !tbaa !8
  br label %143

143:                                              ; preds = %212, %141
  %144 = load i32, ptr %18, align 4, !tbaa !8
  %145 = load i32, ptr %10, align 4, !tbaa !8
  %146 = icmp sle i32 %144, %145
  br i1 %146, label %148, label %147

147:                                              ; preds = %143
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %215

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %149

149:                                              ; preds = %207, %148
  %150 = load i32, ptr %19, align 4, !tbaa !8
  %151 = icmp slt i32 %150, 26
  br i1 %151, label %153, label %152

152:                                              ; preds = %149
  store i32 23, ptr %13, align 4
  br label %210

153:                                              ; preds = %149
  %154 = load i32, ptr %15, align 4, !tbaa !8
  %155 = sub nsw i32 %154, 1
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %156
  %158 = load i32, ptr %17, align 4, !tbaa !8
  %159 = sub nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [51 x [26 x i32]], ptr %157, i64 0, i64 %160
  %162 = load i32, ptr %19, align 4, !tbaa !8
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds [26 x i32], ptr %161, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !8
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %206

167:                                              ; preds = %153
  %168 = load i32, ptr %16, align 4, !tbaa !8
  %169 = sub nsw i32 %168, 1
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %170
  %172 = load i32, ptr %18, align 4, !tbaa !8
  %173 = sub nsw i32 %172, 1
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [51 x [26 x i32]], ptr %171, i64 0, i64 %174
  %176 = load i32, ptr %19, align 4, !tbaa !8
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [26 x i32], ptr %175, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !8
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %206

181:                                              ; preds = %167
  %182 = load i32, ptr %17, align 4, !tbaa !8
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %183
  %185 = load i32, ptr %18, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [51 x i32], ptr %184, i64 0, i64 %186
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %188 = load i32, ptr %15, align 4, !tbaa !8
  %189 = sub nsw i32 %188, 1
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %190
  %192 = load i32, ptr %16, align 4, !tbaa !8
  %193 = sub nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [51 x i32], ptr %191, i64 0, i64 %194
  %196 = load i32, ptr %195, align 4, !tbaa !8
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %20, align 4, !tbaa !8
  %198 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %187, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %199 = load i32, ptr %198, align 4, !tbaa !8
  %200 = load i32, ptr %17, align 4, !tbaa !8
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %201
  %203 = load i32, ptr %18, align 4, !tbaa !8
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds [51 x i32], ptr %202, i64 0, i64 %204
  store i32 %199, ptr %205, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  store i32 23, ptr %13, align 4
  br label %210

206:                                              ; preds = %167, %153
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %19, align 4, !tbaa !8
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %19, align 4, !tbaa !8
  br label %149, !llvm.loop !16

210:                                              ; preds = %181, %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %211

211:                                              ; preds = %210
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %18, align 4, !tbaa !8
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %18, align 4, !tbaa !8
  br label %143, !llvm.loop !17

215:                                              ; preds = %147
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %17, align 4, !tbaa !8
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %17, align 4, !tbaa !8
  br label %136, !llvm.loop !18

219:                                              ; preds = %140
  br label %220

220:                                              ; preds = %219, %133
  %221 = load i32, ptr %16, align 4, !tbaa !8
  %222 = add nsw i32 %221, 1
  store i32 %222, ptr %16, align 4, !tbaa !8
  br label %117, !llvm.loop !19

223:                                              ; preds = %121
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %15, align 4, !tbaa !8
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %15, align 4, !tbaa !8
  br label %111, !llvm.loop !20

227:                                              ; preds = %115
  %228 = load i32, ptr %9, align 4, !tbaa !8
  %229 = sext i32 %228 to i64
  %230 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %229
  %231 = load i32, ptr %10, align 4, !tbaa !8
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [51 x i32], ptr %230, i64 0, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !8
  %235 = icmp eq i32 %234, 1000000000
  br i1 %235, label %236, label %243

236:                                              ; preds = %227
  %237 = load i32, ptr %9, align 4, !tbaa !8
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %238
  %240 = load i32, ptr %10, align 4, !tbaa !8
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [51 x i32], ptr %239, i64 0, i64 %241
  store i32 -1, ptr %242, align 4, !tbaa !8
  br label %243

243:                                              ; preds = %236, %227
  %244 = load i32, ptr %9, align 4, !tbaa !8
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %245
  %247 = load i32, ptr %10, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [51 x i32], ptr %246, i64 0, i64 %248
  %250 = load i32, ptr %249, align 4, !tbaa !8
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %250)
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  %253 = load i32, ptr %1, align 4
  ret i32 %253

254:                                              ; preds = %79
  %255 = load ptr, ptr %4, align 8
  %256 = load i32, ptr %5, align 4
  %257 = insertvalue { ptr, i32 } poison, ptr %255, 0
  %258 = insertvalue { ptr, i32 } %257, i32 %256, 1
  resume { ptr, i32 } %258
}

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

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

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #0

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

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

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 = { 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 #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 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 #5 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


; 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_ostream" = type { ptr, %"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::__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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"struct.std::pair" = type { i32, i32 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@dp1 = external dso_local global [51 x [51 x [26 x i32]]], align 16
@dp2 = external dso_local global [51 x [51 x [26 x i32]]], align 16
@_Z2s1B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@_Z2s2B5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@n = external dso_local global i32, align 4
@rules = external dso_local global [26 x %"class.std::vector"], align 16
@dp = external dso_local global [51 x [51 x i32]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0

; 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 nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 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 norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::__cxx11::basic_string", align 8
  %2 = alloca %"struct.std::pair", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %9
  %11 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %10, ptr noundef null)
  %12 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %13 = getelementptr i8, ptr %12, i64 -24
  %14 = load i64, ptr %13, align 8
  %15 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %14
  %16 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %15, ptr noundef null)
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %19 = 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) @n)
  %20 = load i32, ptr @n, align 4, !tbaa !8
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %45, %0
  call void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull @dp1, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11)
  call void @_Z7buildDPPA51_A26_iRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull @dp2, ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11)
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s1B5cxx11) #7
  %23 = trunc i64 %22 to i32
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z2s2B5cxx11) #7
  %25 = trunc i64 %24 to i32
  %.not78 = icmp slt i32 %23, 0
  br i1 %.not78, label %._crit_edge80.thread, label %.preheader72.lr.ph

._crit_edge80.thread:                             ; preds = %._crit_edge
  store i32 0, ptr @dp, align 16, !tbaa !8
  br label %._crit_edge96

.preheader72.lr.ph:                               ; preds = %._crit_edge
  %.not6674 = icmp slt i32 %25, 0
  br i1 %.not6674, label %._crit_edge80, label %.preheader72.preheader

.preheader72.preheader:                           ; preds = %.preheader72.lr.ph
  %26 = add nuw nsw i64 %24, 1
  %27 = add nuw nsw i64 %22, 1
  %wide.trip.count105 = and i64 %27, 4294967295
  %wide.trip.count = and i64 %26, 4294967295
  %min.iters.check = icmp ult i64 %wide.trip.count, 8
  %n.mod.vf = and i64 %26, 7
  %n.vec = sub nsw i64 %wide.trip.count, %n.mod.vf
  %cmp.n = icmp eq i64 %n.mod.vf, 0
  br label %.preheader72

.lr.ph:                                           ; preds = %0, %45
  %.05473 = phi i32 [ %46, %45 ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %1) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %28 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %29 unwind label %49

29:                                               ; preds = %.lr.ph
  %30 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0)
  %31 = load i8, ptr %30, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 3)
  %33 = load i8, ptr %32, align 1, !tbaa !11
  %34 = sext i8 %33 to i32
  %35 = add nsw i32 %34, -97
  store i32 %35, ptr %3, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %36 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 4)
  %37 = load i8, ptr %36, align 1, !tbaa !11
  %38 = sext i8 %37 to i32
  %39 = add nsw i32 %38, -97
  store i32 %39, ptr %4, align 4, !tbaa !8
  %40 = invoke i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %41 unwind label %51

41:                                               ; preds = %29
  %42 = sext i8 %31 to i64
  %43 = add nsw i64 %42, -97
  %44 = getelementptr inbounds [26 x %"class.std::vector"], ptr @rules, i64 0, i64 %43
  store i64 %40, ptr %2, align 8
  invoke void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(8) %2)
          to label %45 unwind label %51

45:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  %46 = add nuw nsw i32 %.05473, 1
  %47 = load i32, ptr @n, align 4, !tbaa !8
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %.lr.ph, label %._crit_edge, !llvm.loop !12

49:                                               ; preds = %.lr.ph
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %53

51:                                               ; preds = %41, %29
  %52 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  br label %53

53:                                               ; preds = %51, %49
  %.pn = phi { ptr, i32 } [ %52, %51 ], [ %50, %49 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn

.preheader72:                                     ; preds = %.preheader72.preheader, %._crit_edge77
  %indvars.iv102 = phi i64 [ 0, %.preheader72.preheader ], [ %indvars.iv.next103, %._crit_edge77 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader72
  %indvars.iv.ph = phi i64 [ 0, %.preheader72 ], [ %n.vec, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader72, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader72 ]
  %54 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %indvars.iv102, i64 %index
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %54, align 4, !tbaa !8
  store <4 x i32> <i32 1000000000, i32 1000000000, i32 1000000000, i32 1000000000>, ptr %55, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %56 = icmp eq i64 %index.next, %n.vec
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !14

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge77, label %scalar.ph.preheader

._crit_edge80:                                    ; preds = %._crit_edge77, %.preheader72.lr.ph
  store i32 0, ptr @dp, align 16, !tbaa !8
  %.not5993 = icmp eq i32 %23, 0
  %.not6187 = icmp slt i32 %25, 1
  %or.cond = or i1 %.not5993, %.not6187
  br i1 %or.cond, label %._crit_edge96, label %.preheader71.preheader

.preheader71.preheader:                           ; preds = %._crit_edge80
  %57 = add nuw nsw i64 %24, 1
  %58 = add nuw i32 %23, 1
  %wide.trip.count123 = and i64 %57, 4294967295
  br label %.lr.ph91.split.preheader

._crit_edge77:                                    ; preds = %scalar.ph, %middle.block
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond106.not = icmp eq i64 %indvars.iv.next103, %wide.trip.count105
  br i1 %exitcond106.not, label %._crit_edge80, label %.preheader72, !llvm.loop !17

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %59 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %indvars.iv102, i64 %indvars.iv
  store i32 1000000000, ptr %59, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge77, label %scalar.ph, !llvm.loop !18

.lr.ph91.split.preheader:                         ; preds = %._crit_edge92, %.preheader71.preheader
  %.05194 = phi i32 [ %68, %._crit_edge92 ], [ 1, %.preheader71.preheader ]
  %60 = sext i32 %.05194 to i64
  %61 = add nsw i32 %.05194, -1
  %62 = sext i32 %61 to i64
  br label %.lr.ph91.split

._crit_edge96:                                    ; preds = %._crit_edge92, %._crit_edge80.thread, %._crit_edge80
  %sext = shl i64 %22, 32
  %63 = ashr exact i64 %sext, 32
  %sext60 = shl i64 %24, 32
  %64 = ashr exact i64 %sext60, 32
  %65 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %63, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = icmp eq i32 %66, 1000000000
  br i1 %67, label %236, label %237

._crit_edge92:                                    ; preds = %..loopexit70_crit_edge
  %68 = add i32 %.05194, 1
  %.not59 = icmp sgt i32 %68, %23
  br i1 %.not59, label %._crit_edge96, label %.lr.ph91.split.preheader, !llvm.loop !19

.lr.ph91.split:                                   ; preds = %.lr.ph91.split.preheader, %..loopexit70_crit_edge
  %indvars.iv111 = phi i64 [ 1, %.lr.ph91.split.preheader ], [ %indvars.iv.next112, %..loopexit70_crit_edge ]
  %69 = add nsw i64 %indvars.iv111, -1
  %70 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %62, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = icmp eq i32 %71, 1000000000
  br i1 %72, label %..loopexit70_crit_edge, label %.preheader68

.preheader68:                                     ; preds = %.lr.ph91.split, %._crit_edge84
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %._crit_edge84 ], [ %60, %.lr.ph91.split ]
  %73 = add nsw i64 %indvars.iv118, -1
  %74 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 0
  %75 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 1
  %76 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 2
  %77 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 3
  %78 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 4
  %79 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 5
  %80 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 6
  %81 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 7
  %82 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 8
  %83 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 9
  %84 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 10
  %85 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 11
  %86 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 12
  %87 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 13
  %88 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 14
  %89 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 15
  %90 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 16
  %91 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 17
  %92 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 18
  %93 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 19
  %94 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 20
  %95 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 21
  %96 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 22
  %97 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 23
  %98 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 24
  %99 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp1, i64 0, i64 %62, i64 %73, i64 25
  br label %.preheader

.preheader:                                       ; preds = %.preheader68, %.loopexit
  %indvars.iv113 = phi i64 [ %indvars.iv111, %.preheader68 ], [ %indvars.iv.next114, %.loopexit ]
  %100 = add nsw i64 %indvars.iv113, -1
  %101 = load i32, ptr %74, align 8, !tbaa !8
  %.not64 = icmp eq i32 %101, 0
  br i1 %.not64, label %111, label %102

._crit_edge84:                                    ; preds = %.loopexit
  %indvars.iv.next119 = add nsw i64 %indvars.iv118, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next119 to i32
  %exitcond121.not = icmp eq i32 %58, %lftr.wideiv
  br i1 %exitcond121.not, label %..loopexit70_crit_edge, label %.preheader68, !llvm.loop !20

102:                                              ; preds = %.preheader
  %103 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 0
  %104 = load i32, ptr %103, align 8, !tbaa !8
  %.not65 = icmp eq i32 %104, 0
  br i1 %.not65, label %111, label %105

105:                                              ; preds = %233, %228, %223, %218, %213, %208, %203, %198, %193, %188, %183, %178, %173, %168, %163, %158, %153, %148, %143, %138, %133, %128, %123, %118, %113, %102
  %106 = getelementptr inbounds [51 x [51 x i32]], ptr @dp, i64 0, i64 %indvars.iv118, i64 %indvars.iv113
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %107 = load i32, ptr %70, align 4, !tbaa !8
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %5, align 4, !tbaa !8
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %106, ptr noundef nonnull align 4 dereferenceable(4) %5)
  %110 = load i32, ptr %109, align 4, !tbaa !8
  store i32 %110, ptr %106, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %.loopexit

111:                                              ; preds = %.preheader, %102
  %112 = load i32, ptr %75, align 4, !tbaa !8
  %.not64.1 = icmp eq i32 %112, 0
  br i1 %.not64.1, label %116, label %113

113:                                              ; preds = %111
  %114 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 1
  %115 = load i32, ptr %114, align 4, !tbaa !8
  %.not65.1 = icmp eq i32 %115, 0
  br i1 %.not65.1, label %116, label %105

116:                                              ; preds = %113, %111
  %117 = load i32, ptr %76, align 8, !tbaa !8
  %.not64.2 = icmp eq i32 %117, 0
  br i1 %.not64.2, label %121, label %118

118:                                              ; preds = %116
  %119 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 2
  %120 = load i32, ptr %119, align 8, !tbaa !8
  %.not65.2 = icmp eq i32 %120, 0
  br i1 %.not65.2, label %121, label %105

121:                                              ; preds = %118, %116
  %122 = load i32, ptr %77, align 4, !tbaa !8
  %.not64.3 = icmp eq i32 %122, 0
  br i1 %.not64.3, label %126, label %123

123:                                              ; preds = %121
  %124 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 3
  %125 = load i32, ptr %124, align 4, !tbaa !8
  %.not65.3 = icmp eq i32 %125, 0
  br i1 %.not65.3, label %126, label %105

126:                                              ; preds = %123, %121
  %127 = load i32, ptr %78, align 8, !tbaa !8
  %.not64.4 = icmp eq i32 %127, 0
  br i1 %.not64.4, label %131, label %128

128:                                              ; preds = %126
  %129 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 4
  %130 = load i32, ptr %129, align 8, !tbaa !8
  %.not65.4 = icmp eq i32 %130, 0
  br i1 %.not65.4, label %131, label %105

131:                                              ; preds = %128, %126
  %132 = load i32, ptr %79, align 4, !tbaa !8
  %.not64.5 = icmp eq i32 %132, 0
  br i1 %.not64.5, label %136, label %133

133:                                              ; preds = %131
  %134 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 5
  %135 = load i32, ptr %134, align 4, !tbaa !8
  %.not65.5 = icmp eq i32 %135, 0
  br i1 %.not65.5, label %136, label %105

136:                                              ; preds = %133, %131
  %137 = load i32, ptr %80, align 8, !tbaa !8
  %.not64.6 = icmp eq i32 %137, 0
  br i1 %.not64.6, label %141, label %138

138:                                              ; preds = %136
  %139 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 6
  %140 = load i32, ptr %139, align 8, !tbaa !8
  %.not65.6 = icmp eq i32 %140, 0
  br i1 %.not65.6, label %141, label %105

141:                                              ; preds = %138, %136
  %142 = load i32, ptr %81, align 4, !tbaa !8
  %.not64.7 = icmp eq i32 %142, 0
  br i1 %.not64.7, label %146, label %143

143:                                              ; preds = %141
  %144 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 7
  %145 = load i32, ptr %144, align 4, !tbaa !8
  %.not65.7 = icmp eq i32 %145, 0
  br i1 %.not65.7, label %146, label %105

146:                                              ; preds = %143, %141
  %147 = load i32, ptr %82, align 8, !tbaa !8
  %.not64.8 = icmp eq i32 %147, 0
  br i1 %.not64.8, label %151, label %148

148:                                              ; preds = %146
  %149 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 8
  %150 = load i32, ptr %149, align 8, !tbaa !8
  %.not65.8 = icmp eq i32 %150, 0
  br i1 %.not65.8, label %151, label %105

151:                                              ; preds = %148, %146
  %152 = load i32, ptr %83, align 4, !tbaa !8
  %.not64.9 = icmp eq i32 %152, 0
  br i1 %.not64.9, label %156, label %153

153:                                              ; preds = %151
  %154 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 9
  %155 = load i32, ptr %154, align 4, !tbaa !8
  %.not65.9 = icmp eq i32 %155, 0
  br i1 %.not65.9, label %156, label %105

156:                                              ; preds = %153, %151
  %157 = load i32, ptr %84, align 8, !tbaa !8
  %.not64.10 = icmp eq i32 %157, 0
  br i1 %.not64.10, label %161, label %158

158:                                              ; preds = %156
  %159 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 10
  %160 = load i32, ptr %159, align 8, !tbaa !8
  %.not65.10 = icmp eq i32 %160, 0
  br i1 %.not65.10, label %161, label %105

161:                                              ; preds = %158, %156
  %162 = load i32, ptr %85, align 4, !tbaa !8
  %.not64.11 = icmp eq i32 %162, 0
  br i1 %.not64.11, label %166, label %163

163:                                              ; preds = %161
  %164 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 11
  %165 = load i32, ptr %164, align 4, !tbaa !8
  %.not65.11 = icmp eq i32 %165, 0
  br i1 %.not65.11, label %166, label %105

166:                                              ; preds = %163, %161
  %167 = load i32, ptr %86, align 8, !tbaa !8
  %.not64.12 = icmp eq i32 %167, 0
  br i1 %.not64.12, label %171, label %168

168:                                              ; preds = %166
  %169 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 12
  %170 = load i32, ptr %169, align 8, !tbaa !8
  %.not65.12 = icmp eq i32 %170, 0
  br i1 %.not65.12, label %171, label %105

171:                                              ; preds = %168, %166
  %172 = load i32, ptr %87, align 4, !tbaa !8
  %.not64.13 = icmp eq i32 %172, 0
  br i1 %.not64.13, label %176, label %173

173:                                              ; preds = %171
  %174 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 13
  %175 = load i32, ptr %174, align 4, !tbaa !8
  %.not65.13 = icmp eq i32 %175, 0
  br i1 %.not65.13, label %176, label %105

176:                                              ; preds = %173, %171
  %177 = load i32, ptr %88, align 8, !tbaa !8
  %.not64.14 = icmp eq i32 %177, 0
  br i1 %.not64.14, label %181, label %178

178:                                              ; preds = %176
  %179 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 14
  %180 = load i32, ptr %179, align 8, !tbaa !8
  %.not65.14 = icmp eq i32 %180, 0
  br i1 %.not65.14, label %181, label %105

181:                                              ; preds = %178, %176
  %182 = load i32, ptr %89, align 4, !tbaa !8
  %.not64.15 = icmp eq i32 %182, 0
  br i1 %.not64.15, label %186, label %183

183:                                              ; preds = %181
  %184 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 15
  %185 = load i32, ptr %184, align 4, !tbaa !8
  %.not65.15 = icmp eq i32 %185, 0
  br i1 %.not65.15, label %186, label %105

186:                                              ; preds = %183, %181
  %187 = load i32, ptr %90, align 8, !tbaa !8
  %.not64.16 = icmp eq i32 %187, 0
  br i1 %.not64.16, label %191, label %188

188:                                              ; preds = %186
  %189 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 16
  %190 = load i32, ptr %189, align 8, !tbaa !8
  %.not65.16 = icmp eq i32 %190, 0
  br i1 %.not65.16, label %191, label %105

191:                                              ; preds = %188, %186
  %192 = load i32, ptr %91, align 4, !tbaa !8
  %.not64.17 = icmp eq i32 %192, 0
  br i1 %.not64.17, label %196, label %193

193:                                              ; preds = %191
  %194 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 17
  %195 = load i32, ptr %194, align 4, !tbaa !8
  %.not65.17 = icmp eq i32 %195, 0
  br i1 %.not65.17, label %196, label %105

196:                                              ; preds = %193, %191
  %197 = load i32, ptr %92, align 8, !tbaa !8
  %.not64.18 = icmp eq i32 %197, 0
  br i1 %.not64.18, label %201, label %198

198:                                              ; preds = %196
  %199 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 18
  %200 = load i32, ptr %199, align 8, !tbaa !8
  %.not65.18 = icmp eq i32 %200, 0
  br i1 %.not65.18, label %201, label %105

201:                                              ; preds = %198, %196
  %202 = load i32, ptr %93, align 4, !tbaa !8
  %.not64.19 = icmp eq i32 %202, 0
  br i1 %.not64.19, label %206, label %203

203:                                              ; preds = %201
  %204 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 19
  %205 = load i32, ptr %204, align 4, !tbaa !8
  %.not65.19 = icmp eq i32 %205, 0
  br i1 %.not65.19, label %206, label %105

206:                                              ; preds = %203, %201
  %207 = load i32, ptr %94, align 8, !tbaa !8
  %.not64.20 = icmp eq i32 %207, 0
  br i1 %.not64.20, label %211, label %208

208:                                              ; preds = %206
  %209 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 20
  %210 = load i32, ptr %209, align 8, !tbaa !8
  %.not65.20 = icmp eq i32 %210, 0
  br i1 %.not65.20, label %211, label %105

211:                                              ; preds = %208, %206
  %212 = load i32, ptr %95, align 4, !tbaa !8
  %.not64.21 = icmp eq i32 %212, 0
  br i1 %.not64.21, label %216, label %213

213:                                              ; preds = %211
  %214 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 21
  %215 = load i32, ptr %214, align 4, !tbaa !8
  %.not65.21 = icmp eq i32 %215, 0
  br i1 %.not65.21, label %216, label %105

216:                                              ; preds = %213, %211
  %217 = load i32, ptr %96, align 8, !tbaa !8
  %.not64.22 = icmp eq i32 %217, 0
  br i1 %.not64.22, label %221, label %218

218:                                              ; preds = %216
  %219 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 22
  %220 = load i32, ptr %219, align 8, !tbaa !8
  %.not65.22 = icmp eq i32 %220, 0
  br i1 %.not65.22, label %221, label %105

221:                                              ; preds = %218, %216
  %222 = load i32, ptr %97, align 4, !tbaa !8
  %.not64.23 = icmp eq i32 %222, 0
  br i1 %.not64.23, label %226, label %223

223:                                              ; preds = %221
  %224 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 23
  %225 = load i32, ptr %224, align 4, !tbaa !8
  %.not65.23 = icmp eq i32 %225, 0
  br i1 %.not65.23, label %226, label %105

226:                                              ; preds = %223, %221
  %227 = load i32, ptr %98, align 8, !tbaa !8
  %.not64.24 = icmp eq i32 %227, 0
  br i1 %.not64.24, label %231, label %228

228:                                              ; preds = %226
  %229 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 24
  %230 = load i32, ptr %229, align 8, !tbaa !8
  %.not65.24 = icmp eq i32 %230, 0
  br i1 %.not65.24, label %231, label %105

231:                                              ; preds = %228, %226
  %232 = load i32, ptr %99, align 4, !tbaa !8
  %.not64.25 = icmp eq i32 %232, 0
  br i1 %.not64.25, label %.loopexit, label %233

233:                                              ; preds = %231
  %234 = getelementptr inbounds [51 x [51 x [26 x i32]]], ptr @dp2, i64 0, i64 %69, i64 %100, i64 25
  %235 = load i32, ptr %234, align 4, !tbaa !8
  %.not65.25 = icmp eq i32 %235, 0
  br i1 %.not65.25, label %.loopexit, label %105

.loopexit:                                        ; preds = %231, %233, %105
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count123
  br i1 %exitcond117.not, label %._crit_edge84, label %.preheader, !llvm.loop !21

..loopexit70_crit_edge:                           ; preds = %._crit_edge84, %.lr.ph91.split
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond124.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count123
  br i1 %exitcond124.not, label %._crit_edge92, label %.lr.ph91.split, !llvm.loop !22

236:                                              ; preds = %._crit_edge96
  store i32 -1, ptr %65, align 4, !tbaa !8
  br label %237

237:                                              ; preds = %236, %._crit_edge96
  %238 = phi i32 [ -1, %236 ], [ %66, %._crit_edge96 ]
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %238)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  ret i32 0
}

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

; 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

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

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 #5

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorISt4pairIiiESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local i64 @_ZSt9make_pairIiiESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS1_INS2_IT0_E4typeEE6__typeEEOS3_OS8_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0

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

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

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 = { 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 #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 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 #5 = { "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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13, !15, !16}
!15 = !{!"llvm.loop.isvectorized", i32 1}
!16 = !{!"llvm.loop.unroll.runtime.disable"}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13, !16, !15}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}
!21 = distinct !{!21, !13}
!22 = distinct !{!22, !13}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass