; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/VK Cup 2016 Round 1 /Problem C (C)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::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.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@t = external dso_local global [200100 x i64], align 16
@top = external dso_local global [5 x i64], align 16
@ppl = external dso_local global [5 x %"class.std::vector"], align 16
@n = external dso_local global i64, align 8
@k = external dso_local global i64, align 8
@b = external dso_local global i64, align 8
@c = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z6getmodx(i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7getdistxx(i64 noundef, i64 noundef) #2

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

37:                                               ; preds = %48, %0
  %38 = load i32, ptr %2, align 4, !tbaa !8
  %39 = sext i32 %38 to i64
  %40 = load i64, ptr @n, align 8, !tbaa !11
  %41 = icmp slt i64 %39, %40
  br i1 %41, label %43, label %42

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

43:                                               ; preds = %37
  %44 = load i32, ptr %2, align 4, !tbaa !8
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %45
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %46)
  br label %48

48:                                               ; preds = %43
  %49 = load i32, ptr %2, align 4, !tbaa !8
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %2, align 4, !tbaa !8
  br label %37, !llvm.loop !13

51:                                               ; preds = %42
  %52 = load i64, ptr @n, align 8, !tbaa !11
  %53 = getelementptr inbounds i64, ptr @t, i64 %52
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef @t, ptr noundef %53)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 1152921504606846976, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %54

54:                                               ; preds = %274, %51
  %55 = load i32, ptr %5, align 4, !tbaa !8
  %56 = icmp slt i32 %55, 5
  br i1 %56, label %58, label %57

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

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

59:                                               ; preds = %67, %58
  %60 = load i32, ptr %7, align 4, !tbaa !8
  %61 = icmp slt i32 %60, 5
  br i1 %61, label %63, label %62

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

63:                                               ; preds = %59
  %64 = load i32, ptr %7, align 4, !tbaa !8
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %65
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %66) #7
  br label %67

67:                                               ; preds = %63
  %68 = load i32, ptr %7, align 4, !tbaa !8
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !8
  br label %59, !llvm.loop !15

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

71:                                               ; preds = %79, %70
  %72 = load i32, ptr %8, align 4, !tbaa !8
  %73 = icmp slt i32 %72, 5
  br i1 %73, label %75, label %74

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

75:                                               ; preds = %71
  %76 = load i32, ptr %8, align 4, !tbaa !8
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [5 x i64], ptr @top, i64 0, i64 %77
  store i64 0, ptr %78, align 8, !tbaa !11
  br label %79

79:                                               ; preds = %75
  %80 = load i32, ptr %8, align 4, !tbaa !8
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %8, align 4, !tbaa !8
  br label %71, !llvm.loop !16

82:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %83

83:                                               ; preds = %101, %82
  %84 = load i32, ptr %9, align 4, !tbaa !8
  %85 = sext i32 %84 to i64
  %86 = load i64, ptr @k, align 8, !tbaa !11
  %87 = icmp slt i64 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %83
  store i32 14, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %104

89:                                               ; preds = %83
  %90 = load i32, ptr %9, align 4, !tbaa !8
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = call noundef i64 @_Z6getmodx(i64 noundef %93)
  %95 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %96 = load i32, ptr %9, align 4, !tbaa !8
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !11
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %10, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %101

101:                                              ; preds = %89
  %102 = load i32, ptr %9, align 4, !tbaa !8
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %9, align 4, !tbaa !8
  br label %83, !llvm.loop !17

104:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %105 = load i64, ptr @k, align 8, !tbaa !11
  %106 = sub nsw i64 %105, 1
  %107 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !11
  store i64 %108, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  br label %109

109:                                              ; preds = %115, %104
  %110 = load i64, ptr %11, align 8, !tbaa !11
  %111 = call noundef i64 @_Z6getmodx(i64 noundef %110)
  %112 = load i32, ptr %5, align 4, !tbaa !8
  %113 = sext i32 %112 to i64
  %114 = icmp ne i64 %111, %113
  br i1 %114, label %115, label %118

115:                                              ; preds = %109
  %116 = load i64, ptr %11, align 8, !tbaa !11
  %117 = add nsw i64 %116, 1
  store i64 %117, ptr %11, align 8, !tbaa !11
  br label %109, !llvm.loop !18

118:                                              ; preds = %109
  store i64 0, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !8
  br label %119

119:                                              ; preds = %148, %118
  %120 = load i32, ptr %13, align 4, !tbaa !8
  %121 = icmp slt i32 %120, 5
  br i1 %121, label %123, label %122

122:                                              ; preds = %119
  store i32 19, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %151

123:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %124 = load i32, ptr %13, align 4, !tbaa !8
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %125
  %127 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %126) #7
  %128 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %14, i32 0, i32 0
  store ptr %127, ptr %128, align 8
  br label %129

129:                                              ; preds = %145, %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %130 = load i32, ptr %13, align 4, !tbaa !8
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %131
  %133 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %132) #7
  %134 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %133, ptr %134, align 8
  %135 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br i1 %135, label %137, label %136

136:                                              ; preds = %129
  store i32 22, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %147

137:                                              ; preds = %129
  %138 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %139 = load i32, ptr %138, align 4, !tbaa !8
  %140 = sext i32 %139 to i64
  %141 = load i64, ptr %11, align 8, !tbaa !11
  %142 = call noundef i64 @_Z7getdistxx(i64 noundef %140, i64 noundef %141)
  %143 = load i64, ptr %3, align 8, !tbaa !11
  %144 = add nsw i64 %143, %142
  store i64 %144, ptr %3, align 8, !tbaa !11
  br label %145

145:                                              ; preds = %137
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  br label %129, !llvm.loop !19

147:                                              ; preds = %136
  br label %148

148:                                              ; preds = %147
  %149 = load i32, ptr %13, align 4, !tbaa !8
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %13, align 4, !tbaa !8
  br label %119, !llvm.loop !20

151:                                              ; preds = %122
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %153 = load i64, ptr %152, align 8, !tbaa !11
  store i64 %153, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %154 = load i64, ptr @k, align 8, !tbaa !11
  %155 = trunc i64 %154 to i32
  store i32 %155, ptr %16, align 4, !tbaa !8
  br label %156

156:                                              ; preds = %270, %151
  %157 = load i32, ptr %16, align 4, !tbaa !8
  %158 = sext i32 %157 to i64
  %159 = load i64, ptr @n, align 8, !tbaa !11
  %160 = icmp slt i64 %158, %159
  br i1 %160, label %162, label %161

161:                                              ; preds = %156
  store i32 25, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %273

162:                                              ; preds = %156
  %163 = load i64, ptr %11, align 8, !tbaa !11
  store i64 %163, ptr %12, align 8, !tbaa !11
  %164 = load i32, ptr %16, align 4, !tbaa !8
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %165
  %167 = load i64, ptr %166, align 8, !tbaa !11
  store i64 %167, ptr %11, align 8, !tbaa !11
  br label %168

168:                                              ; preds = %174, %162
  %169 = load i64, ptr %11, align 8, !tbaa !11
  %170 = call noundef i64 @_Z6getmodx(i64 noundef %169)
  %171 = load i32, ptr %5, align 4, !tbaa !8
  %172 = sext i32 %171 to i64
  %173 = icmp ne i64 %170, %172
  br i1 %173, label %174, label %177

174:                                              ; preds = %168
  %175 = load i64, ptr %11, align 8, !tbaa !11
  %176 = add nsw i64 %175, 1
  store i64 %176, ptr %11, align 8, !tbaa !11
  br label %168, !llvm.loop !21

177:                                              ; preds = %168
  %178 = load i64, ptr %12, align 8, !tbaa !11
  %179 = load i64, ptr %11, align 8, !tbaa !11
  %180 = call noundef i64 @_Z7getdistxx(i64 noundef %178, i64 noundef %179)
  %181 = load i64, ptr @k, align 8, !tbaa !11
  %182 = mul nsw i64 %180, %181
  %183 = load i64, ptr %3, align 8, !tbaa !11
  %184 = add nsw i64 %183, %182
  store i64 %184, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 -1, ptr %17, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %185 = load i32, ptr %16, align 4, !tbaa !8
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %186
  %188 = load i64, ptr %187, align 8, !tbaa !11
  %189 = load i64, ptr %11, align 8, !tbaa !11
  %190 = call noundef i64 @_Z7getdistxx(i64 noundef %188, i64 noundef %189)
  store i64 %190, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !8
  br label %191

191:                                              ; preds = %226, %177
  %192 = load i32, ptr %19, align 4, !tbaa !8
  %193 = icmp slt i32 %192, 5
  br i1 %193, label %195, label %194

194:                                              ; preds = %191
  store i32 30, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %229

195:                                              ; preds = %191
  %196 = load i32, ptr %19, align 4, !tbaa !8
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [5 x i64], ptr @top, i64 0, i64 %197
  %199 = load i64, ptr %198, align 8, !tbaa !11
  %200 = load i32, ptr %19, align 4, !tbaa !8
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %201
  %203 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %202) #7
  %204 = icmp eq i64 %199, %203
  br i1 %204, label %205, label %206

205:                                              ; preds = %195
  br label %226

206:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %207 = load i32, ptr %19, align 4, !tbaa !8
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %208
  %210 = load i32, ptr %19, align 4, !tbaa !8
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [5 x i64], ptr @top, i64 0, i64 %211
  %213 = load i64, ptr %212, align 8, !tbaa !11
  %214 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %213) #7
  %215 = load i32, ptr %214, align 4, !tbaa !8
  %216 = sext i32 %215 to i64
  %217 = load i64, ptr %11, align 8, !tbaa !11
  %218 = call noundef i64 @_Z7getdistxx(i64 noundef %216, i64 noundef %217)
  store i64 %218, ptr %20, align 8, !tbaa !11
  %219 = load i64, ptr %20, align 8, !tbaa !11
  %220 = load i64, ptr %18, align 8, !tbaa !11
  %221 = icmp sgt i64 %219, %220
  br i1 %221, label %222, label %225

222:                                              ; preds = %206
  %223 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %223, ptr %18, align 8, !tbaa !11
  %224 = load i32, ptr %19, align 4, !tbaa !8
  store i32 %224, ptr %17, align 4, !tbaa !8
  br label %225

225:                                              ; preds = %222, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %226

226:                                              ; preds = %225, %205
  %227 = load i32, ptr %19, align 4, !tbaa !8
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %19, align 4, !tbaa !8
  br label %191, !llvm.loop !22

229:                                              ; preds = %194
  %230 = load i32, ptr %17, align 4, !tbaa !8
  %231 = icmp ne i32 %230, -1
  br i1 %231, label %232, label %267

232:                                              ; preds = %229
  %233 = load i32, ptr %17, align 4, !tbaa !8
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %234
  %236 = load i32, ptr %17, align 4, !tbaa !8
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [5 x i64], ptr @top, i64 0, i64 %237
  %239 = load i64, ptr %238, align 8, !tbaa !11
  %240 = add nsw i64 %239, 1
  store i64 %240, ptr %238, align 8, !tbaa !11
  %241 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %235, i64 noundef %239) #7
  %242 = load i32, ptr %241, align 4, !tbaa !8
  %243 = sext i32 %242 to i64
  %244 = load i64, ptr %11, align 8, !tbaa !11
  %245 = call noundef i64 @_Z7getdistxx(i64 noundef %243, i64 noundef %244)
  %246 = load i64, ptr %3, align 8, !tbaa !11
  %247 = sub nsw i64 %246, %245
  store i64 %247, ptr %3, align 8, !tbaa !11
  %248 = load i32, ptr %16, align 4, !tbaa !8
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %249
  %251 = load i64, ptr %250, align 8, !tbaa !11
  %252 = load i64, ptr %11, align 8, !tbaa !11
  %253 = call noundef i64 @_Z7getdistxx(i64 noundef %251, i64 noundef %252)
  %254 = load i64, ptr %3, align 8, !tbaa !11
  %255 = add nsw i64 %254, %253
  store i64 %255, ptr %3, align 8, !tbaa !11
  %256 = load i32, ptr %16, align 4, !tbaa !8
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %257
  %259 = load i64, ptr %258, align 8, !tbaa !11
  %260 = call noundef i64 @_Z6getmodx(i64 noundef %259)
  %261 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %262 = load i32, ptr %16, align 4, !tbaa !8
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %263
  %265 = load i64, ptr %264, align 8, !tbaa !11
  %266 = trunc i64 %265 to i32
  store i32 %266, ptr %21, align 4, !tbaa !8
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %261, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %267

267:                                              ; preds = %232, %229
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %269 = load i64, ptr %268, align 8, !tbaa !11
  store i64 %269, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %270

270:                                              ; preds = %267
  %271 = load i32, ptr %16, align 4, !tbaa !8
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %16, align 4, !tbaa !8
  br label %156, !llvm.loop !23

273:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %5, align 4, !tbaa !8
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %5, align 4, !tbaa !8
  br label %54, !llvm.loop !24

277:                                              ; preds = %57
  %278 = load i64, ptr %4, align 8, !tbaa !11
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %278)
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  %281 = load i32, ptr %1, align 4
  ret i32 %281
}

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

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

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

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

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

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

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

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

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

; 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

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!12, !12, i64 0}
!12 = !{!"long long", !10, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}
!23 = distinct !{!23, !14}
!24 = distinct !{!24, !14}


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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::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.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@t = external dso_local global [200100 x i64], align 16
@top = external dso_local local_unnamed_addr global [5 x i64], align 16
@ppl = external dso_local global [5 x %"class.std::vector"], align 16
@n = external dso_local global i64, align 8
@k = external dso_local global i64, align 8
@b = external dso_local global i64, align 8
@c = external dso_local global i64, align 8
@_ZSt3cin = external global %"class.std::basic_istream", align 8

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z6getmodx(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7getdistxx(i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #3 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %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 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %8 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %10
  %12 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
  %13 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %14 = getelementptr i8, ptr %13, i64 -24
  %15 = load i64, ptr %14, align 8
  %16 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %15
  %17 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %16, ptr noundef null)
  %18 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @n)
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(8) @k)
  %20 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(8) @b)
  %21 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) @c)
  %22 = load i64, ptr @n, align 8, !tbaa !8
  %23 = icmp sgt i64 %22, 0
  br i1 %23, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa81 = phi i64 [ %22, %0 ], [ %27, %.lr.ph ]
  %24 = getelementptr inbounds i64, ptr @t, i64 %.lcssa81
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull @t, ptr noundef nonnull %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  store i64 1152921504606846976, ptr %2, align 8, !tbaa !8
  br label %.preheader79

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %25 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %indvars.iv
  %26 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = load i64, ptr @n, align 8, !tbaa !8
  %28 = icmp sgt i64 %27, %indvars.iv.next
  br i1 %28, label %.lr.ph, label %._crit_edge, !llvm.loop !11

.preheader79:                                     ; preds = %._crit_edge, %._crit_edge100
  %indvars.iv123 = phi i64 [ 0, %._crit_edge ], [ %indvars.iv.next124, %._crit_edge100 ]
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) @ppl) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24)) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48)) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72)) #9
  call void @_ZNSt6vectorIiSaIiEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96)) #9
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(40) @top, i8 0, i64 40, i1 false), !tbaa !8
  %29 = load i64, ptr @k, align 8, !tbaa !8
  %30 = icmp sgt i64 %29, 0
  br i1 %30, label %.lr.ph86, label %._crit_edge87

31:                                               ; preds = %._crit_edge100
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %115)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #9
  ret i32 0

._crit_edge87:                                    ; preds = %.lr.ph86, %.preheader79
  %.lcssa = phi i64 [ %29, %.preheader79 ], [ %43, %.lr.ph86 ]
  %34 = add nsw i64 %.lcssa, -1
  %35 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !8
  br label %45

.lr.ph86:                                         ; preds = %.preheader79, %.lr.ph86
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph86 ], [ 0, %.preheader79 ]
  %37 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %indvars.iv111
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = call noundef i64 @_Z6getmodx(i64 noundef %38)
  %40 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  %41 = load i64, ptr %37, align 8, !tbaa !8
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %3, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %43 = load i64, ptr @k, align 8, !tbaa !8
  %44 = icmp sgt i64 %43, %indvars.iv.next112
  br i1 %44, label %.lr.ph86, label %._crit_edge87, !llvm.loop !15

45:                                               ; preds = %45, %._crit_edge87
  %.061 = phi i64 [ %36, %._crit_edge87 ], [ %47, %45 ]
  %46 = call noundef i64 @_Z6getmodx(i64 noundef %.061)
  %.not = icmp eq i64 %46, %indvars.iv123
  %47 = add nsw i64 %.061, 1
  br i1 %.not, label %48, label %45, !llvm.loop !16

48:                                               ; preds = %45
  store i64 0, ptr %1, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %49 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) @ppl) #9
  store ptr %49, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %50 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @ppl) #9
  store ptr %50, ptr %5, align 8
  %51 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %51, label %.lr.ph90, label %._crit_edge91

._crit_edge91:                                    ; preds = %.lr.ph90, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %52 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24)) #9
  store ptr %52, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %53 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24)) #9
  store ptr %53, ptr %5, align 8
  %54 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %54, label %.lr.ph90.1, label %._crit_edge91.1

.lr.ph90.1:                                       ; preds = %._crit_edge91, %.lr.ph90.1
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = sext i32 %56 to i64
  %58 = call noundef i64 @_Z7getdistxx(i64 noundef %57, i64 noundef %.061)
  %59 = load i64, ptr %1, align 8, !tbaa !8
  %60 = add nsw i64 %59, %58
  store i64 %60, ptr %1, align 8, !tbaa !8
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %62 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24)) #9
  store ptr %62, ptr %5, align 8
  %63 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %63, label %.lr.ph90.1, label %._crit_edge91.1, !llvm.loop !17

._crit_edge91.1:                                  ; preds = %.lr.ph90.1, %._crit_edge91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %64 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48)) #9
  store ptr %64, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %65 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48)) #9
  store ptr %65, ptr %5, align 8
  %66 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %66, label %.lr.ph90.2, label %._crit_edge91.2

.lr.ph90.2:                                       ; preds = %._crit_edge91.1, %.lr.ph90.2
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %68 = load i32, ptr %67, align 4, !tbaa !13
  %69 = sext i32 %68 to i64
  %70 = call noundef i64 @_Z7getdistxx(i64 noundef %69, i64 noundef %.061)
  %71 = load i64, ptr %1, align 8, !tbaa !8
  %72 = add nsw i64 %71, %70
  store i64 %72, ptr %1, align 8, !tbaa !8
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %74 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48)) #9
  store ptr %74, ptr %5, align 8
  %75 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %75, label %.lr.ph90.2, label %._crit_edge91.2, !llvm.loop !17

._crit_edge91.2:                                  ; preds = %.lr.ph90.2, %._crit_edge91.1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %76 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72)) #9
  store ptr %76, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %77 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72)) #9
  store ptr %77, ptr %5, align 8
  %78 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %78, label %.lr.ph90.3, label %._crit_edge91.3

.lr.ph90.3:                                       ; preds = %._crit_edge91.2, %.lr.ph90.3
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %80 = load i32, ptr %79, align 4, !tbaa !13
  %81 = sext i32 %80 to i64
  %82 = call noundef i64 @_Z7getdistxx(i64 noundef %81, i64 noundef %.061)
  %83 = load i64, ptr %1, align 8, !tbaa !8
  %84 = add nsw i64 %83, %82
  store i64 %84, ptr %1, align 8, !tbaa !8
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %86 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72)) #9
  store ptr %86, ptr %5, align 8
  %87 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %87, label %.lr.ph90.3, label %._crit_edge91.3, !llvm.loop !17

._crit_edge91.3:                                  ; preds = %.lr.ph90.3, %._crit_edge91.2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  %88 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96)) #9
  store ptr %88, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %89 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96)) #9
  store ptr %89, ptr %5, align 8
  %90 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %90, label %.lr.ph90.4, label %._crit_edge91.4

.lr.ph90.4:                                       ; preds = %._crit_edge91.3, %.lr.ph90.4
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %92 = load i32, ptr %91, align 4, !tbaa !13
  %93 = sext i32 %92 to i64
  %94 = call noundef i64 @_Z7getdistxx(i64 noundef %93, i64 noundef %.061)
  %95 = load i64, ptr %1, align 8, !tbaa !8
  %96 = add nsw i64 %95, %94
  store i64 %96, ptr %1, align 8, !tbaa !8
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %98 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96)) #9
  store ptr %98, ptr %5, align 8
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %99, label %.lr.ph90.4, label %._crit_edge91.4, !llvm.loop !17

._crit_edge91.4:                                  ; preds = %.lr.ph90.4, %._crit_edge91.3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %101 = load i64, ptr %100, align 8, !tbaa !8
  store i64 %101, ptr %2, align 8, !tbaa !8
  %102 = load i64, ptr @k, align 8, !tbaa !8
  %sext = shl i64 %102, 32
  %103 = ashr exact i64 %sext, 32
  %104 = load i64, ptr @n, align 8, !tbaa !8
  %105 = icmp sgt i64 %104, %103
  br i1 %105, label %.lr.ph99, label %._crit_edge100

.lr.ph90:                                         ; preds = %48, %.lr.ph90
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  %107 = load i32, ptr %106, align 4, !tbaa !13
  %108 = sext i32 %107 to i64
  %109 = call noundef i64 @_Z7getdistxx(i64 noundef %108, i64 noundef %.061)
  %110 = load i64, ptr %1, align 8, !tbaa !8
  %111 = add nsw i64 %110, %109
  store i64 %111, ptr %1, align 8, !tbaa !8
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  %113 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) @ppl) #9
  store ptr %113, ptr %5, align 8
  %114 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  br i1 %114, label %.lr.ph90, label %._crit_edge91, !llvm.loop !17

._crit_edge100:                                   ; preds = %204, %._crit_edge91.4
  %115 = phi i64 [ %101, %._crit_edge91.4 ], [ %206, %204 ]
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next124, 5
  br i1 %exitcond.not, label %31, label %.preheader79, !llvm.loop !18

.lr.ph99:                                         ; preds = %._crit_edge91.4, %204
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %204 ], [ %103, %._crit_edge91.4 ]
  %.16296 = phi i64 [ %.263, %204 ], [ %.061, %._crit_edge91.4 ]
  %116 = getelementptr inbounds [200100 x i64], ptr @t, i64 0, i64 %indvars.iv120
  %117 = load i64, ptr %116, align 8, !tbaa !8
  br label %118

118:                                              ; preds = %118, %.lr.ph99
  %.263 = phi i64 [ %117, %.lr.ph99 ], [ %120, %118 ]
  %119 = call noundef i64 @_Z6getmodx(i64 noundef %.263)
  %.not75 = icmp eq i64 %119, %indvars.iv123
  %120 = add nsw i64 %.263, 1
  br i1 %.not75, label %121, label %118, !llvm.loop !19

121:                                              ; preds = %118
  %122 = call noundef i64 @_Z7getdistxx(i64 noundef %.16296, i64 noundef %.263)
  %123 = load i64, ptr @k, align 8, !tbaa !8
  %124 = mul nsw i64 %123, %122
  %125 = load i64, ptr %1, align 8, !tbaa !8
  %126 = add nsw i64 %125, %124
  store i64 %126, ptr %1, align 8, !tbaa !8
  %127 = load i64, ptr %116, align 8, !tbaa !8
  %128 = call noundef i64 @_Z7getdistxx(i64 noundef %127, i64 noundef %.263)
  %129 = load i64, ptr @top, align 16, !tbaa !8
  %130 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) @ppl) #9
  %131 = icmp eq i64 %129, %130
  br i1 %131, label %139, label %132

132:                                              ; preds = %121
  %133 = load i64, ptr @top, align 16, !tbaa !8
  %134 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) @ppl, i64 noundef %133) #9
  %135 = load i32, ptr %134, align 4, !tbaa !13
  %136 = sext i32 %135 to i64
  %137 = call noundef i64 @_Z7getdistxx(i64 noundef %136, i64 noundef %.263)
  %138 = icmp sle i64 %137, %128
  %spec.select = sext i1 %138 to i32
  %spec.select77 = call i64 @llvm.smax.i64(i64 %137, i64 %128)
  br label %139

139:                                              ; preds = %121, %132
  %.257 = phi i32 [ -1, %121 ], [ %spec.select, %132 ]
  %.2 = phi i64 [ %128, %121 ], [ %spec.select77, %132 ]
  %140 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 8), align 8, !tbaa !8
  %141 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24)) #9
  %142 = icmp eq i64 %140, %141
  br i1 %142, label %150, label %143

143:                                              ; preds = %139
  %144 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 8), align 8, !tbaa !8
  %145 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 24), i64 noundef %144) #9
  %146 = load i32, ptr %145, align 4, !tbaa !13
  %147 = sext i32 %146 to i64
  %148 = call noundef i64 @_Z7getdistxx(i64 noundef %147, i64 noundef %.263)
  %149 = icmp sgt i64 %148, %.2
  %spec.select.1 = select i1 %149, i32 1, i32 %.257
  %spec.select77.1 = call i64 @llvm.smax.i64(i64 %148, i64 %.2)
  br label %150

150:                                              ; preds = %143, %139
  %.257.1 = phi i32 [ %.257, %139 ], [ %spec.select.1, %143 ]
  %.2.1 = phi i64 [ %.2, %139 ], [ %spec.select77.1, %143 ]
  %151 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 16), align 16, !tbaa !8
  %152 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48)) #9
  %153 = icmp eq i64 %151, %152
  br i1 %153, label %161, label %154

154:                                              ; preds = %150
  %155 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 16), align 16, !tbaa !8
  %156 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 48), i64 noundef %155) #9
  %157 = load i32, ptr %156, align 4, !tbaa !13
  %158 = sext i32 %157 to i64
  %159 = call noundef i64 @_Z7getdistxx(i64 noundef %158, i64 noundef %.263)
  %160 = icmp sgt i64 %159, %.2.1
  %spec.select.2 = select i1 %160, i32 2, i32 %.257.1
  %spec.select77.2 = call i64 @llvm.smax.i64(i64 %159, i64 %.2.1)
  br label %161

161:                                              ; preds = %154, %150
  %.257.2 = phi i32 [ %.257.1, %150 ], [ %spec.select.2, %154 ]
  %.2.2 = phi i64 [ %.2.1, %150 ], [ %spec.select77.2, %154 ]
  %162 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 24), align 8, !tbaa !8
  %163 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72)) #9
  %164 = icmp eq i64 %162, %163
  br i1 %164, label %172, label %165

165:                                              ; preds = %161
  %166 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 24), align 8, !tbaa !8
  %167 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 72), i64 noundef %166) #9
  %168 = load i32, ptr %167, align 4, !tbaa !13
  %169 = sext i32 %168 to i64
  %170 = call noundef i64 @_Z7getdistxx(i64 noundef %169, i64 noundef %.263)
  %171 = icmp sgt i64 %170, %.2.2
  %spec.select.3 = select i1 %171, i32 3, i32 %.257.2
  %spec.select77.3 = call i64 @llvm.smax.i64(i64 %170, i64 %.2.2)
  br label %172

172:                                              ; preds = %165, %161
  %.257.3 = phi i32 [ %.257.2, %161 ], [ %spec.select.3, %165 ]
  %.2.3 = phi i64 [ %.2.2, %161 ], [ %spec.select77.3, %165 ]
  %173 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 32), align 16, !tbaa !8
  %174 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96)) #9
  %175 = icmp eq i64 %173, %174
  br i1 %175, label %183, label %176

176:                                              ; preds = %172
  %177 = load i64, ptr getelementptr inbounds (i8, ptr @top, i64 32), align 16, !tbaa !8
  %178 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) getelementptr inbounds (i8, ptr @ppl, i64 96), i64 noundef %177) #9
  %179 = load i32, ptr %178, align 4, !tbaa !13
  %180 = sext i32 %179 to i64
  %181 = call noundef i64 @_Z7getdistxx(i64 noundef %180, i64 noundef %.263)
  %182 = icmp sgt i64 %181, %.2.3
  br i1 %182, label %.thread, label %183

183:                                              ; preds = %176, %172
  %.not76 = icmp eq i32 %.257.3, -1
  br i1 %.not76, label %204, label %.thread

.thread:                                          ; preds = %176, %183
  %.257.4128 = phi i32 [ %.257.3, %183 ], [ 4, %176 ]
  %184 = zext nneg i32 %.257.4128 to i64
  %185 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %184
  %186 = getelementptr inbounds [5 x i64], ptr @top, i64 0, i64 %184
  %187 = load i64, ptr %186, align 8, !tbaa !8
  %188 = add nsw i64 %187, 1
  store i64 %188, ptr %186, align 8, !tbaa !8
  %189 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %185, i64 noundef %187) #9
  %190 = load i32, ptr %189, align 4, !tbaa !13
  %191 = sext i32 %190 to i64
  %192 = call noundef i64 @_Z7getdistxx(i64 noundef %191, i64 noundef %.263)
  %193 = load i64, ptr %1, align 8, !tbaa !8
  %194 = sub nsw i64 %193, %192
  store i64 %194, ptr %1, align 8, !tbaa !8
  %195 = load i64, ptr %116, align 8, !tbaa !8
  %196 = call noundef i64 @_Z7getdistxx(i64 noundef %195, i64 noundef %.263)
  %197 = load i64, ptr %1, align 8, !tbaa !8
  %198 = add nsw i64 %197, %196
  store i64 %198, ptr %1, align 8, !tbaa !8
  %199 = load i64, ptr %116, align 8, !tbaa !8
  %200 = call noundef i64 @_Z6getmodx(i64 noundef %199)
  %201 = getelementptr inbounds [5 x %"class.std::vector"], ptr @ppl, i64 0, i64 %200
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  %202 = load i64, ptr %116, align 8, !tbaa !8
  %203 = trunc i64 %202 to i32
  store i32 %203, ptr %6, align 4, !tbaa !13
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %201, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  br label %204

204:                                              ; preds = %.thread, %183
  %205 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %206 = load i64, ptr %205, align 8, !tbaa !8
  store i64 %206, ptr %2, align 8, !tbaa !8
  %indvars.iv.next121 = add nsw i64 %indvars.iv120, 1
  %207 = load i64, ptr @n, align 8, !tbaa !8
  %208 = icmp sgt i64 %207, %indvars.iv.next121
  br i1 %208, label %.lr.ph99, label %._crit_edge100, !llvm.loop !20
}

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

; 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 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 #0 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr 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: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; 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

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

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

; 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 #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #7

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 #4 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { 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 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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