; LLVM IR from viveakrt/Competitive-programing :: SPOJ (giveaway)

; 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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<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" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@s = external dso_local global [500001 x i32], align 16
@res = external dso_local global [710 x %"class.std::vector"], align 16
@tmp = 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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %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 %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %25 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %26 = alloca i32, align 4
  %27 = alloca ptr, align 8
  %28 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %30 = alloca i32, align 4
  %31 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %32 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store i32 0, ptr %1, align 4
  %33 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %34 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %35 = getelementptr i8, ptr %34, i64 -24
  %36 = load i64, ptr %35, align 8
  %37 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %36
  %38 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %37, ptr noundef null)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 1, ptr %2, align 4, !tbaa !8
  br label %40

40:                                               ; preds = %57, %0
  %41 = load i32, ptr %2, align 4, !tbaa !8
  %42 = load i32, ptr @n, align 4, !tbaa !8
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %40
  %46 = load i32, ptr %2, align 4, !tbaa !8
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %47
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %50 = load i32, ptr %2, align 4, !tbaa !8
  %51 = sdiv i32 %50, 710
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %52
  %54 = load i32, ptr %2, align 4, !tbaa !8
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %55
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 4 dereferenceable(4) %56)
  br label %57

57:                                               ; preds = %45
  %58 = load i32, ptr %2, align 4, !tbaa !8
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %2, align 4, !tbaa !8
  br label %40, !llvm.loop !11

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

61:                                               ; preds = %80, %60
  %62 = load i32, ptr %3, align 4, !tbaa !8
  %63 = icmp slt i32 %62, 710
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  br label %83

65:                                               ; preds = %61
  %66 = load i32, ptr %3, align 4, !tbaa !8
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %67
  %69 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %68) #7
  %70 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  store ptr %69, ptr %70, align 8
  %71 = load i32, ptr %3, align 4, !tbaa !8
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %72
  %74 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %73) #7
  %75 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  store ptr %74, ptr %75, align 8
  %76 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %4, i32 0, i32 0
  %77 = load ptr, ptr %76, align 8
  %78 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %5, i32 0, i32 0
  %79 = load ptr, ptr %78, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %77, ptr %79)
  br label %80

80:                                               ; preds = %65
  %81 = load i32, ptr %3, align 4, !tbaa !8
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %3, align 4, !tbaa !8
  br label %61, !llvm.loop !13

83:                                               ; preds = %64
  %84 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  br label %85

85:                                               ; preds = %279, %83
  %86 = load i32, ptr @q, align 4, !tbaa !8
  %87 = add nsw i32 %86, -1
  store i32 %87, ptr @q, align 4, !tbaa !8
  %88 = icmp ne i32 %86, 0
  br i1 %88, label %89, label %280

89:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  %90 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %91 = load i32, ptr %6, align 4, !tbaa !8
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %204, label %93

93:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %94, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %96 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %95, ptr noundef nonnull align 4 dereferenceable(4) %9)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %97 = load i32, ptr %7, align 4, !tbaa !8
  %98 = sdiv i32 %97, 710
  store i32 %98, ptr %10, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %99 = load i32, ptr %8, align 4, !tbaa !8
  %100 = sdiv i32 %99, 710
  store i32 %100, ptr %11, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %101 = load i32, ptr %10, align 4, !tbaa !8
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %13, align 4, !tbaa !8
  br label %103

103:                                              ; preds = %134, %93
  %104 = load i32, ptr %13, align 4, !tbaa !8
  %105 = load i32, ptr %11, align 4, !tbaa !8
  %106 = icmp slt i32 %104, %105
  br i1 %106, label %108, label %107

107:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %137

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %109 = load i32, ptr %13, align 4, !tbaa !8
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %110
  %112 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %111) #7
  %113 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %112, ptr %113, align 8
  %114 = load i32, ptr %13, align 4, !tbaa !8
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %115
  %117 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %116) #7
  %118 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %117, ptr %118, align 8
  %119 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8
  %121 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %122 = load ptr, ptr %121, align 8
  %123 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %120, ptr %122, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %124 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %123, ptr %124, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %125 = load i32, ptr %13, align 4, !tbaa !8
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %126
  %128 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #7
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  %130 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %131 = trunc i64 %130 to i32
  %132 = load i32, ptr %12, align 4, !tbaa !8
  %133 = add nsw i32 %132, %131
  store i32 %133, ptr %12, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %134

134:                                              ; preds = %108
  %135 = load i32, ptr %13, align 4, !tbaa !8
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %13, align 4, !tbaa !8
  br label %103, !llvm.loop !14

137:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %138 = load i32, ptr %7, align 4, !tbaa !8
  store i32 %138, ptr %18, align 4, !tbaa !8
  br label %139

139:                                              ; preds = %163, %137
  %140 = load i32, ptr %18, align 4, !tbaa !8
  %141 = load i32, ptr %10, align 4, !tbaa !8
  %142 = add nsw i32 %141, 1
  %143 = mul nsw i32 %142, 710
  %144 = sub nsw i32 %143, 1
  %145 = icmp sle i32 %140, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %139
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %166

147:                                              ; preds = %139
  %148 = load i32, ptr %18, align 4, !tbaa !8
  %149 = load i32, ptr %8, align 4, !tbaa !8
  %150 = icmp sgt i32 %148, %149
  br i1 %150, label %151, label %152

151:                                              ; preds = %147
  br label %163

152:                                              ; preds = %147
  %153 = load i32, ptr %18, align 4, !tbaa !8
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !8
  %157 = load i32, ptr %9, align 4, !tbaa !8
  %158 = icmp sge i32 %156, %157
  br i1 %158, label %159, label %162

159:                                              ; preds = %152
  %160 = load i32, ptr %12, align 4, !tbaa !8
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %12, align 4, !tbaa !8
  br label %162

162:                                              ; preds = %159, %152
  br label %163

163:                                              ; preds = %162, %151
  %164 = load i32, ptr %18, align 4, !tbaa !8
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %18, align 4, !tbaa !8
  br label %139, !llvm.loop !15

166:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %167 = load i32, ptr %8, align 4, !tbaa !8
  store i32 %167, ptr %19, align 4, !tbaa !8
  br label %168

168:                                              ; preds = %190, %166
  %169 = load i32, ptr %19, align 4, !tbaa !8
  %170 = load i32, ptr %11, align 4, !tbaa !8
  %171 = mul nsw i32 %170, 710
  %172 = icmp sge i32 %169, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %193

174:                                              ; preds = %168
  %175 = load i32, ptr %19, align 4, !tbaa !8
  %176 = load i32, ptr %7, align 4, !tbaa !8
  %177 = icmp slt i32 %175, %176
  br i1 %177, label %178, label %179

178:                                              ; preds = %174
  br label %190

179:                                              ; preds = %174
  %180 = load i32, ptr %19, align 4, !tbaa !8
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %181
  %183 = load i32, ptr %182, align 4, !tbaa !8
  %184 = load i32, ptr %9, align 4, !tbaa !8
  %185 = icmp sge i32 %183, %184
  br i1 %185, label %186, label %189

186:                                              ; preds = %179
  %187 = load i32, ptr %12, align 4, !tbaa !8
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %12, align 4, !tbaa !8
  br label %189

189:                                              ; preds = %186, %179
  br label %190

190:                                              ; preds = %189, %178
  %191 = load i32, ptr %19, align 4, !tbaa !8
  %192 = add nsw i32 %191, -1
  store i32 %192, ptr %19, align 4, !tbaa !8
  br label %168, !llvm.loop !16

193:                                              ; preds = %173
  %194 = load i32, ptr %10, align 4, !tbaa !8
  %195 = load i32, ptr %11, align 4, !tbaa !8
  %196 = icmp eq i32 %194, %195
  br i1 %196, label %197, label %200

197:                                              ; preds = %193
  %198 = load i32, ptr %12, align 4, !tbaa !8
  %199 = sdiv i32 %198, 2
  store i32 %199, ptr %12, align 4, !tbaa !8
  br label %200

200:                                              ; preds = %197, %193
  %201 = load i32, ptr %12, align 4, !tbaa !8
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %201)
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %202, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %279

204:                                              ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %205 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %206 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %205, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %207 = load i32, ptr %20, align 4, !tbaa !8
  %208 = sdiv i32 %207, 710
  store i32 %208, ptr %22, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %209 = load i32, ptr %22, align 4, !tbaa !8
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %210
  store ptr %211, ptr %23, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %212 = load ptr, ptr %23, align 8, !tbaa !17
  %213 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #7
  %214 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %24, i32 0, i32 0
  store ptr %213, ptr %214, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %215 = load ptr, ptr %23, align 8, !tbaa !17
  %216 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %215) #7
  %217 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %25, i32 0, i32 0
  store ptr %216, ptr %217, align 8
  br label %218

218:                                              ; preds = %236, %204
  %219 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br i1 %219, label %221, label %220

220:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %238

221:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  %223 = load i32, ptr %222, align 4, !tbaa !8
  store i32 %223, ptr %26, align 4, !tbaa !8
  %224 = load i32, ptr %26, align 4, !tbaa !8
  %225 = load i32, ptr %20, align 4, !tbaa !8
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %226
  %228 = load i32, ptr %227, align 4, !tbaa !8
  %229 = icmp ne i32 %224, %228
  br i1 %229, label %230, label %231

230:                                              ; preds = %221
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %26)
  br label %235

231:                                              ; preds = %221
  %232 = load i32, ptr %20, align 4, !tbaa !8
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %233
  store i32 -1, ptr %234, align 4, !tbaa !8
  br label %235

235:                                              ; preds = %231, %230
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %236

236:                                              ; preds = %235
  %237 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %24) #7
  br label %218

238:                                              ; preds = %220
  %239 = load i32, ptr %22, align 4, !tbaa !8
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %240
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %241) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store ptr @tmp, ptr %27, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %242 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  %243 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %28, i32 0, i32 0
  store ptr %242, ptr %243, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %244 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  %245 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %244, ptr %245, align 8
  br label %246

246:                                              ; preds = %255, %238
  %247 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29) #7
  br i1 %247, label %249, label %248

248:                                              ; preds = %246
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  br label %257

249:                                              ; preds = %246
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %250 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  %251 = load i32, ptr %250, align 4, !tbaa !8
  store i32 %251, ptr %30, align 4, !tbaa !8
  %252 = load i32, ptr %22, align 4, !tbaa !8
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %253
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %254, ptr noundef nonnull align 4 dereferenceable(4) %30)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  br label %255

255:                                              ; preds = %249
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %28) #7
  br label %246

257:                                              ; preds = %248
  %258 = load i32, ptr %22, align 4, !tbaa !8
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %259
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %260, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %261 = load i32, ptr %22, align 4, !tbaa !8
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %262
  %264 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %263) #7
  %265 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %264, ptr %265, align 8
  %266 = load i32, ptr %22, align 4, !tbaa !8
  %267 = sext i32 %266 to i64
  %268 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %267
  %269 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %268) #7
  %270 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %269, ptr %270, align 8
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  %272 = load ptr, ptr %271, align 8
  %273 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  %274 = load ptr, ptr %273, align 8
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %272, ptr %274)
  %275 = load i32, ptr %21, align 4, !tbaa !8
  %276 = load i32, ptr %20, align 4, !tbaa !8
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %277
  store i32 %275, ptr %278, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %279

279:                                              ; preds = %257, %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %85, !llvm.loop !19

280:                                              ; preds = %85
  %281 = load i32, ptr %1, align 4
  ret i32 %281
}

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

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

; 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 dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #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_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_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 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) #1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 }

!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 = !{!18, !18, i64 0}
!18 = !{!"any pointer", !10, i64 0}
!19 = distinct !{!19, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<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" }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@n = external dso_local global i32, align 4
@q = external dso_local global i32, align 4
@s = external dso_local global [500001 x i32], align 16
@res = external dso_local global [710 x %"class.std::vector"], align 16
@tmp = 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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", 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 i32, align 4
  %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 = 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)
  %22 = load i32, ptr @n, align 4, !tbaa !8
  %.not60 = icmp slt i32 %22, 1
  br i1 %.not60, label %.preheader.preheader, label %.lr.ph

.preheader.preheader:                             ; preds = %.lr.ph, %0
  br label %.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %23 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %indvars.iv
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %25 = trunc nuw nsw i64 %indvars.iv to i32
  %26 = udiv i32 %25, 710
  %27 = zext nneg i32 %26 to i64
  %28 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %27
  tail call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %29 = load i32, ptr @n, align 4, !tbaa !8
  %30 = sext i32 %29 to i64
  %.not.not = icmp slt i64 %indvars.iv, %30
  br i1 %.not.not, label %.lr.ph, label %.preheader.preheader, !llvm.loop !11

31:                                               ; preds = %.preheader
  %32 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @q)
  %33 = load i32, ptr @q, align 4, !tbaa !8
  %34 = add nsw i32 %33, -1
  store i32 %34, ptr @q, align 4, !tbaa !8
  %.not5286 = icmp eq i32 %33, 0
  br i1 %.not5286, label %._crit_edge89, label %.lr.ph88

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %indvars.iv91 = phi i64 [ %indvars.iv.next92, %.preheader ], [ 0, %.preheader.preheader ]
  %35 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %indvars.iv91
  %36 = tail call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  %37 = tail call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #7
  tail call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %36, ptr %37)
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next92, 710
  br i1 %exitcond.not, label %31, label %.preheader, !llvm.loop !13

.lr.ph88:                                         ; preds = %31, %143
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %39 = load i32, ptr %1, align 4, !tbaa !8
  %.not53 = icmp eq i32 %39, 0
  br i1 %.not53, label %40, label %109

40:                                               ; preds = %.lr.ph88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %44 = load i32, ptr %2, align 4, !tbaa !8
  %45 = sdiv i32 %44, 710
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = sdiv i32 %46, 710
  %48 = add nsw i32 %45, 1
  %49 = icmp slt i32 %48, %47
  br i1 %49, label %.lr.ph70.preheader, label %._crit_edge71

.lr.ph70.preheader:                               ; preds = %40
  %narrow = add nsw i32 %45, 1
  %50 = sext i32 %narrow to i64
  %wide.trip.count = sext i32 %47 to i64
  br label %.lr.ph70

._crit_edge71.loopexit:                           ; preds = %.lr.ph70
  %.pre = load i32, ptr %2, align 4, !tbaa !8
  %.pre106.pre = load i32, ptr %3, align 4, !tbaa !8
  br label %._crit_edge71

._crit_edge71:                                    ; preds = %._crit_edge71.loopexit, %40
  %.pre106 = phi i32 [ %46, %40 ], [ %.pre106.pre, %._crit_edge71.loopexit ]
  %51 = phi i32 [ %44, %40 ], [ %.pre, %._crit_edge71.loopexit ]
  %.047.lcssa = phi i32 [ 0, %40 ], [ %70, %._crit_edge71.loopexit ]
  %52 = mul nsw i32 %48, 710
  %.not54.not72 = icmp slt i32 %51, %52
  br i1 %.not54.not72, label %.lr.ph76, label %._crit_edge77

.lr.ph76:                                         ; preds = %._crit_edge71
  %53 = load i32, ptr %4, align 4
  %54 = sext i32 %51 to i64
  %55 = sext i32 %.pre106 to i64
  %wide.trip.count101 = sext i32 %52 to i64
  %xtraiter = and i64 %54, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph76
  %56 = icmp sgt i32 %51, %.pre106
  br i1 %56, label %.prol.loopexit.unr-lcssa, label %57

57:                                               ; preds = %.prol.preheader
  %58 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %54
  %59 = load i32, ptr %58, align 4, !tbaa !8
  %.not57.prol = icmp sge i32 %59, %53
  %60 = zext i1 %.not57.prol to i32
  %spec.select.prol = add nsw i32 %.047.lcssa, %60
  br label %.prol.loopexit.unr-lcssa

.prol.loopexit.unr-lcssa:                         ; preds = %57, %.prol.preheader
  %.2.prol = phi i32 [ %.047.lcssa, %.prol.preheader ], [ %spec.select.prol, %57 ]
  %indvars.iv.next99.prol = add nsw i64 %54, 1
  br label %.prol.loopexit

.prol.loopexit:                                   ; preds = %.prol.loopexit.unr-lcssa, %.lr.ph76
  %.2.lcssa.unr = phi i32 [ poison, %.lr.ph76 ], [ %.2.prol, %.prol.loopexit.unr-lcssa ]
  %indvars.iv98.unr = phi i64 [ %54, %.lr.ph76 ], [ %indvars.iv.next99.prol, %.prol.loopexit.unr-lcssa ]
  %.174.unr = phi i32 [ %.047.lcssa, %.lr.ph76 ], [ %.2.prol, %.prol.loopexit.unr-lcssa ]
  %61 = add nsw i64 %wide.trip.count101, -1
  %62 = icmp eq i64 %61, %54
  br i1 %62, label %._crit_edge77, label %.lr.ph76.new

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %.lr.ph70
  %indvars.iv94 = phi i64 [ %50, %.lr.ph70.preheader ], [ %indvars.iv.next95, %.lr.ph70 ]
  %.04768 = phi i32 [ 0, %.lr.ph70.preheader ], [ %70, %.lr.ph70 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %63 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %indvars.iv94
  %64 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  %66 = call ptr @_ZSt11lower_boundIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEiET_S7_S7_RKT0_(ptr %64, ptr %65, ptr noundef nonnull align 4 dereferenceable(4) %4)
  store ptr %66, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %67 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %63) #7
  store ptr %67, ptr %6, align 8
  %68 = call noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_17__normal_iteratorIT_T0_E15difference_typeERKS8_SB_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  %69 = trunc i64 %68 to i32
  %70 = add nsw i32 %.04768, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  %indvars.iv.next95 = add nsw i64 %indvars.iv94, 1
  %exitcond97.not = icmp eq i64 %indvars.iv.next95, %wide.trip.count
  br i1 %exitcond97.not, label %._crit_edge71.loopexit, label %.lr.ph70, !llvm.loop !14

._crit_edge77:                                    ; preds = %.prol.loopexit, %93, %._crit_edge71
  %.1.lcssa = phi i32 [ %.047.lcssa, %._crit_edge71 ], [ %.2.lcssa.unr, %.prol.loopexit ], [ %.2.1, %93 ]
  %71 = mul nsw i32 %47, 710
  %.not5579 = icmp slt i32 %.pre106, %71
  br i1 %.not5579, label %._crit_edge84, label %.lr.ph83

.lr.ph83:                                         ; preds = %._crit_edge77
  %72 = load i32, ptr %4, align 4
  %73 = sext i32 %.pre106 to i64
  %74 = sext i32 %51 to i64
  %75 = sext i32 %71 to i64
  %76 = and i64 %73, 1
  %lcmp.mod111.not.not = icmp eq i64 %76, 0
  br i1 %lcmp.mod111.not.not, label %.prol.preheader108, label %.prol.loopexit109

.prol.preheader108:                               ; preds = %.lr.ph83
  %77 = icmp slt i32 %.pre106, %51
  br i1 %77, label %.prol.loopexit109.unr-lcssa, label %78

78:                                               ; preds = %.prol.preheader108
  %79 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %73
  %80 = load i32, ptr %79, align 4, !tbaa !8
  %.not56.prol = icmp sge i32 %80, %72
  %81 = zext i1 %.not56.prol to i32
  %spec.select59.prol = add nsw i32 %.1.lcssa, %81
  br label %.prol.loopexit109.unr-lcssa

.prol.loopexit109.unr-lcssa:                      ; preds = %78, %.prol.preheader108
  %.4.prol = phi i32 [ %.1.lcssa, %.prol.preheader108 ], [ %spec.select59.prol, %78 ]
  %indvars.iv.next104.prol = add nsw i64 %73, -1
  br label %.prol.loopexit109

.prol.loopexit109:                                ; preds = %.prol.loopexit109.unr-lcssa, %.lr.ph83
  %indvars.iv103.unr = phi i64 [ %73, %.lr.ph83 ], [ %indvars.iv.next104.prol, %.prol.loopexit109.unr-lcssa ]
  %.381.unr = phi i32 [ %.1.lcssa, %.lr.ph83 ], [ %.4.prol, %.prol.loopexit109.unr-lcssa ]
  %.4.lcssa.unr = phi i32 [ poison, %.lr.ph83 ], [ %.4.prol, %.prol.loopexit109.unr-lcssa ]
  %82 = icmp eq i32 %.pre106, %71
  br i1 %82, label %._crit_edge84, label %.lr.ph83.new

.lr.ph76.new:                                     ; preds = %.prol.loopexit, %93
  %indvars.iv98 = phi i64 [ %indvars.iv.next99.1, %93 ], [ %indvars.iv98.unr, %.prol.loopexit ]
  %.174 = phi i32 [ %.2.1, %93 ], [ %.174.unr, %.prol.loopexit ]
  %83 = icmp sgt i64 %indvars.iv98, %55
  br i1 %83, label %88, label %84

84:                                               ; preds = %.lr.ph76.new
  %85 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %indvars.iv98
  %86 = load i32, ptr %85, align 4, !tbaa !8
  %.not57 = icmp sge i32 %86, %53
  %87 = zext i1 %.not57 to i32
  %spec.select = add nsw i32 %.174, %87
  br label %88

88:                                               ; preds = %84, %.lr.ph76.new
  %.2 = phi i32 [ %.174, %.lr.ph76.new ], [ %spec.select, %84 ]
  %.not = icmp slt i64 %indvars.iv98, %55
  br i1 %.not, label %89, label %93

89:                                               ; preds = %88
  %indvars.iv.next99 = add nsw i64 %indvars.iv98, 1
  %90 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %indvars.iv.next99
  %91 = load i32, ptr %90, align 4, !tbaa !8
  %.not57.1 = icmp sge i32 %91, %53
  %92 = zext i1 %.not57.1 to i32
  %spec.select.1 = add nsw i32 %.2, %92
  br label %93

93:                                               ; preds = %89, %88
  %.2.1 = phi i32 [ %.2, %88 ], [ %spec.select.1, %89 ]
  %indvars.iv.next99.1 = add nsw i64 %indvars.iv98, 2
  %exitcond102.not.1 = icmp eq i64 %indvars.iv.next99.1, %wide.trip.count101
  br i1 %exitcond102.not.1, label %._crit_edge77, label %.lr.ph76.new, !llvm.loop !15

._crit_edge84:                                    ; preds = %.prol.loopexit109, %108, %._crit_edge77
  %.3.lcssa = phi i32 [ %.1.lcssa, %._crit_edge77 ], [ %.4.lcssa.unr, %.prol.loopexit109 ], [ %.4.1, %108 ]
  %94 = icmp eq i32 %45, %47
  %95 = sdiv i32 %.3.lcssa, 2
  %.5 = select i1 %94, i32 %95, i32 %.3.lcssa
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.5)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %96, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  br label %143

.lr.ph83.new:                                     ; preds = %.prol.loopexit109, %108
  %indvars.iv103 = phi i64 [ %indvars.iv.next104.1, %108 ], [ %indvars.iv103.unr, %.prol.loopexit109 ]
  %.381 = phi i32 [ %.4.1, %108 ], [ %.381.unr, %.prol.loopexit109 ]
  %98 = icmp slt i64 %indvars.iv103, %74
  br i1 %98, label %103, label %99

99:                                               ; preds = %.lr.ph83.new
  %100 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %indvars.iv103
  %101 = load i32, ptr %100, align 4, !tbaa !8
  %.not56 = icmp sge i32 %101, %72
  %102 = zext i1 %.not56 to i32
  %spec.select59 = add nsw i32 %.381, %102
  br label %103

103:                                              ; preds = %99, %.lr.ph83.new
  %.4 = phi i32 [ %.381, %.lr.ph83.new ], [ %spec.select59, %99 ]
  %indvars.iv.next104 = add nsw i64 %indvars.iv103, -1
  %.not112 = icmp sgt i64 %indvars.iv103, %74
  br i1 %.not112, label %104, label %108

104:                                              ; preds = %103
  %105 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %indvars.iv.next104
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %.not56.1 = icmp sge i32 %106, %72
  %107 = zext i1 %.not56.1 to i32
  %spec.select59.1 = add nsw i32 %.4, %107
  br label %108

108:                                              ; preds = %104, %103
  %.4.1 = phi i32 [ %.4, %103 ], [ %spec.select59.1, %104 ]
  %indvars.iv.next104.1 = add nsw i64 %indvars.iv103, -2
  %.not55.not.1 = icmp sgt i64 %indvars.iv.next104, %75
  br i1 %.not55.not.1, label %.lr.ph83.new, label %._crit_edge84, !llvm.loop !16

109:                                              ; preds = %.lr.ph88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %110, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %112 = load i32, ptr %7, align 4, !tbaa !8
  %113 = sdiv i32 %112, 710
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [710 x %"class.std::vector"], ptr @res, i64 0, i64 %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %116 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #7
  store ptr %116, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %117 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #7
  store ptr %117, ptr %10, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %118, label %.lr.ph63, label %._crit_edge

._crit_edge:                                      ; preds = %130, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %119 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  store ptr %119, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %120 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @tmp) #7
  store ptr %120, ptr %13, align 8
  %121 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %121, label %.lr.ph65, label %._crit_edge66

.lr.ph63:                                         ; preds = %109, %130
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %123 = load i32, ptr %122, align 4, !tbaa !8
  store i32 %123, ptr %11, align 4, !tbaa !8
  %124 = load i32, ptr %7, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !8
  %.not58 = icmp eq i32 %123, %127
  br i1 %.not58, label %129, label %128

128:                                              ; preds = %.lr.ph63
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) @tmp, ptr noundef nonnull align 4 dereferenceable(4) %11)
  br label %130

129:                                              ; preds = %.lr.ph63
  store i32 -1, ptr %126, align 4, !tbaa !8
  br label %130

130:                                              ; preds = %129, %128
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %132 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  br i1 %132, label %.lr.ph63, label %._crit_edge

._crit_edge66:                                    ; preds = %.lr.ph65, %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %133 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #7
  %134 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %115) #7
  call void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr %133, ptr %134)
  %135 = load i32, ptr %8, align 4, !tbaa !8
  %136 = load i32, ptr %7, align 4, !tbaa !8
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [500001 x i32], ptr @s, i64 0, i64 %137
  store i32 %135, ptr %138, align 4, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  br label %143

.lr.ph65:                                         ; preds = %._crit_edge, %.lr.ph65
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %140 = load i32, ptr %139, align 4, !tbaa !8
  store i32 %140, ptr %14, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %115, ptr noundef nonnull align 4 dereferenceable(4) %14)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %142 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br i1 %142, label %.lr.ph65, label %._crit_edge66

143:                                              ; preds = %._crit_edge66, %._crit_edge84
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  %144 = load i32, ptr @q, align 4, !tbaa !8
  %145 = add nsw i32 %144, -1
  store i32 %145, ptr @q, align 4, !tbaa !8
  %.not52 = icmp eq i32 %144, 0
  br i1 %.not52, label %._crit_edge89, label %.lr.ph88, !llvm.loop !17

._crit_edge89:                                    ; preds = %143, %31
  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

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

; 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 dso_local void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) 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_iteratorIPiSt6vectorIiSaIiEEEEEvT_S7_(ptr, ptr) local_unnamed_addr #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPiSt6vectorIiSaIiEEEENS_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 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 #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(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 noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8)) local_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 = !{!"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}


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