; LLVM IR from eyangch/competitive-programming :: Codeforces/1337 (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::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"struct.std::greater" = type { i8 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca [3 x i64], align 16
  %4 = alloca [3 x %"class.std::vector"], align 16
  %5 = alloca [3 x %"class.std::vector"], align 16
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i64, align 8
  %27 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca %"struct.std::greater", align 1
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca i64, align 8
  %33 = alloca i64, align 8
  %34 = alloca i64, align 8
  %35 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %36 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %37 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %38 = getelementptr i8, ptr %37, i64 -24
  %39 = load i64, ptr %38, align 8
  %40 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %39
  %41 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %40, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #8
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  br label %43

43:                                               ; preds = %322, %0
  %44 = load i64, ptr %2, align 8, !tbaa !8
  %45 = add nsw i64 %44, -1
  store i64 %45, ptr %2, align 8, !tbaa !8
  %46 = icmp ne i64 %44, 0
  br i1 %46, label %47, label %343

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #8
  %48 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 0
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 1
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %49, ptr noundef nonnull align 8 dereferenceable(8) %50)
  %52 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 2
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef nonnull align 8 dereferenceable(8) %52)
  call void @llvm.lifetime.start.p0(i64 72, ptr %4) #8
  %54 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %55 = getelementptr inbounds %"class.std::vector", ptr %54, i64 3
  br label %56

56:                                               ; preds = %56, %47
  %57 = phi ptr [ %54, %47 ], [ %58, %56 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %57) #8
  %58 = getelementptr inbounds %"class.std::vector", ptr %57, i64 1
  %59 = icmp eq ptr %58, %55
  br i1 %59, label %60, label %56

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #8
  %61 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %62 = getelementptr inbounds %"class.std::vector", ptr %61, i64 3
  br label %63

63:                                               ; preds = %63, %60
  %64 = phi ptr [ %61, %60 ], [ %65, %63 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %64) #8
  %65 = getelementptr inbounds %"class.std::vector", ptr %64, i64 1
  %66 = icmp eq ptr %65, %62
  br i1 %66, label %67, label %63

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  store i64 0, ptr %6, align 8, !tbaa !8
  br label %68

68:                                               ; preds = %126, %67
  %69 = load i64, ptr %6, align 8, !tbaa !8
  %70 = icmp slt i64 %69, 3
  br i1 %70, label %72, label %71

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

72:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store i64 0, ptr %8, align 8, !tbaa !8
  br label %73

73:                                               ; preds = %86, %72
  %74 = load i64, ptr %8, align 8, !tbaa !8
  %75 = load i64, ptr %6, align 8, !tbaa !8
  %76 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !8
  %78 = icmp slt i64 %74, %77
  br i1 %78, label %80, label %79

79:                                               ; preds = %73
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %93

80:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  %81 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %82 unwind label %89

82:                                               ; preds = %80
  %83 = load i64, ptr %6, align 8, !tbaa !8
  %84 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %83
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %85 unwind label %89

85:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %86

86:                                               ; preds = %85
  %87 = load i64, ptr %8, align 8, !tbaa !8
  %88 = add nsw i64 %87, 1
  store i64 %88, ptr %8, align 8, !tbaa !8
  br label %73, !llvm.loop !11

89:                                               ; preds = %82, %80
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %10, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %133

93:                                               ; preds = %79
  %94 = load i64, ptr %6, align 8, !tbaa !8
  %95 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %94
  %96 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %95) #8
  %97 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %96, ptr %97, align 8
  %98 = load i64, ptr %6, align 8, !tbaa !8
  %99 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %98
  %100 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #8
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  %102 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %13, i32 0, i32 0
  %105 = load ptr, ptr %104, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %103, ptr %105)
          to label %106 unwind label %129

106:                                              ; preds = %93
  %107 = load i64, ptr %6, align 8, !tbaa !8
  %108 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %107
  %109 = load i64, ptr %6, align 8, !tbaa !8
  %110 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %109
  %111 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 8 dereferenceable(24) %108)
          to label %112 unwind label %129

112:                                              ; preds = %106
  %113 = load i64, ptr %6, align 8, !tbaa !8
  %114 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %113
  %115 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #8
  %116 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %115, ptr %116, align 8
  %117 = load i64, ptr %6, align 8, !tbaa !8
  %118 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %117
  %119 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %118) #8
  %120 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %119, ptr %120, align 8
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %124 = load ptr, ptr %123, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %122, ptr %124)
          to label %125 unwind label %129

125:                                              ; preds = %112
  br label %126

126:                                              ; preds = %125
  %127 = load i64, ptr %6, align 8, !tbaa !8
  %128 = add nsw i64 %127, 1
  store i64 %128, ptr %6, align 8, !tbaa !8
  br label %68, !llvm.loop !13

129:                                              ; preds = %112, %106, %93
  %130 = landingpad { ptr, i32 }
          cleanup
  %131 = extractvalue { ptr, i32 } %130, 0
  store ptr %131, ptr %10, align 8
  %132 = extractvalue { ptr, i32 } %130, 1
  store i32 %132, ptr %11, align 4
  br label %133

133:                                              ; preds = %129, %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  br label %328

134:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 9223372036854775807, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  store i64 0, ptr %17, align 8, !tbaa !8
  br label %135

135:                                              ; preds = %300, %134
  %136 = load i64, ptr %17, align 8, !tbaa !8
  %137 = icmp slt i64 %136, 3
  br i1 %137, label %139, label %138

138:                                              ; preds = %135
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %303

139:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store i64 0, ptr %18, align 8, !tbaa !8
  br label %140

140:                                              ; preds = %296, %139
  %141 = load i64, ptr %18, align 8, !tbaa !8
  %142 = icmp slt i64 %141, 3
  br i1 %142, label %144, label %143

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

144:                                              ; preds = %140
  %145 = load i64, ptr %18, align 8, !tbaa !8
  %146 = load i64, ptr %17, align 8, !tbaa !8
  %147 = icmp eq i64 %145, %146
  br i1 %147, label %148, label %149

148:                                              ; preds = %144
  br label %296

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

150:                                              ; preds = %292, %149
  %151 = load i64, ptr %19, align 8, !tbaa !8
  %152 = icmp slt i64 %151, 3
  br i1 %152, label %154, label %153

153:                                              ; preds = %150
  store i32 16, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %295

154:                                              ; preds = %150
  %155 = load i64, ptr %19, align 8, !tbaa !8
  %156 = load i64, ptr %17, align 8, !tbaa !8
  %157 = icmp eq i64 %155, %156
  br i1 %157, label %162, label %158

158:                                              ; preds = %154
  %159 = load i64, ptr %19, align 8, !tbaa !8
  %160 = load i64, ptr %18, align 8, !tbaa !8
  %161 = icmp eq i64 %159, %160
  br i1 %161, label %162, label %163

162:                                              ; preds = %158, %154
  br label %292

163:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store i64 0, ptr %20, align 8, !tbaa !8
  br label %164

164:                                              ; preds = %282, %163
  %165 = load i64, ptr %20, align 8, !tbaa !8
  %166 = load i64, ptr %18, align 8, !tbaa !8
  %167 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 %166
  %168 = load i64, ptr %167, align 8, !tbaa !8
  %169 = icmp slt i64 %165, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %164
  store i32 19, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  br label %291

171:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %172 = load i64, ptr %17, align 8, !tbaa !8
  %173 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %172
  %174 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %173) #8
  %175 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %174, ptr %175, align 8
  %176 = load i64, ptr %17, align 8, !tbaa !8
  %177 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %176
  %178 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %177) #8
  %179 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %178, ptr %179, align 8
  %180 = load i64, ptr %18, align 8, !tbaa !8
  %181 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %180
  %182 = load i64, ptr %20, align 8, !tbaa !8
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef %182) #8
  %184 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8
  %186 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8
  %188 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET_S7_S7_RKT0_(ptr %185, ptr %187, ptr noundef nonnull align 8 dereferenceable(8) %183)
          to label %189 unwind label %202

189:                                              ; preds = %171
  %190 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %188, ptr %190, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %191 = load i64, ptr %17, align 8, !tbaa !8
  %192 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %191
  %193 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %192) #8
  %194 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %193, ptr %194, align 8
  %195 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  store i64 %195, ptr %21, align 8, !tbaa !8
  %196 = load i64, ptr %21, align 8, !tbaa !8
  %197 = load i64, ptr %17, align 8, !tbaa !8
  %198 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !8
  %200 = icmp eq i64 %196, %199
  br i1 %200, label %201, label %206

201:                                              ; preds = %189
  store i32 21, ptr %7, align 4
  br label %279

202:                                              ; preds = %171
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %10, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %290

206:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %207 = load i64, ptr %19, align 8, !tbaa !8
  %208 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %207
  %209 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %208) #8
  %210 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %209, ptr %210, align 8
  %211 = load i64, ptr %19, align 8, !tbaa !8
  %212 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %211
  %213 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #8
  %214 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  %215 = load i64, ptr %18, align 8, !tbaa !8
  %216 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %215
  %217 = load i64, ptr %20, align 8, !tbaa !8
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %217) #8
  %219 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  %220 = load ptr, ptr %219, align 8
  %221 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8
  %223 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExSt7greaterIxEET_S9_S9_RKT0_T1_(ptr %220, ptr %222, ptr noundef nonnull align 8 dereferenceable(8) %218)
          to label %224 unwind label %237

224:                                              ; preds = %206
  %225 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %27, i32 0, i32 0
  store ptr %223, ptr %225, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %226 = load i64, ptr %19, align 8, !tbaa !8
  %227 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %226
  %228 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %227) #8
  %229 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %228, ptr %229, align 8
  %230 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  store i64 %230, ptr %26, align 8, !tbaa !8
  %231 = load i64, ptr %26, align 8, !tbaa !8
  %232 = load i64, ptr %19, align 8, !tbaa !8
  %233 = getelementptr inbounds [3 x i64], ptr %3, i64 0, i64 %232
  %234 = load i64, ptr %233, align 8, !tbaa !8
  %235 = icmp eq i64 %231, %234
  br i1 %235, label %236, label %241

236:                                              ; preds = %224
  store i32 21, ptr %7, align 4
  br label %278

237:                                              ; preds = %206
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %10, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %289

241:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %242 = load i64, ptr %17, align 8, !tbaa !8
  %243 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %242
  %244 = load i64, ptr %21, align 8, !tbaa !8
  %245 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %244) #8
  %246 = load i64, ptr %245, align 8, !tbaa !8
  store i64 %246, ptr %32, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %247 = load i64, ptr %18, align 8, !tbaa !8
  %248 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i64 0, i64 %247
  %249 = load i64, ptr %20, align 8, !tbaa !8
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %249) #8
  %251 = load i64, ptr %250, align 8, !tbaa !8
  store i64 %251, ptr %33, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %252 = load i64, ptr %19, align 8, !tbaa !8
  %253 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i64 0, i64 %252
  %254 = load i64, ptr %26, align 8, !tbaa !8
  %255 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %253, i64 noundef %254) #8
  %256 = load i64, ptr %255, align 8, !tbaa !8
  store i64 %256, ptr %34, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #8
  %257 = load i64, ptr %32, align 8, !tbaa !8
  %258 = load i64, ptr %33, align 8, !tbaa !8
  %259 = sub nsw i64 %257, %258
  %260 = sitofp i64 %259 to x86_fp80
  %261 = call x86_fp80 @powl(x86_fp80 noundef %260, x86_fp80 noundef 0xK40008000000000000000) #8
  %262 = load i64, ptr %33, align 8, !tbaa !8
  %263 = load i64, ptr %34, align 8, !tbaa !8
  %264 = sub nsw i64 %262, %263
  %265 = sitofp i64 %264 to x86_fp80
  %266 = call x86_fp80 @powl(x86_fp80 noundef %265, x86_fp80 noundef 0xK40008000000000000000) #8
  %267 = fadd x86_fp80 %261, %266
  %268 = load i64, ptr %34, align 8, !tbaa !8
  %269 = load i64, ptr %32, align 8, !tbaa !8
  %270 = sub nsw i64 %268, %269
  %271 = sitofp i64 %270 to x86_fp80
  %272 = call x86_fp80 @powl(x86_fp80 noundef %271, x86_fp80 noundef 0xK40008000000000000000) #8
  %273 = fadd x86_fp80 %267, %272
  %274 = fptosi x86_fp80 %273 to i64
  store i64 %274, ptr %35, align 8, !tbaa !8
  %275 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %35)
          to label %276 unwind label %285

276:                                              ; preds = %241
  %277 = load i64, ptr %275, align 8, !tbaa !8
  store i64 %277, ptr %16, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  store i32 0, ptr %7, align 4
  br label %278

278:                                              ; preds = %276, %236
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %279

279:                                              ; preds = %278, %201
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  %280 = load i32, ptr %7, align 4
  switch i32 %280, label %350 [
    i32 0, label %281
    i32 21, label %282
  ]

281:                                              ; preds = %279
  br label %282

282:                                              ; preds = %281, %279
  %283 = load i64, ptr %20, align 8, !tbaa !8
  %284 = add nsw i64 %283, 1
  store i64 %284, ptr %20, align 8, !tbaa !8
  br label %164, !llvm.loop !14

285:                                              ; preds = %241
  %286 = landingpad { ptr, i32 }
          cleanup
  %287 = extractvalue { ptr, i32 } %286, 0
  store ptr %287, ptr %10, align 8
  %288 = extractvalue { ptr, i32 } %286, 1
  store i32 %288, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  br label %289

289:                                              ; preds = %285, %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #8
  br label %290

290:                                              ; preds = %289, %202
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %327

291:                                              ; preds = %170
  br label %292

292:                                              ; preds = %291, %162
  %293 = load i64, ptr %19, align 8, !tbaa !8
  %294 = add nsw i64 %293, 1
  store i64 %294, ptr %19, align 8, !tbaa !8
  br label %150, !llvm.loop !15

295:                                              ; preds = %153
  br label %296

296:                                              ; preds = %295, %148
  %297 = load i64, ptr %18, align 8, !tbaa !8
  %298 = add nsw i64 %297, 1
  store i64 %298, ptr %18, align 8, !tbaa !8
  br label %140, !llvm.loop !16

299:                                              ; preds = %143
  br label %300

300:                                              ; preds = %299
  %301 = load i64, ptr %17, align 8, !tbaa !8
  %302 = add nsw i64 %301, 1
  store i64 %302, ptr %17, align 8, !tbaa !8
  br label %135, !llvm.loop !17

303:                                              ; preds = %138
  %304 = load i64, ptr %16, align 8, !tbaa !8
  %305 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %304)
          to label %306 unwind label %323

306:                                              ; preds = %303
  %307 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %305, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %308 unwind label %323

308:                                              ; preds = %306
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  %309 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %310 = getelementptr inbounds %"class.std::vector", ptr %309, i64 3
  br label %311

311:                                              ; preds = %311, %308
  %312 = phi ptr [ %310, %308 ], [ %313, %311 ]
  %313 = getelementptr inbounds %"class.std::vector", ptr %312, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %313) #8
  %314 = icmp eq ptr %313, %309
  br i1 %314, label %315, label %311

315:                                              ; preds = %311
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #8
  %316 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %317 = getelementptr inbounds %"class.std::vector", ptr %316, i64 3
  br label %318

318:                                              ; preds = %318, %315
  %319 = phi ptr [ %317, %315 ], [ %320, %318 ]
  %320 = getelementptr inbounds %"class.std::vector", ptr %319, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %320) #8
  %321 = icmp eq ptr %320, %316
  br i1 %321, label %322, label %318

322:                                              ; preds = %318
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  br label %43, !llvm.loop !18

323:                                              ; preds = %306, %303
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %10, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %11, align 4
  br label %327

327:                                              ; preds = %323, %290
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %328

328:                                              ; preds = %327, %133
  %329 = getelementptr inbounds [3 x %"class.std::vector"], ptr %5, i32 0, i32 0
  %330 = getelementptr inbounds %"class.std::vector", ptr %329, i64 3
  br label %331

331:                                              ; preds = %331, %328
  %332 = phi ptr [ %330, %328 ], [ %333, %331 ]
  %333 = getelementptr inbounds %"class.std::vector", ptr %332, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %333) #8
  %334 = icmp eq ptr %333, %329
  br i1 %334, label %335, label %331

335:                                              ; preds = %331
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #8
  %336 = getelementptr inbounds [3 x %"class.std::vector"], ptr %4, i32 0, i32 0
  %337 = getelementptr inbounds %"class.std::vector", ptr %336, i64 3
  br label %338

338:                                              ; preds = %338, %335
  %339 = phi ptr [ %337, %335 ], [ %340, %338 ]
  %340 = getelementptr inbounds %"class.std::vector", ptr %339, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %340) #8
  %341 = icmp eq ptr %340, %336
  br i1 %341, label %342, label %338

342:                                              ; preds = %338
  call void @llvm.lifetime.end.p0(i64 72, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %345

343:                                              ; preds = %43
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %344 = load i32, ptr %1, align 4
  ret i32 %344

345:                                              ; preds = %342
  %346 = load ptr, ptr %10, align 8
  %347 = load i32, ptr %11, align 4
  %348 = insertvalue { ptr, i32 } poison, ptr %346, 0
  %349 = insertvalue { ptr, i32 } %348, i32 %347, 1
  resume { ptr, i32 } %349

350:                                              ; preds = %279
  unreachable
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind
declare x86_fp80 @powl(x86_fp80 noundef, x86_fp80 noundef) #7

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

; 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 @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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 }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca [3 x i64], align 16
  %3 = alloca [3 x %"class.std::vector"], align 16
  %4 = alloca [3 x %"class.std::vector"], align 16
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca i64, align 8
  %12 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %13 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %15
  %17 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  %18 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %19 = load i64, ptr %1, align 8, !tbaa !8
  %20 = add nsw i64 %19, -1
  store i64 %20, ptr %1, align 8, !tbaa !8
  %.not114 = icmp eq i64 %19, 0
  br i1 %.not114, label %._crit_edge117, label %.lr.ph116

.lr.ph116:                                        ; preds = %0
  %21 = getelementptr inbounds i8, ptr %2, i64 8
  %22 = getelementptr inbounds i8, ptr %2, i64 16
  %.ptr.1 = getelementptr inbounds i8, ptr %3, i64 24
  %.ptr.2 = getelementptr inbounds i8, ptr %3, i64 48
  %.ptr83.1 = getelementptr inbounds i8, ptr %4, i64 24
  %.ptr83.2 = getelementptr inbounds i8, ptr %4, i64 48
  %23 = getelementptr inbounds i8, ptr %4, i64 48
  %24 = getelementptr inbounds i8, ptr %4, i64 24
  %25 = getelementptr inbounds i8, ptr %3, i64 48
  %26 = getelementptr inbounds i8, ptr %3, i64 24
  br label %.preheader95.preheader

.preheader95.preheader:                           ; preds = %.lr.ph116, %227
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %28 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %28, ptr noundef nonnull align 8 dereferenceable(8) %22)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %3) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  %30 = load i64, ptr %2, align 16, !tbaa !8
  %31 = icmp sgt i64 %30, 0
  br i1 %31, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %36, %.preheader95.preheader
  %32 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  %33 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %32, ptr %33)
          to label %40 unwind label %76

.lr.ph:                                           ; preds = %.preheader95.preheader, %36
  %.062106 = phi i64 [ %37, %36 ], [ 0, %.preheader95.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %34 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %35 unwind label %.loopexit118

35:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %36 unwind label %.loopexit118

36:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %37 = add nuw nsw i64 %.062106, 1
  %38 = load i64, ptr %2, align 16, !tbaa !8
  %39 = icmp slt i64 %37, %38
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.loopexit118:                                     ; preds = %.lr.ph, %35
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %48, %.lr.ph.1
  %lpad.loopexit119 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %63, %.lr.ph.2
  %lpad.loopexit.split-lp120 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp, %.loopexit118
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit118 ], [ %lpad.loopexit119, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp120, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  br label %233

40:                                               ; preds = %._crit_edge
  %41 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %42 unwind label %76

42:                                               ; preds = %40
  %43 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %44 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %43, ptr %44)
          to label %.preheader95.1 unwind label %76

.preheader95.1:                                   ; preds = %42
  %45 = load i64, ptr %21, align 8, !tbaa !8
  %46 = icmp sgt i64 %45, 0
  br i1 %46, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %.preheader95.1, %49
  %.062106.1 = phi i64 [ %50, %49 ], [ 0, %.preheader95.1 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %47 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %48 unwind label %.loopexit.split-lp.loopexit

48:                                               ; preds = %.lr.ph.1
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %49 unwind label %.loopexit.split-lp.loopexit

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %50 = add nuw nsw i64 %.062106.1, 1
  %51 = load i64, ptr %21, align 8, !tbaa !8
  %52 = icmp slt i64 %50, %51
  br i1 %52, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !11

._crit_edge.1:                                    ; preds = %49, %.preheader95.1
  %53 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #7
  %54 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %53, ptr %54)
          to label %55 unwind label %76

55:                                               ; preds = %._crit_edge.1
  %56 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1)
          to label %57 unwind label %76

57:                                               ; preds = %55
  %58 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  %59 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %58, ptr %59)
          to label %.preheader95.2 unwind label %76

.preheader95.2:                                   ; preds = %57
  %60 = load i64, ptr %22, align 16, !tbaa !8
  %61 = icmp sgt i64 %60, 0
  br i1 %61, label %.lr.ph.2, label %._crit_edge.2

.lr.ph.2:                                         ; preds = %.preheader95.2, %64
  %.062106.2 = phi i64 [ %65, %64 ], [ 0, %.preheader95.2 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %62 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %63 unwind label %.loopexit.split-lp.loopexit.split-lp

63:                                               ; preds = %.lr.ph.2
  invoke void @_ZNSt6vectorIxSaIxEE9push_backERKx(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %64 unwind label %.loopexit.split-lp.loopexit.split-lp

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %65 = add nuw nsw i64 %.062106.2, 1
  %66 = load i64, ptr %22, align 16, !tbaa !8
  %67 = icmp slt i64 %65, %66
  br i1 %67, label %.lr.ph.2, label %._crit_edge.2, !llvm.loop !11

._crit_edge.2:                                    ; preds = %64, %.preheader95.2
  %68 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #7
  %69 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2) #7
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %68, ptr %69)
          to label %70 unwind label %76

70:                                               ; preds = %._crit_edge.2
  %71 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIxSaIxEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2, ptr noundef nonnull align 8 dereferenceable(24) %.ptr.2)
          to label %72 unwind label %76

72:                                               ; preds = %70
  %73 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  %74 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEEEvT_S7_(ptr %73, ptr %74)
          to label %75 unwind label %76

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  store i64 9223372036854775807, ptr %6, align 8, !tbaa !8
  br label %.preheader94

76:                                               ; preds = %72, %70, %._crit_edge.2, %57, %55, %._crit_edge.1, %42, %40, %._crit_edge
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %233

.preheader94:                                     ; preds = %75, %86
  %.068113 = phi i64 [ 0, %75 ], [ %87, %86 ]
  %78 = getelementptr inbounds [3 x %"class.std::vector"], ptr %3, i64 0, i64 %.068113
  %79 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %.068113
  %80 = icmp eq i64 %.068113, 0
  %81 = icmp eq i64 %.068113, 1
  %82 = icmp eq i64 %.068113, 2
  br label %88

83:                                               ; preds = %86
  %84 = load i64, ptr %6, align 8, !tbaa !8
  %85 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %84)
          to label %225 unwind label %230

86:                                               ; preds = %.loopexit93
  %87 = add nuw nsw i64 %.068113, 1
  %exitcond136.not = icmp eq i64 %87, 3
  br i1 %exitcond136.not, label %83, label %.preheader94, !llvm.loop !13

88:                                               ; preds = %.preheader94, %.loopexit93
  %.069112 = phi i64 [ 0, %.preheader94 ], [ %224, %.loopexit93 ]
  %89 = icmp eq i64 %.069112, %.068113
  br i1 %89, label %.loopexit93, label %.preheader92

.preheader92:                                     ; preds = %88
  %90 = getelementptr inbounds [3 x i64], ptr %2, i64 0, i64 %.069112
  %91 = getelementptr inbounds [3 x %"class.std::vector"], ptr %3, i64 0, i64 %.069112
  %92 = icmp eq i64 %.069112, 0
  %or.cond = or i1 %80, %92
  br i1 %or.cond, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.preheader92
  %93 = load i64, ptr %90, align 8, !tbaa !8
  %94 = icmp sgt i64 %93, 0
  br i1 %94, label %.lr.ph109, label %.loopexit

.lr.ph109:                                        ; preds = %.preheader, %132
  %.071108 = phi i64 [ %133, %132 ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %95 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %96 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108) #7
  %98 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET_S7_S7_RKT0_(ptr %95, ptr %96, ptr noundef nonnull align 8 dereferenceable(8) %97)
          to label %99 unwind label %.loopexit122

99:                                               ; preds = %.lr.ph109
  store ptr %98, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %100 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  store ptr %100, ptr %8, align 8
  %101 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %102 = load i64, ptr %79, align 8, !tbaa !8
  %103 = icmp eq i64 %101, %102
  br i1 %103, label %132, label %104

.loopexit122:                                     ; preds = %.lr.ph109
  %lpad.loopexit124 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp123

.loopexit.split-lp123.loopexit:                   ; preds = %.lr.ph109.1
  %lpad.loopexit131 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp123

.loopexit.split-lp123.loopexit.split-lp:          ; preds = %.lr.ph109.2
  %lpad.loopexit.split-lp132 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp123

.loopexit.split-lp123:                            ; preds = %.loopexit.split-lp123.loopexit, %.loopexit.split-lp123.loopexit.split-lp, %.loopexit122
  %lpad.phi125 = phi { ptr, i32 } [ %lpad.loopexit124, %.loopexit122 ], [ %lpad.loopexit131, %.loopexit.split-lp123.loopexit ], [ %lpad.loopexit.split-lp132, %.loopexit.split-lp123.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %232

104:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %105 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %106 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108) #7
  %108 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExSt7greaterIxEET_S9_S9_RKT0_T1_(ptr %105, ptr %106, ptr noundef nonnull align 8 dereferenceable(8) %107)
          to label %109 unwind label %.loopexit126

109:                                              ; preds = %104
  store ptr %108, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %110 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  store ptr %110, ptr %10, align 8
  %111 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %112 = load i64, ptr %2, align 16, !tbaa !8
  %113 = icmp eq i64 %111, %112
  br i1 %113, label %132, label %114

.loopexit126:                                     ; preds = %104
  %lpad.loopexit128 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp127

.loopexit.split-lp127.loopexit:                   ; preds = %148
  %lpad.loopexit134 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp127

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

.loopexit.split-lp127:                            ; preds = %.loopexit.split-lp127.loopexit, %.loopexit.split-lp127.loopexit.split-lp, %.loopexit126
  %lpad.phi130 = phi { ptr, i32 } [ %lpad.loopexit128, %.loopexit126 ], [ %lpad.loopexit134, %.loopexit.split-lp127.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp127.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %232

114:                                              ; preds = %109
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %101) #7
  %116 = load i64, ptr %115, align 8, !tbaa !8
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108) #7
  %118 = load i64, ptr %117, align 8, !tbaa !8
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %111) #7
  %120 = load i64, ptr %119, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %121 = sub nsw i64 %116, %118
  %122 = sitofp i64 %121 to x86_fp80
  %square = fmul x86_fp80 %122, %122
  %123 = sub nsw i64 %118, %120
  %124 = sitofp i64 %123 to x86_fp80
  %square87 = fmul x86_fp80 %124, %124
  %125 = fadd x86_fp80 %square, %square87
  %126 = sub nsw i64 %120, %116
  %127 = sitofp i64 %126 to x86_fp80
  %square88 = fmul x86_fp80 %127, %127
  %128 = fadd x86_fp80 %square88, %125
  %129 = fptosi x86_fp80 %128 to i64
  store i64 %129, ptr %11, align 8, !tbaa !8
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %131 = load i64, ptr %130, align 8, !tbaa !8
  store i64 %131, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %132

132:                                              ; preds = %114, %109, %99
  %133 = add nuw nsw i64 %.071108, 1
  %134 = load i64, ptr %90, align 8, !tbaa !8
  %135 = icmp slt i64 %133, %134
  br i1 %135, label %.lr.ph109, label %.loopexit, !llvm.loop !14

.loopexit:                                        ; preds = %132, %.preheader, %.preheader92
  %136 = icmp eq i64 %.069112, 1
  %or.cond.1 = or i1 %81, %136
  br i1 %or.cond.1, label %.loopexit.1, label %.preheader.1

.preheader.1:                                     ; preds = %.loopexit
  %137 = load i64, ptr %90, align 8, !tbaa !8
  %138 = icmp sgt i64 %137, 0
  br i1 %138, label %.lr.ph109.1, label %.loopexit.1

.lr.ph109.1:                                      ; preds = %.preheader.1, %176
  %.071108.1 = phi i64 [ %177, %176 ], [ 0, %.preheader.1 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %139 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %140 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.1) #7
  %142 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET_S7_S7_RKT0_(ptr %139, ptr %140, ptr noundef nonnull align 8 dereferenceable(8) %141)
          to label %143 unwind label %.loopexit.split-lp123.loopexit

143:                                              ; preds = %.lr.ph109.1
  store ptr %142, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %144 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  store ptr %144, ptr %8, align 8
  %145 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %146 = load i64, ptr %79, align 8, !tbaa !8
  %147 = icmp eq i64 %145, %146
  br i1 %147, label %176, label %148

148:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %149 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  %150 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  %151 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.1) #7
  %152 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExSt7greaterIxEET_S9_S9_RKT0_T1_(ptr %149, ptr %150, ptr noundef nonnull align 8 dereferenceable(8) %151)
          to label %153 unwind label %.loopexit.split-lp127.loopexit

153:                                              ; preds = %148
  store ptr %152, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %154 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1) #7
  store ptr %154, ptr %10, align 8
  %155 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %156 = load i64, ptr %21, align 8, !tbaa !8
  %157 = icmp eq i64 %155, %156
  br i1 %157, label %176, label %158

158:                                              ; preds = %153
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %145) #7
  %160 = load i64, ptr %159, align 8, !tbaa !8
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.1) #7
  %162 = load i64, ptr %161, align 8, !tbaa !8
  %163 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.1, i64 noundef %155) #7
  %164 = load i64, ptr %163, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %165 = sub nsw i64 %160, %162
  %166 = sitofp i64 %165 to x86_fp80
  %square.1 = fmul x86_fp80 %166, %166
  %167 = sub nsw i64 %162, %164
  %168 = sitofp i64 %167 to x86_fp80
  %square87.1 = fmul x86_fp80 %168, %168
  %169 = fadd x86_fp80 %square.1, %square87.1
  %170 = sub nsw i64 %164, %160
  %171 = sitofp i64 %170 to x86_fp80
  %square88.1 = fmul x86_fp80 %171, %171
  %172 = fadd x86_fp80 %square88.1, %169
  %173 = fptosi x86_fp80 %172 to i64
  store i64 %173, ptr %11, align 8, !tbaa !8
  %174 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %175 = load i64, ptr %174, align 8, !tbaa !8
  store i64 %175, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %176

176:                                              ; preds = %158, %153, %143
  %177 = add nuw nsw i64 %.071108.1, 1
  %178 = load i64, ptr %90, align 8, !tbaa !8
  %179 = icmp slt i64 %177, %178
  br i1 %179, label %.lr.ph109.1, label %.loopexit.1, !llvm.loop !14

.loopexit.1:                                      ; preds = %176, %.preheader.1, %.loopexit
  %180 = icmp eq i64 %.069112, 2
  %or.cond.2 = or i1 %82, %180
  br i1 %or.cond.2, label %.loopexit93, label %.preheader.2

.preheader.2:                                     ; preds = %.loopexit.1
  %181 = load i64, ptr %90, align 8, !tbaa !8
  %182 = icmp sgt i64 %181, 0
  br i1 %182, label %.lr.ph109.2, label %.loopexit93

.lr.ph109.2:                                      ; preds = %.preheader.2, %220
  %.071108.2 = phi i64 [ %221, %220 ], [ 0, %.preheader.2 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %183 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %184 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.2) #7
  %186 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExET_S7_S7_RKT0_(ptr %183, ptr %184, ptr noundef nonnull align 8 dereferenceable(8) %185)
          to label %187 unwind label %.loopexit.split-lp123.loopexit.split-lp

187:                                              ; preds = %.lr.ph109.2
  store ptr %186, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %188 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %78) #7
  store ptr %188, ptr %8, align 8
  %189 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %190 = load i64, ptr %79, align 8, !tbaa !8
  %191 = icmp eq i64 %189, %190
  br i1 %191, label %220, label %192

192:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %193 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  %194 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.2) #7
  %196 = invoke ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEExSt7greaterIxEET_S9_S9_RKT0_T1_(ptr %193, ptr %194, ptr noundef nonnull align 8 dereferenceable(8) %195)
          to label %197 unwind label %.loopexit.split-lp127.loopexit.split-lp

197:                                              ; preds = %192
  store ptr %196, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %198 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2) #7
  store ptr %198, ptr %10, align 8
  %199 = call noundef i64 @_ZN9__gnu_cxxmiIPxSt6vectorIxSaIxEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  %200 = load i64, ptr %22, align 16, !tbaa !8
  %201 = icmp eq i64 %199, %200
  br i1 %201, label %220, label %202

202:                                              ; preds = %197
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %189) #7
  %204 = load i64, ptr %203, align 8, !tbaa !8
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %91, i64 noundef %.071108.2) #7
  %206 = load i64, ptr %205, align 8, !tbaa !8
  %207 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.ptr83.2, i64 noundef %199) #7
  %208 = load i64, ptr %207, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %209 = sub nsw i64 %204, %206
  %210 = sitofp i64 %209 to x86_fp80
  %square.2 = fmul x86_fp80 %210, %210
  %211 = sub nsw i64 %206, %208
  %212 = sitofp i64 %211 to x86_fp80
  %square87.2 = fmul x86_fp80 %212, %212
  %213 = fadd x86_fp80 %square.2, %square87.2
  %214 = sub nsw i64 %208, %204
  %215 = sitofp i64 %214 to x86_fp80
  %square88.2 = fmul x86_fp80 %215, %215
  %216 = fadd x86_fp80 %square88.2, %213
  %217 = fptosi x86_fp80 %216 to i64
  store i64 %217, ptr %11, align 8, !tbaa !8
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %219 = load i64, ptr %218, align 8, !tbaa !8
  store i64 %219, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %220

220:                                              ; preds = %202, %197, %187
  %221 = add nuw nsw i64 %.071108.2, 1
  %222 = load i64, ptr %90, align 8, !tbaa !8
  %223 = icmp slt i64 %221, %222
  br i1 %223, label %.lr.ph109.2, label %.loopexit93, !llvm.loop !14

.loopexit93:                                      ; preds = %220, %.loopexit.1, %.preheader.2, %88
  %224 = add nuw nsw i64 %.069112, 1
  %exitcond.not = icmp eq i64 %224, 3
  br i1 %exitcond.not, label %86, label %88, !llvm.loop !15

225:                                              ; preds = %83
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %227 unwind label %230

227:                                              ; preds = %225
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %24) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  %228 = load i64, ptr %1, align 8, !tbaa !8
  %229 = add nsw i64 %228, -1
  store i64 %229, ptr %1, align 8, !tbaa !8
  %.not = icmp eq i64 %228, 0
  br i1 %.not, label %._crit_edge117, label %.preheader95.preheader, !llvm.loop !16

230:                                              ; preds = %225, %83
  %231 = landingpad { ptr, i32 }
          cleanup
  br label %232

232:                                              ; preds = %.loopexit.split-lp123, %.loopexit.split-lp127, %230
  %.pn.pn = phi { ptr, i32 } [ %231, %230 ], [ %lpad.phi130, %.loopexit.split-lp127 ], [ %lpad.phi125, %.loopexit.split-lp123 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  br label %233

233:                                              ; preds = %.loopexit.split-lp, %76, %232
  %.pn89.pn = phi { ptr, i32 } [ %.pn.pn, %232 ], [ %lpad.phi, %.loopexit.split-lp ], [ %77, %76 ]
  %234 = getelementptr inbounds i8, ptr %4, i64 48
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %234) #7
  %235 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %235) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  %236 = getelementptr inbounds i8, ptr %3, i64 48
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %236) #7
  %237 = getelementptr inbounds i8, ptr %3, i64 24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %237) #7
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn89.pn

._crit_edge117:                                   ; preds = %227, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

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

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

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

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

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

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

; 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 @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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