; LLVM IR from VastoLorde95/Competitive-Programming :: Hackerrank/Company Contests/Sears Finals/Problem D (D)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"struct.std::pair" = type { %"struct.std::pair.0", i32 }
%"struct.std::pair.0" = type { %"struct.std::pair.2", %"struct.std::pair.2" }
%"struct.std::pair.2" = type { i32, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@aa = external dso_local global i32, align 4
@g = external dso_local global [110 x [110 x i32]], align 16
@r = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3getiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKSt4pairIS_IS_IiiES0_EiES4_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"struct.std::pair", align 4
  %16 = alloca %"struct.std::pair.0", align 4
  %17 = alloca %"struct.std::pair.2", align 4
  %18 = alloca %"struct.std::pair.2", align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.std::vector.4", align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i8, align 1
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %41 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  store i32 0, ptr %1, align 4
  %42 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %43 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %44 = getelementptr i8, ptr %43, i64 -24
  %45 = load i64, ptr %44, align 8
  %46 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %45
  %47 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %46, ptr noundef null)
  %48 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %49 = getelementptr i8, ptr %48, i64 -24
  %50 = load i64, ptr %49, align 8
  %51 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %50
  %52 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %51, ptr noundef null)
  %53 = 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)
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %53, ptr noundef nonnull align 4 dereferenceable(4) @m)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #8
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %55

55:                                               ; preds = %78, %0
  %56 = load i32, ptr %2, align 4, !tbaa !8
  %57 = load i32, ptr @n, align 4, !tbaa !8
  %58 = icmp sle i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #8
  br label %81

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #8
  store i32 1, ptr %4, align 4, !tbaa !8
  br label %61

61:                                               ; preds = %74, %60
  %62 = load i32, ptr %4, align 4, !tbaa !8
  %63 = load i32, ptr @m, align 4, !tbaa !8
  %64 = icmp sle i32 %62, %63
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %61
  %67 = load i32, ptr %2, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %68
  %70 = load i32, ptr %4, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [110 x i32], ptr %69, i64 0, i64 %71
  %73 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %72)
  br label %74

74:                                               ; preds = %66
  %75 = load i32, ptr %4, align 4, !tbaa !8
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %4, align 4, !tbaa !8
  br label %61, !llvm.loop !11

77:                                               ; preds = %65
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %2, align 4, !tbaa !8
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %2, align 4, !tbaa !8
  br label %55, !llvm.loop !13

81:                                               ; preds = %59
  %82 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @aa)
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @p)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 1, ptr %5, align 4, !tbaa !8
  br label %84

84:                                               ; preds = %116, %81
  %85 = load i32, ptr %5, align 4, !tbaa !8
  %86 = load i32, ptr @n, align 4, !tbaa !8
  %87 = icmp sle i32 %85, %86
  br i1 %87, label %89, label %88

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

89:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 1, ptr %6, align 4, !tbaa !8
  br label %90

90:                                               ; preds = %112, %89
  %91 = load i32, ptr %6, align 4, !tbaa !8
  %92 = load i32, ptr @m, align 4, !tbaa !8
  %93 = icmp sle i32 %91, %92
  br i1 %93, label %95, label %94

94:                                               ; preds = %90
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  br label %115

95:                                               ; preds = %90
  %96 = load i32, ptr %5, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %97
  %99 = load i32, ptr %6, align 4, !tbaa !8
  %100 = sub nsw i32 %99, 1
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [110 x i32], ptr %98, i64 0, i64 %101
  %103 = load i32, ptr %102, align 4, !tbaa !8
  %104 = load i32, ptr %5, align 4, !tbaa !8
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %105
  %107 = load i32, ptr %6, align 4, !tbaa !8
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds [110 x i32], ptr %106, i64 0, i64 %108
  %110 = load i32, ptr %109, align 4, !tbaa !8
  %111 = add nsw i32 %110, %103
  store i32 %111, ptr %109, align 4, !tbaa !8
  br label %112

112:                                              ; preds = %95
  %113 = load i32, ptr %6, align 4, !tbaa !8
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %6, align 4, !tbaa !8
  br label %90, !llvm.loop !14

115:                                              ; preds = %94
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %5, align 4, !tbaa !8
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %5, align 4, !tbaa !8
  br label %84, !llvm.loop !15

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

120:                                              ; preds = %152, %119
  %121 = load i32, ptr %7, align 4, !tbaa !8
  %122 = load i32, ptr @m, align 4, !tbaa !8
  %123 = icmp sle i32 %121, %122
  br i1 %123, label %125, label %124

124:                                              ; preds = %120
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #8
  br label %155

125:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 1, ptr %8, align 4, !tbaa !8
  br label %126

126:                                              ; preds = %148, %125
  %127 = load i32, ptr %8, align 4, !tbaa !8
  %128 = load i32, ptr @n, align 4, !tbaa !8
  %129 = icmp sle i32 %127, %128
  br i1 %129, label %131, label %130

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

131:                                              ; preds = %126
  %132 = load i32, ptr %8, align 4, !tbaa !8
  %133 = sub nsw i32 %132, 1
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %134
  %136 = load i32, ptr %7, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [110 x i32], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !8
  %140 = load i32, ptr %8, align 4, !tbaa !8
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %141
  %143 = load i32, ptr %7, align 4, !tbaa !8
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [110 x i32], ptr %142, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !8
  %147 = add nsw i32 %146, %139
  store i32 %147, ptr %145, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %131
  %149 = load i32, ptr %8, align 4, !tbaa !8
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %8, align 4, !tbaa !8
  br label %126, !llvm.loop !16

151:                                              ; preds = %130
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %7, align 4, !tbaa !8
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %7, align 4, !tbaa !8
  br label %120, !llvm.loop !17

155:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !8
  br label %156

156:                                              ; preds = %231, %155
  %157 = load i32, ptr %9, align 4, !tbaa !8
  %158 = load i32, ptr @n, align 4, !tbaa !8
  %159 = icmp sle i32 %157, %158
  br i1 %159, label %161, label %160

160:                                              ; preds = %156
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %234

161:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !8
  br label %162

162:                                              ; preds = %227, %161
  %163 = load i32, ptr %10, align 4, !tbaa !8
  %164 = load i32, ptr @m, align 4, !tbaa !8
  %165 = icmp sle i32 %163, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %162
  store i32 23, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %230

167:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %168 = load i32, ptr %9, align 4, !tbaa !8
  store i32 %168, ptr %11, align 4, !tbaa !8
  br label %169

169:                                              ; preds = %223, %167
  %170 = load i32, ptr %11, align 4, !tbaa !8
  %171 = load i32, ptr @n, align 4, !tbaa !8
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 26, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  br label %226

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %175 = load i32, ptr %10, align 4, !tbaa !8
  store i32 %175, ptr %12, align 4, !tbaa !8
  br label %176

176:                                              ; preds = %219, %174
  %177 = load i32, ptr %12, align 4, !tbaa !8
  %178 = load i32, ptr @m, align 4, !tbaa !8
  %179 = icmp sle i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  store i32 29, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  br label %222

181:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  %182 = load i32, ptr %11, align 4, !tbaa !8
  %183 = load i32, ptr %9, align 4, !tbaa !8
  %184 = sub nsw i32 %182, %183
  %185 = add nsw i32 %184, 1
  %186 = load i32, ptr %12, align 4, !tbaa !8
  %187 = load i32, ptr %10, align 4, !tbaa !8
  %188 = sub nsw i32 %186, %187
  %189 = add nsw i32 %188, 1
  %190 = mul nsw i32 %185, %189
  store i32 %190, ptr %13, align 4, !tbaa !8
  %191 = load i32, ptr %13, align 4, !tbaa !8
  %192 = load i32, ptr @aa, align 4, !tbaa !8
  %193 = icmp slt i32 %191, %192
  br i1 %193, label %194, label %195

194:                                              ; preds = %181
  store i32 31, ptr %3, align 4
  br label %216

195:                                              ; preds = %181
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %196 = load i32, ptr %9, align 4, !tbaa !8
  %197 = load i32, ptr %10, align 4, !tbaa !8
  %198 = load i32, ptr %11, align 4, !tbaa !8
  %199 = load i32, ptr %12, align 4, !tbaa !8
  %200 = call noundef i32 @_Z3getiiii(i32 noundef %196, i32 noundef %197, i32 noundef %198, i32 noundef %199)
  store i32 %200, ptr %14, align 4, !tbaa !8
  %201 = load i32, ptr %14, align 4, !tbaa !8
  %202 = mul nsw i32 %201, 100
  %203 = load i32, ptr @p, align 4, !tbaa !8
  %204 = load i32, ptr %13, align 4, !tbaa !8
  %205 = mul nsw i32 %203, %204
  %206 = icmp sge i32 %202, %205
  br i1 %206, label %207, label %215

207:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 20, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %208 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  store i64 %208, ptr %17, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %209 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12)
  store i64 %209, ptr %18, align 4
  %210 = call { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %17, ptr noundef nonnull align 4 dereferenceable(8) %18)
  %211 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 0
  %212 = extractvalue { i64, i64 } %210, 0
  store i64 %212, ptr %211, align 4
  %213 = getelementptr inbounds { i64, i64 }, ptr %16, i32 0, i32 1
  %214 = extractvalue { i64, i64 } %210, 1
  store i64 %214, ptr %213, align 4
  call void @_ZSt9make_pairISt4pairIS0_IiiES1_ERiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind writable sret(%"struct.std::pair") align 4 %15, ptr noundef nonnull align 4 dereferenceable(16) %16, ptr noundef nonnull align 4 dereferenceable(4) %13)
  call void @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @r, ptr noundef nonnull align 4 dereferenceable(20) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 20, ptr %15) #8
  br label %215

215:                                              ; preds = %207, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  store i32 0, ptr %3, align 4
  br label %216

216:                                              ; preds = %215, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  %217 = load i32, ptr %3, align 4
  switch i32 %217, label %517 [
    i32 0, label %218
    i32 31, label %219
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218, %216
  %220 = load i32, ptr %12, align 4, !tbaa !8
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %12, align 4, !tbaa !8
  br label %176, !llvm.loop !18

222:                                              ; preds = %180
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %11, align 4, !tbaa !8
  %225 = add nsw i32 %224, 1
  store i32 %225, ptr %11, align 4, !tbaa !8
  br label %169, !llvm.loop !19

226:                                              ; preds = %173
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %10, align 4, !tbaa !8
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %10, align 4, !tbaa !8
  br label %162, !llvm.loop !20

230:                                              ; preds = %166
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %9, align 4, !tbaa !8
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %9, align 4, !tbaa !8
  br label %156, !llvm.loop !21

234:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 1, ptr %19, align 4, !tbaa !8
  br label %235

235:                                              ; preds = %257, %234
  %236 = load i32, ptr %19, align 4, !tbaa !8
  %237 = load i32, ptr @n, align 4, !tbaa !8
  %238 = icmp sle i32 %236, %237
  br i1 %238, label %240, label %239

239:                                              ; preds = %235
  store i32 32, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %260

240:                                              ; preds = %235
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 1, ptr %20, align 4, !tbaa !8
  br label %241

241:                                              ; preds = %253, %240
  %242 = load i32, ptr %20, align 4, !tbaa !8
  %243 = load i32, ptr @m, align 4, !tbaa !8
  %244 = icmp sle i32 %242, %243
  br i1 %244, label %246, label %245

245:                                              ; preds = %241
  store i32 35, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %256

246:                                              ; preds = %241
  %247 = load i32, ptr %19, align 4, !tbaa !8
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %248
  %250 = load i32, ptr %20, align 4, !tbaa !8
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [110 x i32], ptr %249, i64 0, i64 %251
  store i32 0, ptr %252, align 4, !tbaa !8
  br label %253

253:                                              ; preds = %246
  %254 = load i32, ptr %20, align 4, !tbaa !8
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %20, align 4, !tbaa !8
  br label %241, !llvm.loop !22

256:                                              ; preds = %245
  br label %257

257:                                              ; preds = %256
  %258 = load i32, ptr %19, align 4, !tbaa !8
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %19, align 4, !tbaa !8
  br label %235, !llvm.loop !23

260:                                              ; preds = %239
  %261 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #8
  br i1 %261, label %262, label %263

262:                                              ; preds = %260
  store i32 0, ptr %1, align 4
  br label %510

263:                                              ; preds = %260
  %264 = call ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #8
  %265 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %264, ptr %265, align 8
  %266 = call ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #8
  %267 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %266, ptr %267, align 8
  %268 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  %269 = load ptr, ptr %268, align 8
  %270 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  %271 = load ptr, ptr %270, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IS2_IiiES3_EiESt6vectorIS5_SaIS5_EEEEPFbRKS5_SC_EEvT_SF_T0_(ptr %269, ptr %271, ptr noundef @_Z3cmpRKSt4pairIS_IS_IiiES0_EiES4_)
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %272 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef 0) #8
  %273 = getelementptr inbounds %"struct.std::pair", ptr %272, i32 0, i32 0
  invoke void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(16) %273)
          to label %274 unwind label %282

274:                                              ; preds = %263
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  %275 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %276 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %26, i32 0, i32 0
  store ptr %275, ptr %276, align 8
  br label %277

277:                                              ; preds = %339, %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %278 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %279 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %27, i32 0, i32 0
  store ptr %278, ptr %279, align 8
  %280 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br i1 %280, label %286, label %281

281:                                              ; preds = %277
  store i32 38, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %341

282:                                              ; preds = %263
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %24, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %25, align 4
  br label %509

286:                                              ; preds = %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %287 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %288 = getelementptr inbounds %"struct.std::pair.0", ptr %287, i32 0, i32 0
  %289 = getelementptr inbounds %"struct.std::pair.2", ptr %288, i32 0, i32 0
  %290 = load i32, ptr %289, align 4, !tbaa !24
  store i32 %290, ptr %28, align 4, !tbaa !8
  br label %291

291:                                              ; preds = %335, %286
  %292 = load i32, ptr %28, align 4, !tbaa !8
  %293 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %294 = getelementptr inbounds %"struct.std::pair.0", ptr %293, i32 0, i32 1
  %295 = getelementptr inbounds %"struct.std::pair.2", ptr %294, i32 0, i32 0
  %296 = load i32, ptr %295, align 4, !tbaa !27
  %297 = icmp sle i32 %292, %296
  br i1 %297, label %299, label %298

298:                                              ; preds = %291
  store i32 41, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %338

299:                                              ; preds = %291
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %300 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %301 = getelementptr inbounds %"struct.std::pair.0", ptr %300, i32 0, i32 0
  %302 = getelementptr inbounds %"struct.std::pair.2", ptr %301, i32 0, i32 1
  %303 = load i32, ptr %302, align 4, !tbaa !28
  store i32 %303, ptr %29, align 4, !tbaa !8
  br label %304

304:                                              ; preds = %331, %299
  %305 = load i32, ptr %29, align 4, !tbaa !8
  %306 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  %307 = getelementptr inbounds %"struct.std::pair.0", ptr %306, i32 0, i32 1
  %308 = getelementptr inbounds %"struct.std::pair.2", ptr %307, i32 0, i32 1
  %309 = load i32, ptr %308, align 4, !tbaa !29
  %310 = icmp sle i32 %305, %309
  br i1 %310, label %312, label %311

311:                                              ; preds = %304
  store i32 44, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %334

312:                                              ; preds = %304
  %313 = load i32, ptr %28, align 4, !tbaa !8
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %314
  %316 = load i32, ptr %29, align 4, !tbaa !8
  %317 = sext i32 %316 to i64
  %318 = getelementptr inbounds [110 x i32], ptr %315, i64 0, i64 %317
  %319 = load i32, ptr %318, align 4, !tbaa !8
  %320 = icmp eq i32 %319, 0
  br i1 %320, label %321, label %322

321:                                              ; preds = %312
  br label %324

322:                                              ; preds = %312
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.2, i32 noundef 134, ptr noundef @__PRETTY_FUNCTION__.main) #9
  unreachable

323:                                              ; No predecessors!
  br label %324

324:                                              ; preds = %323, %321
  %325 = load i32, ptr %28, align 4, !tbaa !8
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %326
  %328 = load i32, ptr %29, align 4, !tbaa !8
  %329 = sext i32 %328 to i64
  %330 = getelementptr inbounds [110 x i32], ptr %327, i64 0, i64 %329
  store i32 1, ptr %330, align 4, !tbaa !8
  br label %331

331:                                              ; preds = %324
  %332 = load i32, ptr %29, align 4, !tbaa !8
  %333 = add nsw i32 %332, 1
  store i32 %333, ptr %29, align 4, !tbaa !8
  br label %304, !llvm.loop !30

334:                                              ; preds = %311
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %28, align 4, !tbaa !8
  %337 = add nsw i32 %336, 1
  store i32 %337, ptr %28, align 4, !tbaa !8
  br label %291, !llvm.loop !31

338:                                              ; preds = %298
  br label %339

339:                                              ; preds = %338
  %340 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %26) #8
  br label %277, !llvm.loop !32

341:                                              ; preds = %281
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  store i32 1, ptr %30, align 4, !tbaa !8
  br label %342

342:                                              ; preds = %458, %341
  %343 = load i32, ptr %30, align 4, !tbaa !8
  %344 = sext i32 %343 to i64
  %345 = call noundef i64 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #8
  %346 = icmp ult i64 %344, %345
  br i1 %346, label %348, label %347

347:                                              ; preds = %342
  store i32 47, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %461

348:                                              ; preds = %342
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  store i8 1, ptr %31, align 1, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %349 = load i32, ptr %30, align 4, !tbaa !8
  %350 = sext i32 %349 to i64
  %351 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %350) #8
  %352 = getelementptr inbounds %"struct.std::pair", ptr %351, i32 0, i32 0
  %353 = getelementptr inbounds %"struct.std::pair.0", ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds %"struct.std::pair.2", ptr %353, i32 0, i32 0
  %355 = load i32, ptr %354, align 4, !tbaa !35
  store i32 %355, ptr %32, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %356 = load i32, ptr %30, align 4, !tbaa !8
  %357 = sext i32 %356 to i64
  %358 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %357) #8
  %359 = getelementptr inbounds %"struct.std::pair", ptr %358, i32 0, i32 0
  %360 = getelementptr inbounds %"struct.std::pair.0", ptr %359, i32 0, i32 0
  %361 = getelementptr inbounds %"struct.std::pair.2", ptr %360, i32 0, i32 1
  %362 = load i32, ptr %361, align 4, !tbaa !37
  store i32 %362, ptr %33, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %363 = load i32, ptr %30, align 4, !tbaa !8
  %364 = sext i32 %363 to i64
  %365 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %364) #8
  %366 = getelementptr inbounds %"struct.std::pair", ptr %365, i32 0, i32 0
  %367 = getelementptr inbounds %"struct.std::pair.0", ptr %366, i32 0, i32 1
  %368 = getelementptr inbounds %"struct.std::pair.2", ptr %367, i32 0, i32 0
  %369 = load i32, ptr %368, align 4, !tbaa !38
  store i32 %369, ptr %34, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  %370 = load i32, ptr %30, align 4, !tbaa !8
  %371 = sext i32 %370 to i64
  %372 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %371) #8
  %373 = getelementptr inbounds %"struct.std::pair", ptr %372, i32 0, i32 0
  %374 = getelementptr inbounds %"struct.std::pair.0", ptr %373, i32 0, i32 1
  %375 = getelementptr inbounds %"struct.std::pair.2", ptr %374, i32 0, i32 1
  %376 = load i32, ptr %375, align 4, !tbaa !39
  store i32 %376, ptr %35, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %377 = load i32, ptr %32, align 4, !tbaa !8
  store i32 %377, ptr %36, align 4, !tbaa !8
  br label %378

378:                                              ; preds = %406, %348
  %379 = load i32, ptr %36, align 4, !tbaa !8
  %380 = load i32, ptr %34, align 4, !tbaa !8
  %381 = icmp sle i32 %379, %380
  br i1 %381, label %383, label %382

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

383:                                              ; preds = %378
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %384 = load i32, ptr %33, align 4, !tbaa !8
  store i32 %384, ptr %37, align 4, !tbaa !8
  br label %385

385:                                              ; preds = %401, %383
  %386 = load i32, ptr %37, align 4, !tbaa !8
  %387 = load i32, ptr %35, align 4, !tbaa !8
  %388 = icmp sle i32 %386, %387
  br i1 %388, label %390, label %389

389:                                              ; preds = %385
  store i32 53, ptr %3, align 4
  br label %404

390:                                              ; preds = %385
  %391 = load i32, ptr %36, align 4, !tbaa !8
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %392
  %394 = load i32, ptr %37, align 4, !tbaa !8
  %395 = sext i32 %394 to i64
  %396 = getelementptr inbounds [110 x i32], ptr %393, i64 0, i64 %395
  %397 = load i32, ptr %396, align 4, !tbaa !8
  %398 = icmp ne i32 %397, 0
  br i1 %398, label %399, label %400

399:                                              ; preds = %390
  store i8 0, ptr %31, align 1, !tbaa !33
  store i32 111, ptr %36, align 4, !tbaa !8
  store i32 53, ptr %3, align 4
  br label %404

400:                                              ; preds = %390
  br label %401

401:                                              ; preds = %400
  %402 = load i32, ptr %37, align 4, !tbaa !8
  %403 = add nsw i32 %402, 1
  store i32 %403, ptr %37, align 4, !tbaa !8
  br label %385, !llvm.loop !40

404:                                              ; preds = %399, %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %405

405:                                              ; preds = %404
  br label %406

406:                                              ; preds = %405
  %407 = load i32, ptr %36, align 4, !tbaa !8
  %408 = add nsw i32 %407, 1
  store i32 %408, ptr %36, align 4, !tbaa !8
  br label %378, !llvm.loop !41

409:                                              ; preds = %382
  %410 = load i8, ptr %31, align 1, !tbaa !33, !range !42, !noundef !43
  %411 = trunc i8 %410 to i1
  br i1 %411, label %413, label %412

412:                                              ; preds = %409
  store i32 49, ptr %3, align 4
  br label %455

413:                                              ; preds = %409
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %414 = load i32, ptr %32, align 4, !tbaa !8
  store i32 %414, ptr %38, align 4, !tbaa !8
  br label %415

415:                                              ; preds = %438, %413
  %416 = load i32, ptr %38, align 4, !tbaa !8
  %417 = load i32, ptr %34, align 4, !tbaa !8
  %418 = icmp sle i32 %416, %417
  br i1 %418, label %420, label %419

419:                                              ; preds = %415
  store i32 56, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %441

420:                                              ; preds = %415
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %421 = load i32, ptr %33, align 4, !tbaa !8
  store i32 %421, ptr %39, align 4, !tbaa !8
  br label %422

422:                                              ; preds = %434, %420
  %423 = load i32, ptr %39, align 4, !tbaa !8
  %424 = load i32, ptr %35, align 4, !tbaa !8
  %425 = icmp sle i32 %423, %424
  br i1 %425, label %427, label %426

426:                                              ; preds = %422
  store i32 59, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %437

427:                                              ; preds = %422
  %428 = load i32, ptr %38, align 4, !tbaa !8
  %429 = sext i32 %428 to i64
  %430 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %429
  %431 = load i32, ptr %39, align 4, !tbaa !8
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [110 x i32], ptr %430, i64 0, i64 %432
  store i32 1, ptr %433, align 4, !tbaa !8
  br label %434

434:                                              ; preds = %427
  %435 = load i32, ptr %39, align 4, !tbaa !8
  %436 = add nsw i32 %435, 1
  store i32 %436, ptr %39, align 4, !tbaa !8
  br label %422, !llvm.loop !44

437:                                              ; preds = %426
  br label %438

438:                                              ; preds = %437
  %439 = load i32, ptr %38, align 4, !tbaa !8
  %440 = add nsw i32 %439, 1
  store i32 %440, ptr %38, align 4, !tbaa !8
  br label %415, !llvm.loop !45

441:                                              ; preds = %419
  %442 = load i8, ptr %31, align 1, !tbaa !33, !range !42, !noundef !43
  %443 = trunc i8 %442 to i1
  br i1 %443, label %444, label %454

444:                                              ; preds = %441
  %445 = load i32, ptr %30, align 4, !tbaa !8
  %446 = sext i32 %445 to i64
  %447 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %446) #8
  %448 = getelementptr inbounds %"struct.std::pair", ptr %447, i32 0, i32 0
  invoke void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 4 dereferenceable(16) %448)
          to label %449 unwind label %450

449:                                              ; preds = %444
  br label %454

450:                                              ; preds = %444
  %451 = landingpad { ptr, i32 }
          cleanup
  %452 = extractvalue { ptr, i32 } %451, 0
  store ptr %452, ptr %24, align 8
  %453 = extractvalue { ptr, i32 } %451, 1
  store i32 %453, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %509

454:                                              ; preds = %449, %441
  store i32 0, ptr %3, align 4
  br label %455

455:                                              ; preds = %454, %412
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  %456 = load i32, ptr %3, align 4
  switch i32 %456, label %517 [
    i32 0, label %457
    i32 49, label %458
  ]

457:                                              ; preds = %455
  br label %458

458:                                              ; preds = %457, %455
  %459 = load i32, ptr %30, align 4, !tbaa !8
  %460 = add nsw i32 %459, 1
  store i32 %460, ptr %30, align 4, !tbaa !8
  br label %342, !llvm.loop !46

461:                                              ; preds = %347
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #8
  %462 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %463 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %40, i32 0, i32 0
  store ptr %462, ptr %463, align 8
  br label %464

464:                                              ; preds = %502, %461
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #8
  %465 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %466 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.9", ptr %41, i32 0, i32 0
  store ptr %465, ptr %466, align 8
  %467 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull align 8 dereferenceable(8) %41) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #8
  br i1 %467, label %469, label %468

468:                                              ; preds = %464
  store i32 62, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %508

469:                                              ; preds = %464
  %470 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %471 = getelementptr inbounds %"struct.std::pair.0", ptr %470, i32 0, i32 0
  %472 = getelementptr inbounds %"struct.std::pair.2", ptr %471, i32 0, i32 0
  %473 = load i32, ptr %472, align 4, !tbaa !24
  %474 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %473)
          to label %475 unwind label %504

475:                                              ; preds = %469
  %476 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %474, i8 noundef signext 32)
          to label %477 unwind label %504

477:                                              ; preds = %475
  %478 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %479 = getelementptr inbounds %"struct.std::pair.0", ptr %478, i32 0, i32 0
  %480 = getelementptr inbounds %"struct.std::pair.2", ptr %479, i32 0, i32 1
  %481 = load i32, ptr %480, align 4, !tbaa !28
  %482 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %476, i32 noundef %481)
          to label %483 unwind label %504

483:                                              ; preds = %477
  %484 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %482, i8 noundef signext 32)
          to label %485 unwind label %504

485:                                              ; preds = %483
  %486 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %487 = getelementptr inbounds %"struct.std::pair.0", ptr %486, i32 0, i32 1
  %488 = getelementptr inbounds %"struct.std::pair.2", ptr %487, i32 0, i32 0
  %489 = load i32, ptr %488, align 4, !tbaa !27
  %490 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %484, i32 noundef %489)
          to label %491 unwind label %504

491:                                              ; preds = %485
  %492 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %490, i8 noundef signext 32)
          to label %493 unwind label %504

493:                                              ; preds = %491
  %494 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  %495 = getelementptr inbounds %"struct.std::pair.0", ptr %494, i32 0, i32 1
  %496 = getelementptr inbounds %"struct.std::pair.2", ptr %495, i32 0, i32 1
  %497 = load i32, ptr %496, align 4, !tbaa !29
  %498 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %492, i32 noundef %497)
          to label %499 unwind label %504

499:                                              ; preds = %493
  %500 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %498, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %501 unwind label %504

501:                                              ; preds = %499
  br label %502

502:                                              ; preds = %501
  %503 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %40) #8
  br label %464, !llvm.loop !47

504:                                              ; preds = %499, %493, %491, %485, %483, %477, %475, %469
  %505 = landingpad { ptr, i32 }
          cleanup
  %506 = extractvalue { ptr, i32 } %505, 0
  store ptr %506, ptr %24, align 8
  %507 = extractvalue { ptr, i32 } %505, 1
  store i32 %507, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #8
  br label %509

508:                                              ; preds = %468
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %510

509:                                              ; preds = %504, %450, %282
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  br label %512

510:                                              ; preds = %508, %262
  %511 = load i32, ptr %1, align 4
  ret i32 %511

512:                                              ; preds = %509
  %513 = load ptr, ptr %24, align 8
  %514 = load i32, ptr %25, align 4
  %515 = insertvalue { ptr, i32 } poison, ptr %513, 0
  %516 = insertvalue { ptr, i32 } %515, i32 %514, 1
  resume { ptr, i32 } %516

517:                                              ; preds = %455, %216
  unreachable
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIS0_IiiES1_ERiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IS2_IiiES3_EiESt6vectorIS5_SaIS5_EEEEPFbRKS5_SC_EEvT_SF_T0_(ptr, ptr, ptr noundef) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #0 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4 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)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn 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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}
!24 = !{!25, !9, i64 0}
!25 = !{!"_ZTSSt4pairIS_IiiES0_E", !26, i64 0, !26, i64 8}
!26 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!27 = !{!25, !9, i64 8}
!28 = !{!25, !9, i64 4}
!29 = !{!25, !9, i64 12}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}
!33 = !{!34, !34, i64 0}
!34 = !{!"bool", !10, i64 0}
!35 = !{!36, !9, i64 0}
!36 = !{!"_ZTSSt4pairIS_IS_IiiES0_EiE", !25, i64 0, !9, i64 16}
!37 = !{!36, !9, i64 4}
!38 = !{!36, !9, i64 8}
!39 = !{!36, !9, i64 12}
!40 = distinct !{!40, !12}
!41 = distinct !{!41, !12}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = distinct !{!44, !12}
!45 = distinct !{!45, !12}
!46 = distinct !{!46, !12}
!47 = distinct !{!47, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>, std::allocator<std::pair<std::pair<std::pair<int, int>, std::pair<int, int>>, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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" }
%"struct.std::pair" = type { %"struct.std::pair.0", i32 }
%"struct.std::pair.0" = type { %"struct.std::pair.2", %"struct.std::pair.2" }
%"struct.std::pair.2" = type { i32, i32 }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<std::pair<int, int>, std::pair<int, int>>, std::allocator<std::pair<std::pair<int, int>, std::pair<int, int>>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.9" = type { ptr }

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@p = external dso_local global i32, align 4
@aa = external dso_local global i32, align 4
@g = external dso_local global [110 x [110 x i32]], align 16
@r = external dso_local global %"class.std::vector", align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [126 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3getiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRKSt4pairIS_IS_IiiES0_EiES4_(ptr noundef nonnull align 4 dereferenceable(20), ptr noundef nonnull align 4 dereferenceable(20)) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"struct.std::pair", align 4
  %7 = alloca %"struct.std::pair.0", align 8
  %8 = alloca %"struct.std::pair.2", align 8
  %9 = alloca %"struct.std::pair.2", align 8
  %10 = alloca %"class.std::vector.4", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.9", align 8
  %15 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %22 = getelementptr i8, ptr %21, i64 -24
  %23 = load i64, ptr %22, align 8
  %24 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %23
  %25 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %24, ptr noundef null)
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %27 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(4) @m)
  %28 = load i32, ptr @n, align 4, !tbaa !8
  %.not124 = icmp slt i32 %28, 1
  %29 = load i32, ptr @m, align 4
  %30 = icmp slt i32 %29, 1
  %or.cond305 = select i1 %.not124, i1 true, i1 %30
  br i1 %or.cond305, label %._crit_edge126, label %.preheader120

.preheader120:                                    ; preds = %0, %._crit_edge
  %31 = phi i32 [ %39, %._crit_edge ], [ %28, %0 ]
  %32 = phi i32 [ %40, %._crit_edge ], [ %29, %0 ]
  %indvars.iv219 = phi i64 [ %indvars.iv.next220, %._crit_edge ], [ 1, %0 ]
  %.not112122 = icmp slt i32 %32, 1
  br i1 %.not112122, label %._crit_edge, label %.lr.ph

._crit_edge126:                                   ; preds = %._crit_edge, %0
  %33 = 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) @aa)
  %34 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @p)
  %35 = load i32, ptr @n, align 4, !tbaa !8
  %.not90131 = icmp slt i32 %35, 1
  %.pre272 = load i32, ptr @m, align 4, !tbaa !8
  br i1 %.not90131, label %._crit_edge139.thread, label %.preheader119.lr.ph

.preheader119.lr.ph:                              ; preds = %._crit_edge126
  %.not111127 = icmp slt i32 %.pre272, 1
  br i1 %.not111127, label %._crit_edge139.thread282, label %.preheader119.preheader

._crit_edge139.thread282:                         ; preds = %.preheader119.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  store i32 1, ptr %1, align 4, !tbaa !8
  br label %.lr.ph158

.preheader119.preheader:                          ; preds = %.preheader119.lr.ph
  %36 = add nuw i32 %35, 1
  %wide.trip.count228 = zext i32 %36 to i64
  %37 = zext nneg i32 %.pre272 to i64
  %xtraiter = and i64 %37, 3
  %38 = icmp ult i32 %.pre272, 4
  %unroll_iter = and i64 %37, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader119

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @n, align 4, !tbaa !8
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader120
  %39 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader120 ]
  %40 = phi i32 [ %44, %._crit_edge.loopexit ], [ %32, %.preheader120 ]
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %41 = sext i32 %39 to i64
  %.not.not = icmp slt i64 %indvars.iv219, %41
  br i1 %.not.not, label %.preheader120, label %._crit_edge126, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader120, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.preheader120 ]
  %42 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv219, i64 %indvars.iv
  %43 = 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) %42)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i32, ptr @m, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  %.not112.not = icmp slt i64 %indvars.iv, %45
  br i1 %.not112.not, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !14

.preheader119:                                    ; preds = %.preheader119.preheader, %._crit_edge130
  %indvars.iv225 = phi i64 [ 1, %.preheader119.preheader ], [ %indvars.iv.next226, %._crit_edge130 ]
  %.phi.trans.insert = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 0
  %.pre271 = load i32, ptr %.phi.trans.insert, align 8, !tbaa !8
  br i1 %38, label %._crit_edge130.unr-lcssa, label %.preheader119.new

.preheader117.lr.ph:                              ; preds = %._crit_edge130
  br i1 %.not90131, label %._crit_edge139.thread, label %.preheader117.preheader

.preheader117.preheader:                          ; preds = %.preheader117.lr.ph
  %46 = add nuw i32 %.pre272, 1
  %wide.trip.count238 = zext i32 %46 to i64
  %47 = zext nneg i32 %35 to i64
  %48 = add nsw i64 %wide.trip.count228, -2
  %xtraiter334 = and i64 %47, 3
  %49 = icmp ult i64 %48, 3
  %unroll_iter338 = and i64 %47, 2147483644
  %lcmp.mod337.not = icmp eq i64 %xtraiter334, 0
  br label %.preheader117

._crit_edge130.unr-lcssa:                         ; preds = %.preheader119.new, %.preheader119
  %.unr = phi i32 [ %.pre271, %.preheader119 ], [ %66, %.preheader119.new ]
  %indvars.iv222.unr = phi i64 [ 1, %.preheader119 ], [ %indvars.iv.next223.3, %.preheader119.new ]
  br i1 %lcmp.mod.not, label %._crit_edge130, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge130.unr-lcssa, %.epil.preheader
  %50 = phi i32 [ %53, %.epil.preheader ], [ %.unr, %._crit_edge130.unr-lcssa ]
  %indvars.iv222.epil = phi i64 [ %indvars.iv.next223.epil, %.epil.preheader ], [ %indvars.iv222.unr, %._crit_edge130.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge130.unr-lcssa ]
  %51 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 %indvars.iv222.epil
  %52 = load i32, ptr %51, align 4, !tbaa !8
  %53 = add nsw i32 %52, %50
  store i32 %53, ptr %51, align 4, !tbaa !8
  %indvars.iv.next223.epil = add nuw nsw i64 %indvars.iv222.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge130, label %.epil.preheader, !llvm.loop !15

._crit_edge130:                                   ; preds = %.epil.preheader, %._crit_edge130.unr-lcssa
  %indvars.iv.next226 = add nuw nsw i64 %indvars.iv225, 1
  %exitcond229.not = icmp eq i64 %indvars.iv.next226, %wide.trip.count228
  br i1 %exitcond229.not, label %.preheader117.lr.ph, label %.preheader119, !llvm.loop !17

.preheader119.new:                                ; preds = %.preheader119, %.preheader119.new
  %54 = phi i32 [ %66, %.preheader119.new ], [ %.pre271, %.preheader119 ]
  %indvars.iv222 = phi i64 [ %indvars.iv.next223.3, %.preheader119.new ], [ 1, %.preheader119 ]
  %niter = phi i64 [ %niter.next.3, %.preheader119.new ], [ 0, %.preheader119 ]
  %55 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 %indvars.iv222
  %56 = load i32, ptr %55, align 4, !tbaa !8
  %57 = add nsw i32 %56, %54
  store i32 %57, ptr %55, align 4, !tbaa !8
  %indvars.iv.next223 = add nuw nsw i64 %indvars.iv222, 1
  %58 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 %indvars.iv.next223
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %60 = add nsw i32 %59, %57
  store i32 %60, ptr %58, align 4, !tbaa !8
  %indvars.iv.next223.1 = add nuw nsw i64 %indvars.iv222, 2
  %61 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 %indvars.iv.next223.1
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = add nsw i32 %62, %60
  store i32 %63, ptr %61, align 4, !tbaa !8
  %indvars.iv.next223.2 = add nuw nsw i64 %indvars.iv222, 3
  %64 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv225, i64 %indvars.iv.next223.2
  %65 = load i32, ptr %64, align 4, !tbaa !8
  %66 = add nsw i32 %65, %63
  store i32 %66, ptr %64, align 4, !tbaa !8
  %indvars.iv.next223.3 = add nuw nsw i64 %indvars.iv222, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge130.unr-lcssa, label %.preheader119.new, !llvm.loop !18

.preheader117:                                    ; preds = %.preheader117.preheader, %._crit_edge136
  %indvars.iv235 = phi i64 [ 1, %.preheader117.preheader ], [ %indvars.iv.next236, %._crit_edge136 ]
  %.phi.trans.insert273 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 0, i64 %indvars.iv235
  %.pre274 = load i32, ptr %.phi.trans.insert273, align 4, !tbaa !8
  br i1 %49, label %._crit_edge136.unr-lcssa, label %.preheader117.new

._crit_edge139.thread:                            ; preds = %._crit_edge126, %.preheader117.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  br label %._crit_edge159.thread

._crit_edge139:                                   ; preds = %._crit_edge136
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #9
  store i32 1, ptr %1, align 4, !tbaa !8
  br i1 %.not90131, label %._crit_edge159.thread, label %.lr.ph158

.lr.ph158:                                        ; preds = %._crit_edge139.thread282, %._crit_edge139
  %67 = getelementptr inbounds i8, ptr %7, i64 8
  br label %89

._crit_edge136.unr-lcssa:                         ; preds = %.preheader117.new, %.preheader117
  %.unr336 = phi i32 [ %.pre274, %.preheader117 ], [ %84, %.preheader117.new ]
  %indvars.iv230.unr = phi i64 [ 1, %.preheader117 ], [ %indvars.iv.next231.3, %.preheader117.new ]
  br i1 %lcmp.mod337.not, label %._crit_edge136, label %.epil.preheader333

.epil.preheader333:                               ; preds = %._crit_edge136.unr-lcssa, %.epil.preheader333
  %68 = phi i32 [ %71, %.epil.preheader333 ], [ %.unr336, %._crit_edge136.unr-lcssa ]
  %indvars.iv230.epil = phi i64 [ %indvars.iv.next231.epil, %.epil.preheader333 ], [ %indvars.iv230.unr, %._crit_edge136.unr-lcssa ]
  %epil.iter335 = phi i64 [ %epil.iter335.next, %.epil.preheader333 ], [ 0, %._crit_edge136.unr-lcssa ]
  %69 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv230.epil, i64 %indvars.iv235
  %70 = load i32, ptr %69, align 4, !tbaa !8
  %71 = add nsw i32 %70, %68
  store i32 %71, ptr %69, align 4, !tbaa !8
  %indvars.iv.next231.epil = add nuw nsw i64 %indvars.iv230.epil, 1
  %epil.iter335.next = add i64 %epil.iter335, 1
  %epil.iter335.cmp.not = icmp eq i64 %epil.iter335.next, %xtraiter334
  br i1 %epil.iter335.cmp.not, label %._crit_edge136, label %.epil.preheader333, !llvm.loop !19

._crit_edge136:                                   ; preds = %.epil.preheader333, %._crit_edge136.unr-lcssa
  %indvars.iv.next236 = add nuw nsw i64 %indvars.iv235, 1
  %exitcond239.not = icmp eq i64 %indvars.iv.next236, %wide.trip.count238
  br i1 %exitcond239.not, label %._crit_edge139, label %.preheader117, !llvm.loop !20

.preheader117.new:                                ; preds = %.preheader117, %.preheader117.new
  %72 = phi i32 [ %84, %.preheader117.new ], [ %.pre274, %.preheader117 ]
  %indvars.iv230 = phi i64 [ %indvars.iv.next231.3, %.preheader117.new ], [ 1, %.preheader117 ]
  %niter339 = phi i64 [ %niter339.next.3, %.preheader117.new ], [ 0, %.preheader117 ]
  %73 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv230, i64 %indvars.iv235
  %74 = load i32, ptr %73, align 4, !tbaa !8
  %75 = add nsw i32 %74, %72
  store i32 %75, ptr %73, align 4, !tbaa !8
  %indvars.iv.next231 = add nuw nsw i64 %indvars.iv230, 1
  %76 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv.next231, i64 %indvars.iv235
  %77 = load i32, ptr %76, align 4, !tbaa !8
  %78 = add nsw i32 %77, %75
  store i32 %78, ptr %76, align 4, !tbaa !8
  %indvars.iv.next231.1 = add nuw nsw i64 %indvars.iv230, 2
  %79 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv.next231.1, i64 %indvars.iv235
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %81 = add nsw i32 %80, %78
  store i32 %81, ptr %79, align 4, !tbaa !8
  %indvars.iv.next231.2 = add nuw nsw i64 %indvars.iv230, 3
  %82 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv.next231.2, i64 %indvars.iv235
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %84 = add nsw i32 %83, %81
  store i32 %84, ptr %82, align 4, !tbaa !8
  %indvars.iv.next231.3 = add nuw nsw i64 %indvars.iv230, 4
  %niter339.next.3 = add i64 %niter339, 4
  %niter339.ncmp.3 = icmp eq i64 %niter339.next.3, %unroll_iter338
  br i1 %niter339.ncmp.3, label %._crit_edge136.unr-lcssa, label %.preheader117.new, !llvm.loop !21

._crit_edge159.thread:                            ; preds = %._crit_edge139, %._crit_edge139.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  br label %._crit_edge167

._crit_edge159:                                   ; preds = %._crit_edge153
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #9
  %.not93165 = icmp slt i32 %96, 1
  %.not102161 = icmp slt i32 %98, 1
  %or.cond = select i1 %.not93165, i1 true, i1 %.not102161
  br i1 %or.cond, label %._crit_edge167, label %.preheader116.preheader

.preheader116.preheader:                          ; preds = %._crit_edge159
  %85 = zext nneg i32 %98 to i64
  %86 = shl nuw nsw i64 %85, 2
  %wide.trip.count246 = zext nneg i32 %96 to i64
  %87 = add nsw i64 %wide.trip.count246, -1
  %xtraiter340 = and i64 %wide.trip.count246, 7
  %88 = icmp ult i64 %87, 7
  br i1 %88, label %._crit_edge167.loopexit.unr-lcssa, label %.preheader116.preheader.new

.preheader116.preheader.new:                      ; preds = %.preheader116.preheader
  %unroll_iter343 = and i64 %wide.trip.count246, 2147483640
  br label %.preheader116

89:                                               ; preds = %.lr.ph158, %._crit_edge153
  %90 = phi i32 [ %35, %.lr.ph158 ], [ %96, %._crit_edge153 ]
  %91 = phi i32 [ %.pre272, %.lr.ph158 ], [ %98, %._crit_edge153 ]
  %92 = phi i32 [ %.pre272, %.lr.ph158 ], [ %99, %._crit_edge153 ]
  %93 = phi i32 [ 1, %.lr.ph158 ], [ %101, %._crit_edge153 ]
  %94 = phi i32 [ %.pre272, %.lr.ph158 ], [ %100, %._crit_edge153 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #9
  store i32 1, ptr %2, align 4, !tbaa !8
  %.not104150 = icmp slt i32 %94, 1
  br i1 %.not104150, label %._crit_edge153, label %.lr.ph152

.lr.ph152:                                        ; preds = %89
  %95 = icmp sgt i32 %93, %90
  br i1 %95, label %._crit_edge153, label %.lr.ph152.split

._crit_edge153.loopexit:                          ; preds = %._crit_edge148
  %.pre278 = load i32, ptr %1, align 4, !tbaa !8
  br label %._crit_edge153

._crit_edge153:                                   ; preds = %.lr.ph152, %._crit_edge153.loopexit, %89
  %96 = phi i32 [ %112, %._crit_edge153.loopexit ], [ %90, %89 ], [ %90, %.lr.ph152 ]
  %97 = phi i32 [ %.pre278, %._crit_edge153.loopexit ], [ %93, %89 ], [ %93, %.lr.ph152 ]
  %98 = phi i32 [ %113, %._crit_edge153.loopexit ], [ %91, %89 ], [ %91, %.lr.ph152 ]
  %99 = phi i32 [ %114, %._crit_edge153.loopexit ], [ %92, %89 ], [ %91, %.lr.ph152 ]
  %100 = phi i32 [ %114, %._crit_edge153.loopexit ], [ %94, %89 ], [ %91, %.lr.ph152 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #9
  %101 = add nsw i32 %97, 1
  store i32 %101, ptr %1, align 4, !tbaa !8
  %.not92.not = icmp slt i32 %97, %96
  br i1 %.not92.not, label %89, label %._crit_edge159, !llvm.loop !22

.lr.ph152.split:                                  ; preds = %.lr.ph152, %._crit_edge148
  %102 = phi i32 [ %112, %._crit_edge148 ], [ %90, %.lr.ph152 ]
  %103 = phi i32 [ %113, %._crit_edge148 ], [ %91, %.lr.ph152 ]
  %104 = phi i32 [ %114, %._crit_edge148 ], [ %92, %.lr.ph152 ]
  %105 = phi i32 [ %116, %._crit_edge148 ], [ %90, %.lr.ph152 ]
  %106 = phi i32 [ %117, %._crit_edge148 ], [ %90, %.lr.ph152 ]
  %107 = phi i32 [ %114, %._crit_edge148 ], [ %94, %.lr.ph152 ]
  %108 = phi i32 [ %119, %._crit_edge148 ], [ 1, %.lr.ph152 ]
  %109 = phi i32 [ %118, %._crit_edge148 ], [ %90, %.lr.ph152 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %110 = load i32, ptr %1, align 4, !tbaa !8
  store i32 %110, ptr %3, align 4, !tbaa !8
  %.not106145 = icmp sgt i32 %110, %109
  br i1 %.not106145, label %._crit_edge148, label %.lr.ph147

.lr.ph147:                                        ; preds = %.lr.ph152.split
  %111 = icmp sgt i32 %108, %107
  br i1 %111, label %._crit_edge148, label %.lr.ph147.split

._crit_edge148.loopexit:                          ; preds = %._crit_edge144
  %.pre277 = load i32, ptr %2, align 4, !tbaa !8
  br label %._crit_edge148

._crit_edge148:                                   ; preds = %.lr.ph147, %._crit_edge148.loopexit, %.lr.ph152.split
  %112 = phi i32 [ %128, %._crit_edge148.loopexit ], [ %102, %.lr.ph152.split ], [ %102, %.lr.ph147 ]
  %113 = phi i32 [ %129, %._crit_edge148.loopexit ], [ %103, %.lr.ph152.split ], [ %103, %.lr.ph147 ]
  %114 = phi i32 [ %130, %._crit_edge148.loopexit ], [ %104, %.lr.ph152.split ], [ %104, %.lr.ph147 ]
  %115 = phi i32 [ %.pre277, %._crit_edge148.loopexit ], [ %108, %.lr.ph152.split ], [ %108, %.lr.ph147 ]
  %116 = phi i32 [ %131, %._crit_edge148.loopexit ], [ %105, %.lr.ph152.split ], [ %105, %.lr.ph147 ]
  %117 = phi i32 [ %132, %._crit_edge148.loopexit ], [ %106, %.lr.ph152.split ], [ %105, %.lr.ph147 ]
  %118 = phi i32 [ %132, %._crit_edge148.loopexit ], [ %109, %.lr.ph152.split ], [ %105, %.lr.ph147 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  %119 = add nsw i32 %115, 1
  store i32 %119, ptr %2, align 4, !tbaa !8
  %.not104.not = icmp slt i32 %115, %114
  br i1 %.not104.not, label %.lr.ph152.split, label %._crit_edge153.loopexit, !llvm.loop !23

.lr.ph147.split:                                  ; preds = %.lr.ph147, %._crit_edge144
  %120 = phi i32 [ %128, %._crit_edge144 ], [ %102, %.lr.ph147 ]
  %121 = phi i32 [ %129, %._crit_edge144 ], [ %103, %.lr.ph147 ]
  %122 = phi i32 [ %130, %._crit_edge144 ], [ %104, %.lr.ph147 ]
  %123 = phi i32 [ %131, %._crit_edge144 ], [ %105, %.lr.ph147 ]
  %124 = phi i32 [ %132, %._crit_edge144 ], [ %106, %.lr.ph147 ]
  %125 = phi i32 [ %135, %._crit_edge144 ], [ %110, %.lr.ph147 ]
  %126 = phi i32 [ %134, %._crit_edge144 ], [ %107, %.lr.ph147 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #9
  %127 = load i32, ptr %2, align 4, !tbaa !8
  store i32 %127, ptr %4, align 4, !tbaa !8
  %.not108140 = icmp sgt i32 %127, %126
  br i1 %.not108140, label %._crit_edge144, label %.lr.ph143

._crit_edge144.loopexit:                          ; preds = %158
  %.pre275 = load i32, ptr %3, align 4, !tbaa !8
  %.pre276 = load i32, ptr @n, align 4, !tbaa !8
  br label %._crit_edge144

._crit_edge144:                                   ; preds = %._crit_edge144.loopexit, %.lr.ph147.split
  %128 = phi i32 [ %.pre276, %._crit_edge144.loopexit ], [ %120, %.lr.ph147.split ]
  %129 = phi i32 [ %161, %._crit_edge144.loopexit ], [ %121, %.lr.ph147.split ]
  %130 = phi i32 [ %161, %._crit_edge144.loopexit ], [ %122, %.lr.ph147.split ]
  %131 = phi i32 [ %.pre276, %._crit_edge144.loopexit ], [ %123, %.lr.ph147.split ]
  %132 = phi i32 [ %.pre276, %._crit_edge144.loopexit ], [ %124, %.lr.ph147.split ]
  %133 = phi i32 [ %.pre275, %._crit_edge144.loopexit ], [ %125, %.lr.ph147.split ]
  %134 = phi i32 [ %161, %._crit_edge144.loopexit ], [ %126, %.lr.ph147.split ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #9
  %135 = add nsw i32 %133, 1
  store i32 %135, ptr %3, align 4, !tbaa !8
  %.not106.not = icmp slt i32 %133, %132
  br i1 %.not106.not, label %.lr.ph147.split, label %._crit_edge148.loopexit, !llvm.loop !24

.lr.ph143:                                        ; preds = %.lr.ph147.split, %158
  %storemerge107141 = phi i32 [ %160, %158 ], [ %127, %.lr.ph147.split ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  %136 = load i32, ptr %3, align 4, !tbaa !8
  %137 = load i32, ptr %1, align 4, !tbaa !8
  %138 = add i32 %136, 1
  %139 = sub i32 %138, %137
  %140 = load i32, ptr %2, align 4, !tbaa !8
  %141 = add i32 %storemerge107141, 1
  %142 = sub i32 %141, %140
  %143 = mul nsw i32 %142, %139
  store i32 %143, ptr %5, align 4, !tbaa !8
  %144 = load i32, ptr @aa, align 4, !tbaa !8
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %158, label %146

146:                                              ; preds = %.lr.ph143
  %147 = call noundef i32 @_Z3getiiii(i32 noundef %137, i32 noundef %140, i32 noundef %136, i32 noundef %storemerge107141)
  %148 = mul nsw i32 %147, 100
  %149 = load i32, ptr @p, align 4, !tbaa !8
  %150 = load i32, ptr %5, align 4, !tbaa !8
  %151 = mul nsw i32 %150, %149
  %.not109 = icmp slt i32 %148, %151
  br i1 %.not109, label %158, label %152

152:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  %153 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i64 %153, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #9
  %154 = call i64 @_ZSt9make_pairIRiS0_ESt4pairINSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store i64 %154, ptr %9, align 8
  %155 = call { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(8) %9)
  %156 = extractvalue { i64, i64 } %155, 0
  store i64 %156, ptr %7, align 8
  %157 = extractvalue { i64, i64 } %155, 1
  store i64 %157, ptr %67, align 8
  call void @_ZSt9make_pairISt4pairIS0_IiiES1_ERiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 4 %6, ptr noundef nonnull align 4 dereferenceable(16) %7, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) @r, ptr noundef nonnull align 4 dereferenceable(20) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %6) #9
  br label %158

158:                                              ; preds = %146, %152, %.lr.ph143
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  %159 = load i32, ptr %4, align 4, !tbaa !8
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %4, align 4, !tbaa !8
  %161 = load i32, ptr @m, align 4, !tbaa !8
  %.not108.not = icmp slt i32 %159, %161
  br i1 %.not108.not, label %.lr.ph143, label %._crit_edge144.loopexit, !llvm.loop !25

.preheader116:                                    ; preds = %.preheader116, %.preheader116.preheader.new
  %indvar = phi i64 [ 0, %.preheader116.preheader.new ], [ %indvar.next.7, %.preheader116 ]
  %niter344 = phi i64 [ 0, %.preheader116.preheader.new ], [ %niter344.next.7, %.preheader116 ]
  %162 = mul nuw nsw i64 %indvar, 440
  %gep = getelementptr i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 %162
  call void @llvm.memset.p0.i64(ptr align 4 %gep, i8 0, i64 %86, i1 false), !tbaa !8
  %163 = mul nuw i64 %indvar, 440
  %gep359 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 440), i64 %163
  call void @llvm.memset.p0.i64(ptr align 4 %gep359, i8 0, i64 %86, i1 false), !tbaa !8
  %164 = mul nuw i64 %indvar, 440
  %gep360 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 880), i64 %164
  call void @llvm.memset.p0.i64(ptr align 4 %gep360, i8 0, i64 %86, i1 false), !tbaa !8
  %165 = mul nuw i64 %indvar, 440
  %gep361 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 1320), i64 %165
  call void @llvm.memset.p0.i64(ptr align 4 %gep361, i8 0, i64 %86, i1 false), !tbaa !8
  %166 = mul nuw i64 %indvar, 440
  %gep362 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 1760), i64 %166
  call void @llvm.memset.p0.i64(ptr align 4 %gep362, i8 0, i64 %86, i1 false), !tbaa !8
  %167 = mul nuw i64 %indvar, 440
  %gep363 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 2200), i64 %167
  call void @llvm.memset.p0.i64(ptr align 4 %gep363, i8 0, i64 %86, i1 false), !tbaa !8
  %168 = mul nuw i64 %indvar, 440
  %gep364 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 2640), i64 %168
  call void @llvm.memset.p0.i64(ptr align 4 %gep364, i8 0, i64 %86, i1 false), !tbaa !8
  %169 = mul nuw i64 %indvar, 440
  %gep365 = getelementptr i8, ptr getelementptr (i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 3080), i64 %169
  call void @llvm.memset.p0.i64(ptr align 4 %gep365, i8 0, i64 %86, i1 false), !tbaa !8
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter344.next.7 = add i64 %niter344, 8
  %niter344.ncmp.7 = icmp eq i64 %niter344.next.7, %unroll_iter343
  br i1 %niter344.ncmp.7, label %._crit_edge167.loopexit.unr-lcssa, label %.preheader116, !llvm.loop !26

._crit_edge167.loopexit.unr-lcssa:                ; preds = %.preheader116, %.preheader116.preheader
  %indvar.unr = phi i64 [ 0, %.preheader116.preheader ], [ %indvar.next.7, %.preheader116 ]
  %lcmp.mod342.not = icmp eq i64 %xtraiter340, 0
  br i1 %lcmp.mod342.not, label %._crit_edge167, label %.preheader116.epil

.preheader116.epil:                               ; preds = %._crit_edge167.loopexit.unr-lcssa, %.preheader116.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader116.epil ], [ %indvar.unr, %._crit_edge167.loopexit.unr-lcssa ]
  %epil.iter341 = phi i64 [ %epil.iter341.next, %.preheader116.epil ], [ 0, %._crit_edge167.loopexit.unr-lcssa ]
  %170 = mul nuw nsw i64 %indvar.epil, 440
  %gep.epil = getelementptr i8, ptr getelementptr inbounds (i8, ptr @g, i64 444), i64 %170
  call void @llvm.memset.p0.i64(ptr align 4 %gep.epil, i8 0, i64 %86, i1 false), !tbaa !8
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter341.next = add i64 %epil.iter341, 1
  %epil.iter341.cmp.not = icmp eq i64 %epil.iter341.next, %xtraiter340
  br i1 %epil.iter341.cmp.not, label %._crit_edge167, label %.preheader116.epil, !llvm.loop !27

._crit_edge167:                                   ; preds = %._crit_edge167.loopexit.unr-lcssa, %.preheader116.epil, %._crit_edge159.thread, %._crit_edge159
  %171 = call noundef zeroext i1 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #9
  br i1 %171, label %285, label %172

172:                                              ; preds = %._crit_edge167
  %173 = call ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #9
  %174 = call ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #9
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IS2_IiiES3_EiESt6vectorIS5_SaIS5_EEEEPFbRKS5_SC_EEvT_SF_T0_(ptr %173, ptr %174, ptr noundef nonnull @_Z3cmpRKSt4pairIS_IS_IiiES0_EiES4_)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #9
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  %175 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef 0) #9
  invoke void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(16) %175)
          to label %176 unwind label %182

176:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  %177 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %177, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %178 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %178, ptr %12, align 8
  %179 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br i1 %179, label %.lr.ph179, label %._crit_edge180

._crit_edge180:                                   ; preds = %._crit_edge177, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  %180 = call noundef i64 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #9
  %181 = icmp ugt i64 %180, 1
  br i1 %181, label %.lr.ph205, label %._crit_edge206

182:                                              ; preds = %172
  %183 = landingpad { ptr, i32 }
          cleanup
  br label %284

.lr.ph179:                                        ; preds = %176, %._crit_edge177
  %184 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %185 = load i32, ptr %184, align 4, !tbaa !28
  %186 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %187 = getelementptr inbounds i8, ptr %186, i64 8
  %188 = load i32, ptr %187, align 4, !tbaa !31
  %.not100173 = icmp sgt i32 %185, %188
  br i1 %.not100173, label %._crit_edge177, label %.lr.ph176.preheader

.lr.ph176.preheader:                              ; preds = %.lr.ph179
  %189 = sext i32 %185 to i64
  br label %.lr.ph176

._crit_edge177:                                   ; preds = %._crit_edge172, %.lr.ph179
  %190 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  %191 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %191, ptr %12, align 8
  %192 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  br i1 %192, label %.lr.ph179, label %._crit_edge180, !llvm.loop !32

.lr.ph176:                                        ; preds = %.lr.ph176.preheader, %._crit_edge172
  %indvars.iv251 = phi i64 [ %189, %.lr.ph176.preheader ], [ %indvars.iv.next252, %._crit_edge172 ]
  %193 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %194 = getelementptr inbounds i8, ptr %193, i64 4
  %195 = load i32, ptr %194, align 4, !tbaa !33
  %196 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %197 = getelementptr inbounds i8, ptr %196, i64 12
  %198 = load i32, ptr %197, align 4, !tbaa !34
  %.not101168 = icmp sgt i32 %195, %198
  br i1 %.not101168, label %._crit_edge172, label %.lr.ph171

.lr.ph171:                                        ; preds = %.lr.ph176
  %199 = sext i32 %195 to i64
  br label %204

._crit_edge172:                                   ; preds = %209, %.lr.ph176
  %indvars.iv.next252 = add nsw i64 %indvars.iv251, 1
  %200 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %201 = getelementptr inbounds i8, ptr %200, i64 8
  %202 = load i32, ptr %201, align 4, !tbaa !31
  %203 = sext i32 %202 to i64
  %.not100.not = icmp slt i64 %indvars.iv251, %203
  br i1 %.not100.not, label %.lr.ph176, label %._crit_edge177, !llvm.loop !35

204:                                              ; preds = %.lr.ph171, %209
  %indvars.iv248 = phi i64 [ %199, %.lr.ph171 ], [ %indvars.iv.next249, %209 ]
  %205 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv251, i64 %indvars.iv248
  %206 = load i32, ptr %205, align 4, !tbaa !8
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %209, label %208

208:                                              ; preds = %204
  call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.2, i32 noundef 134, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #10
  unreachable

209:                                              ; preds = %204
  store i32 1, ptr %205, align 4, !tbaa !8
  %indvars.iv.next249 = add nsw i64 %indvars.iv248, 1
  %210 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #9
  %211 = getelementptr inbounds i8, ptr %210, i64 12
  %212 = load i32, ptr %211, align 4, !tbaa !34
  %213 = sext i32 %212 to i64
  %.not101.not = icmp slt i64 %indvars.iv248, %213
  br i1 %.not101.not, label %204, label %._crit_edge172, !llvm.loop !36

._crit_edge206:                                   ; preds = %._crit_edge193.thread, %._crit_edge180
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #9
  %214 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %214, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %215 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %215, ptr %14, align 8
  %216 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br i1 %216, label %.lr.ph208, label %._crit_edge209

.lr.ph205:                                        ; preds = %._crit_edge180, %._crit_edge193.thread
  %indvars.iv268 = phi i64 [ %indvars.iv.next269, %._crit_edge193.thread ], [ 1, %._crit_edge180 ]
  %217 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %indvars.iv268) #9
  %218 = load i32, ptr %217, align 4, !tbaa !37
  %219 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %indvars.iv268) #9
  %220 = getelementptr inbounds i8, ptr %219, i64 4
  %221 = load i32, ptr %220, align 4, !tbaa !39
  %222 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %indvars.iv268) #9
  %223 = getelementptr inbounds i8, ptr %222, i64 8
  %224 = load i32, ptr %223, align 4, !tbaa !40
  %225 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %indvars.iv268) #9
  %226 = getelementptr inbounds i8, ptr %225, i64 12
  %227 = load i32, ptr %226, align 4, !tbaa !41
  %.not94190 = icmp sgt i32 %218, %224
  %.not98181 = icmp sgt i32 %221, %227
  %or.cond306 = select i1 %.not94190, i1 true, i1 %.not98181
  br i1 %or.cond306, label %._crit_edge202, label %.preheader114.preheader

.preheader114.preheader:                          ; preds = %.lr.ph205
  %228 = sext i32 %221 to i64
  %229 = add i32 %227, 1
  %.not94.not287 = icmp sgt i32 %224, 111
  br label %.preheader114.outer

.preheader114.outer:                              ; preds = %._crit_edge184.thread, %.preheader114.preheader
  %.071192.ph = phi i32 [ 112, %._crit_edge184.thread ], [ %218, %.preheader114.preheader ]
  %.075191.ph = phi i1 [ false, %._crit_edge184.thread ], [ true, %.preheader114.preheader ]
  br label %.preheader114

.preheader114:                                    ; preds = %.preheader114.outer, %._crit_edge184
  %.071192 = phi i32 [ %242, %._crit_edge184 ], [ %.071192.ph, %.preheader114.outer ]
  %230 = sext i32 %.071192 to i64
  br label %239

._crit_edge193:                                   ; preds = %._crit_edge184
  br i1 %.075191.ph, label %.preheader115, label %._crit_edge193.thread

.preheader115:                                    ; preds = %._crit_edge193
  %.not97196 = icmp sgt i32 %221, %227
  %or.cond303 = select i1 %.not94190, i1 true, i1 %.not97196
  br i1 %or.cond303, label %._crit_edge202, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.preheader115
  %231 = sext i32 %221 to i64
  %232 = add i32 %227, 1
  %233 = sext i32 %218 to i64
  %234 = add i32 %224, 1
  %235 = sub i32 %227, %221
  %236 = zext i32 %235 to i64
  %237 = add nuw nsw i64 %236, 1
  %min.iters.check = icmp ult i32 %235, 7
  %n.vec = and i64 %237, 8589934584
  %ind.end = add nsw i64 %n.vec, %231
  %cmp.n = icmp eq i64 %237, %n.vec
  br label %.preheader

238:                                              ; preds = %239
  %indvars.iv.next255 = add nsw i64 %indvars.iv254, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next255 to i32
  %exitcond257.not = icmp eq i32 %229, %lftr.wideiv
  br i1 %exitcond257.not, label %._crit_edge184, label %239, !llvm.loop !42

239:                                              ; preds = %.preheader114, %238
  %indvars.iv254 = phi i64 [ %228, %.preheader114 ], [ %indvars.iv.next255, %238 ]
  %240 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %230, i64 %indvars.iv254
  %241 = load i32, ptr %240, align 4, !tbaa !8
  %.not99 = icmp eq i32 %241, 0
  br i1 %.not99, label %238, label %._crit_edge184.thread

._crit_edge184:                                   ; preds = %238
  %242 = add nsw i32 %.071192, 1
  %.not94.not = icmp slt i32 %.071192, %224
  br i1 %.not94.not, label %.preheader114, label %._crit_edge193, !llvm.loop !43

._crit_edge184.thread:                            ; preds = %239
  br i1 %.not94.not287, label %.preheader114.outer, label %._crit_edge193.thread, !llvm.loop !43

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge199
  %indvars.iv263 = phi i64 [ %233, %.preheader.preheader ], [ %indvars.iv.next264, %._crit_edge199 ]
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader
  %indvars.iv258.ph = phi i64 [ %231, %.preheader ], [ %ind.end, %middle.block ]
  br label %scalar.ph

vector.body:                                      ; preds = %.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader ]
  %offset.idx = add i64 %index, %231
  %243 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv263, i64 %offset.idx
  %244 = getelementptr inbounds i8, ptr %243, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %243, align 4, !tbaa !8
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %244, align 4, !tbaa !8
  %index.next = add nuw i64 %index, 8
  %245 = icmp eq i64 %index.next, %n.vec
  br i1 %245, label %middle.block, label %vector.body, !llvm.loop !44

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

._crit_edge199:                                   ; preds = %scalar.ph, %middle.block
  %indvars.iv.next264 = add nsw i64 %indvars.iv263, 1
  %lftr.wideiv266 = trunc i64 %indvars.iv.next264 to i32
  %exitcond267.not = icmp eq i32 %234, %lftr.wideiv266
  br i1 %exitcond267.not, label %._crit_edge202, label %.preheader, !llvm.loop !47

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv258 = phi i64 [ %indvars.iv.next259, %scalar.ph ], [ %indvars.iv258.ph, %scalar.ph.preheader ]
  %246 = getelementptr inbounds [110 x [110 x i32]], ptr @g, i64 0, i64 %indvars.iv263, i64 %indvars.iv258
  store i32 1, ptr %246, align 4, !tbaa !8
  %indvars.iv.next259 = add nsw i64 %indvars.iv258, 1
  %lftr.wideiv261 = trunc i64 %indvars.iv.next259 to i32
  %exitcond262.not = icmp eq i32 %232, %lftr.wideiv261
  br i1 %exitcond262.not, label %._crit_edge199, label %scalar.ph, !llvm.loop !48

._crit_edge202:                                   ; preds = %._crit_edge199, %.lr.ph205, %.preheader115
  %247 = call noundef nonnull align 4 dereferenceable(20) ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) @r, i64 noundef %indvars.iv268) #9
  invoke void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 4 dereferenceable(16) %247)
          to label %._crit_edge193.thread unwind label %248

248:                                              ; preds = %._crit_edge202
  %249 = landingpad { ptr, i32 }
          cleanup
  br label %284

._crit_edge193.thread:                            ; preds = %._crit_edge184.thread, %._crit_edge202, %._crit_edge193
  %indvars.iv.next269 = add nuw nsw i64 %indvars.iv268, 1
  %250 = call noundef i64 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @r) #9
  %251 = icmp ugt i64 %250, %indvars.iv.next269
  br i1 %251, label %.lr.ph205, label %._crit_edge206, !llvm.loop !49

._crit_edge209:                                   ; preds = %278, %._crit_edge206
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  br label %285

.lr.ph208:                                        ; preds = %._crit_edge206, %278
  %252 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %253 = load i32, ptr %252, align 4, !tbaa !28
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %253)
          to label %255 unwind label %282

255:                                              ; preds = %.lr.ph208
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %254, i8 noundef signext 32)
          to label %257 unwind label %282

257:                                              ; preds = %255
  %258 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %259 = getelementptr inbounds i8, ptr %258, i64 4
  %260 = load i32, ptr %259, align 4, !tbaa !33
  %261 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %256, i32 noundef %260)
          to label %262 unwind label %282

262:                                              ; preds = %257
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %261, i8 noundef signext 32)
          to label %264 unwind label %282

264:                                              ; preds = %262
  %265 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %266 = getelementptr inbounds i8, ptr %265, i64 8
  %267 = load i32, ptr %266, align 4, !tbaa !31
  %268 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %263, i32 noundef %267)
          to label %269 unwind label %282

269:                                              ; preds = %264
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %268, i8 noundef signext 32)
          to label %271 unwind label %282

271:                                              ; preds = %269
  %272 = call noundef ptr @_ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  %273 = getelementptr inbounds i8, ptr %272, i64 12
  %274 = load i32, ptr %273, align 4, !tbaa !34
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %270, i32 noundef %274)
          to label %276 unwind label %282

276:                                              ; preds = %271
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %275, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %278 unwind label %282

278:                                              ; preds = %276
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #9
  %280 = call ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  store ptr %280, ptr %14, align 8
  %281 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  br i1 %281, label %.lr.ph208, label %._crit_edge209, !llvm.loop !50

282:                                              ; preds = %276, %271, %269, %264, %262, %257, %255, %.lr.ph208
  %283 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #9
  br label %284

284:                                              ; preds = %282, %248, %182
  %.pn = phi { ptr, i32 } [ %249, %248 ], [ %283, %282 ], [ %183, %182 ]
  call void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #9
  resume { ptr, i32 } %.pn

285:                                              ; preds = %._crit_edge167, %._crit_edge209
  ret i32 0
}

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZSt9make_pairISt4pairIS0_IiiES1_ERiES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS4_INS5_IT0_E4typeEE6__typeEEOS6_OSB_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 4, ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZSt9make_pairISt4pairIiiES1_ES0_INSt25__strip_reference_wrapperINSt5decayIT_E4typeEE6__typeENS2_INS3_IT0_E4typeEE6__typeEEOS4_OS9_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPSt4pairIS2_IS2_IiiES3_EiESt6vectorIS5_SaIS5_EEEEPFbRKS5_SC_EEvT_SF_T0_(ptr, ptr, ptr noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPSt4pairIS1_IiiES2_ESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIS0_IS0_IiiES1_EiESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4 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)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorISt4pairIS0_IiiES1_ESaIS2_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { noreturn 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 = distinct !{!11, !12, !13}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!"llvm.loop.unswitch.partial.disable"}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12, !13}
!24 = distinct !{!24, !12, !13}
!25 = distinct !{!25, !12}
!26 = distinct !{!26, !12}
!27 = distinct !{!27, !16}
!28 = !{!29, !9, i64 0}
!29 = !{!"_ZTSSt4pairIS_IiiES0_E", !30, i64 0, !30, i64 8}
!30 = !{!"_ZTSSt4pairIiiE", !9, i64 0, !9, i64 4}
!31 = !{!29, !9, i64 8}
!32 = distinct !{!32, !12}
!33 = !{!29, !9, i64 4}
!34 = !{!29, !9, i64 12}
!35 = distinct !{!35, !12}
!36 = distinct !{!36, !12}
!37 = !{!38, !9, i64 0}
!38 = !{!"_ZTSSt4pairIS_IS_IiiES0_EiE", !29, i64 0, !9, i64 16}
!39 = !{!38, !9, i64 4}
!40 = !{!38, !9, i64 8}
!41 = !{!38, !9, i64 12}
!42 = distinct !{!42, !12}
!43 = distinct !{!43, !12}
!44 = distinct !{!44, !12, !45, !46}
!45 = !{!"llvm.loop.isvectorized", i32 1}
!46 = !{!"llvm.loop.unroll.runtime.disable"}
!47 = distinct !{!47, !12}
!48 = distinct !{!48, !12, !46, !45}
!49 = distinct !{!49, !12}
!50 = distinct !{!50, !12}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass