; LLVM IR from eyangch/competitive-programming :: USACOcontests/gold/2019.01 (poetry)

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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3pwrxxx(i64 noundef, i64 noundef, i64 noundef) #0

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

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

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

51:                                               ; preds = %0
  %52 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %47
  br label %53

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

57:                                               ; preds = %53, %0
  %58 = load i64, ptr %5, align 8, !tbaa !11
  %59 = add nsw i64 %58, 1
  %60 = alloca %"class.std::vector", i64 %59, align 16
  store i64 %59, ptr %8, align 8
  %61 = icmp eq i64 %59, 0
  br i1 %61, label %68, label %62

62:                                               ; preds = %57
  %63 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  br label %64

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

68:                                               ; preds = %64, %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %69

69:                                               ; preds = %94, %68
  %70 = load i32, ptr %9, align 4, !tbaa !13
  %71 = sext i32 %70 to i64
  %72 = load i64, ptr %3, align 8, !tbaa !11
  %73 = icmp slt i64 %71, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %110

75:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  %76 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %77 unwind label %97

77:                                               ; preds = %75
  %78 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %76, ptr noundef nonnull align 4 dereferenceable(4) %11)
          to label %79 unwind label %97

79:                                               ; preds = %77
  %80 = load i32, ptr %11, align 4, !tbaa !13
  %81 = sub nsw i32 %80, 1
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %84 = load i32, ptr %10, align 4, !tbaa !13
  %85 = sext i32 %84 to i64
  store i64 %85, ptr %14, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %86 unwind label %101

86:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  %87 = load i32, ptr %10, align 4, !tbaa !13
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %90 = load i32, ptr %11, align 4, !tbaa !13
  %91 = sub nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  store i64 %92, ptr %15, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(8) %15)
          to label %93 unwind label %105

93:                                               ; preds = %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  br label %94

94:                                               ; preds = %93
  %95 = load i32, ptr %9, align 4, !tbaa !13
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %9, align 4, !tbaa !13
  br label %69, !llvm.loop !15

97:                                               ; preds = %77, %75
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %12, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %13, align 4
  br label %109

101:                                              ; preds = %79
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %12, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %109

105:                                              ; preds = %86
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %109

109:                                              ; preds = %105, %101, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %302

110:                                              ; preds = %74
  %111 = load i64, ptr %5, align 8, !tbaa !11
  %112 = add nsw i64 %111, 1
  %113 = alloca i64, i64 %112, align 16
  store i64 %112, ptr %16, align 8
  %114 = load i64, ptr %5, align 8, !tbaa !11
  %115 = getelementptr inbounds i64, ptr %113, i64 %114
  %116 = getelementptr inbounds i64, ptr %115, i64 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !13
  invoke void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef %113, ptr noundef %116, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %117 unwind label %126

117:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  %118 = getelementptr inbounds i64, ptr %113, i64 0
  store i64 1, ptr %118, align 16, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !13
  br label %119

119:                                              ; preds = %165, %117
  %120 = load i32, ptr %18, align 4, !tbaa !13
  %121 = sext i32 %120 to i64
  %122 = load i64, ptr %5, align 8, !tbaa !11
  %123 = add nsw i64 %122, 1
  %124 = icmp slt i64 %121, %123
  br i1 %124, label %130, label %125

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

126:                                              ; preds = %110
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %12, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %302

130:                                              ; preds = %119
  %131 = load i32, ptr %18, align 4, !tbaa !13
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i64, ptr %113, i64 %132
  store i64 0, ptr %133, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !13
  br label %134

134:                                              ; preds = %161, %130
  %135 = load i32, ptr %20, align 4, !tbaa !13
  %136 = load i32, ptr %18, align 4, !tbaa !13
  %137 = icmp sle i32 %135, %136
  br i1 %137, label %139, label %138

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

139:                                              ; preds = %134
  %140 = load i32, ptr %20, align 4, !tbaa !13
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %141
  %143 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %142) #8
  %144 = load i32, ptr %18, align 4, !tbaa !13
  %145 = load i32, ptr %20, align 4, !tbaa !13
  %146 = sub nsw i32 %144, %145
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds i64, ptr %113, i64 %147
  %149 = load i64, ptr %148, align 8, !tbaa !11
  %150 = mul i64 %143, %149
  %151 = load i32, ptr %18, align 4, !tbaa !13
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds i64, ptr %113, i64 %152
  %154 = load i64, ptr %153, align 8, !tbaa !11
  %155 = add i64 %154, %150
  store i64 %155, ptr %153, align 8, !tbaa !11
  %156 = load i32, ptr %18, align 4, !tbaa !13
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i64, ptr %113, i64 %157
  %159 = load i64, ptr %158, align 8, !tbaa !11
  %160 = srem i64 %159, 1000000007
  store i64 %160, ptr %158, align 8, !tbaa !11
  br label %161

161:                                              ; preds = %139
  %162 = load i32, ptr %20, align 4, !tbaa !13
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %20, align 4, !tbaa !13
  br label %134, !llvm.loop !17

164:                                              ; preds = %138
  br label %165

165:                                              ; preds = %164
  %166 = load i32, ptr %18, align 4, !tbaa !13
  %167 = add nsw i32 %166, 1
  store i32 %167, ptr %18, align 4, !tbaa !13
  br label %119, !llvm.loop !18

168:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 800, ptr %21) #8
  %169 = getelementptr inbounds [100 x i64], ptr %21, i64 0, i64 0
  %170 = getelementptr inbounds [100 x i64], ptr %21, i64 0, i64 0
  %171 = getelementptr inbounds i64, ptr %170, i64 100
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !13
  invoke void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef %169, ptr noundef %171, ptr noundef nonnull align 4 dereferenceable(4) %22)
          to label %172 unwind label %179

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !13
  br label %173

173:                                              ; preds = %192, %172
  %174 = load i32, ptr %23, align 4, !tbaa !13
  %175 = sext i32 %174 to i64
  %176 = load i64, ptr %4, align 8, !tbaa !11
  %177 = icmp slt i64 %175, %176
  br i1 %177, label %183, label %178

178:                                              ; preds = %173
  store i32 11, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %199

179:                                              ; preds = %168
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %12, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %294

183:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #8
  %184 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %185 unwind label %195

185:                                              ; preds = %183
  %186 = load i8, ptr %24, align 1, !tbaa !19
  %187 = sext i8 %186 to i32
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [100 x i64], ptr %21, i64 0, i64 %188
  %190 = load i64, ptr %189, align 8, !tbaa !11
  %191 = add nsw i64 %190, 1
  store i64 %191, ptr %189, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  br label %192

192:                                              ; preds = %185
  %193 = load i32, ptr %23, align 4, !tbaa !13
  %194 = add nsw i32 %193, 1
  store i32 %194, ptr %23, align 4, !tbaa !13
  br label %173, !llvm.loop !20

195:                                              ; preds = %183
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %12, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %294

199:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store i64 1, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 65, ptr %26, align 4, !tbaa !13
  br label %200

200:                                              ; preds = %278, %199
  %201 = load i32, ptr %26, align 4, !tbaa !13
  %202 = icmp sle i32 %201, 90
  br i1 %202, label %204, label %203

203:                                              ; preds = %200
  store i32 14, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %281

204:                                              ; preds = %200
  %205 = load i32, ptr %26, align 4, !tbaa !13
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [100 x i64], ptr %21, i64 0, i64 %206
  %208 = load i64, ptr %207, align 8, !tbaa !11
  %209 = icmp eq i64 %208, 0
  br i1 %209, label %210, label %211

210:                                              ; preds = %204
  br label %278

211:                                              ; preds = %204
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store i64 0, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  store i32 0, ptr %28, align 4, !tbaa !13
  br label %212

212:                                              ; preds = %265, %211
  %213 = load i32, ptr %28, align 4, !tbaa !13
  %214 = sext i32 %213 to i64
  %215 = load i64, ptr %3, align 8, !tbaa !11
  %216 = icmp slt i64 %214, %215
  br i1 %216, label %218, label %217

217:                                              ; preds = %212
  store i32 17, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %272

218:                                              ; preds = %212
  %219 = load i32, ptr %28, align 4, !tbaa !13
  %220 = sext i32 %219 to i64
  %221 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %220
  %222 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %221) #8
  %223 = trunc i64 %222 to i32
  %224 = icmp eq i32 %223, 0
  br i1 %224, label %225, label %226

225:                                              ; preds = %218
  br label %265

226:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #8
  store i64 0, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #8
  %227 = load i32, ptr %28, align 4, !tbaa !13
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %228
  store ptr %229, ptr %30, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %230 = load ptr, ptr %30, align 8, !tbaa !8
  %231 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %230) #8
  %232 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %31, i32 0, i32 0
  store ptr %231, ptr %232, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #8
  %233 = load ptr, ptr %30, align 8, !tbaa !8
  %234 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %233) #8
  %235 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %32, i32 0, i32 0
  store ptr %234, ptr %235, align 8
  br label %236

236:                                              ; preds = %251, %226
  %237 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32) #8
  br i1 %237, label %239, label %238

238:                                              ; preds = %236
  store i32 20, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #8
  br label %253

239:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  %241 = load i64, ptr %240, align 8, !tbaa !11
  store i64 %241, ptr %33, align 8, !tbaa !11
  %242 = load i64, ptr %5, align 8, !tbaa !11
  %243 = load i64, ptr %33, align 8, !tbaa !11
  %244 = sub nsw i64 %242, %243
  %245 = getelementptr inbounds i64, ptr %113, i64 %244
  %246 = load i64, ptr %245, align 8, !tbaa !11
  %247 = load i64, ptr %29, align 8, !tbaa !11
  %248 = add nsw i64 %247, %246
  store i64 %248, ptr %29, align 8, !tbaa !11
  %249 = load i64, ptr %29, align 8, !tbaa !11
  %250 = srem i64 %249, 1000000007
  store i64 %250, ptr %29, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  br label %251

251:                                              ; preds = %239
  %252 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %31) #8
  br label %236

253:                                              ; preds = %238
  %254 = load i64, ptr %29, align 8, !tbaa !11
  %255 = load i32, ptr %26, align 4, !tbaa !13
  %256 = sext i32 %255 to i64
  %257 = getelementptr inbounds [100 x i64], ptr %21, i64 0, i64 %256
  %258 = load i64, ptr %257, align 8, !tbaa !11
  %259 = invoke noundef i64 @_Z3pwrxxx(i64 noundef %254, i64 noundef %258, i64 noundef 1000000007)
          to label %260 unwind label %268

260:                                              ; preds = %253
  %261 = load i64, ptr %27, align 8, !tbaa !11
  %262 = add nsw i64 %261, %259
  store i64 %262, ptr %27, align 8, !tbaa !11
  %263 = load i64, ptr %27, align 8, !tbaa !11
  %264 = srem i64 %263, 1000000007
  store i64 %264, ptr %27, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  br label %265

265:                                              ; preds = %260, %225
  %266 = load i32, ptr %28, align 4, !tbaa !13
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %28, align 4, !tbaa !13
  br label %212, !llvm.loop !21

268:                                              ; preds = %253
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %12, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %293

272:                                              ; preds = %217
  %273 = load i64, ptr %27, align 8, !tbaa !11
  %274 = load i64, ptr %25, align 8, !tbaa !11
  %275 = mul nsw i64 %274, %273
  store i64 %275, ptr %25, align 8, !tbaa !11
  %276 = load i64, ptr %25, align 8, !tbaa !11
  %277 = srem i64 %276, 1000000007
  store i64 %277, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %278

278:                                              ; preds = %272, %210
  %279 = load i32, ptr %26, align 4, !tbaa !13
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %26, align 4, !tbaa !13
  br label %200, !llvm.loop !22

281:                                              ; preds = %203
  %282 = load i64, ptr %25, align 8, !tbaa !11
  %283 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %282)
          to label %284 unwind label %289

284:                                              ; preds = %281
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %283, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %286 unwind label %289

286:                                              ; preds = %284
  store i32 0, ptr %1, align 4
  store i32 1, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 800, ptr %21) #8
  %287 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  %288 = icmp eq ptr %60, %287
  br i1 %288, label %299, label %295

289:                                              ; preds = %284, %281
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %12, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %13, align 4
  br label %293

293:                                              ; preds = %289, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %294

294:                                              ; preds = %293, %195, %179
  call void @llvm.lifetime.end.p0(i64 800, ptr %21) #8
  br label %302

295:                                              ; preds = %295, %286
  %296 = phi ptr [ %287, %286 ], [ %297, %295 ]
  %297 = getelementptr inbounds %"class.std::vector", ptr %296, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %297) #8
  %298 = icmp eq ptr %297, %60
  br i1 %298, label %299, label %295

299:                                              ; preds = %295, %286
  %300 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %47
  %301 = icmp eq ptr %49, %300
  br i1 %301, label %316, label %312

302:                                              ; preds = %294, %126, %109
  %303 = getelementptr inbounds %"class.std::vector", ptr %60, i64 %59
  %304 = icmp eq ptr %60, %303
  br i1 %304, label %309, label %305

305:                                              ; preds = %305, %302
  %306 = phi ptr [ %303, %302 ], [ %307, %305 ]
  %307 = getelementptr inbounds %"class.std::vector", ptr %306, i64 -1
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %307) #8
  %308 = icmp eq ptr %307, %60
  br i1 %308, label %309, label %305

309:                                              ; preds = %305, %302
  %310 = getelementptr inbounds %"class.std::vector", ptr %49, i64 %47
  %311 = icmp eq ptr %49, %310
  br i1 %311, label %323, label %319

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

316:                                              ; preds = %312, %299
  %317 = load ptr, ptr %6, align 8
  call void @llvm.stackrestore.p0(ptr %317)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  %318 = load i32, ptr %1, align 4
  ret i32 %318

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

323:                                              ; preds = %319, %309
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #8
  br label %324

324:                                              ; preds = %323
  %325 = load ptr, ptr %12, align 8
  %326 = load i32, ptr %13, align 4
  %327 = insertvalue { ptr, i32 } poison, ptr %325, 0
  %328 = insertvalue { ptr, i32 } %327, i32 %326, 1
  resume { ptr, i32 } %328
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #3

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) #3

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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

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


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

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3pwrxxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca [100 x i64], align 16
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %14 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %15 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %16 = getelementptr i8, ptr %15, i64 -24
  %17 = load i64, ptr %16, align 8
  %18 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %17
  %19 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %18, ptr noundef null)
  %20 = load ptr, ptr @stdin, align 8, !tbaa !8
  %21 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %20)
  %22 = load ptr, ptr @stdout, align 8, !tbaa !8
  %23 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %22)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %27 = load i64, ptr %1, align 8, !tbaa !11
  %28 = call ptr @llvm.stacksave.p0()
  %29 = alloca %"class.std::vector", i64 %27, align 16
  %30 = icmp eq i64 %27, 0
  br i1 %30, label %.loopexit77, label %31

31:                                               ; preds = %0
  %32 = getelementptr inbounds %"class.std::vector", ptr %29, i64 %27
  br label %33

33:                                               ; preds = %33, %31
  %34 = phi ptr [ %29, %31 ], [ %35, %33 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #8
  %35 = getelementptr inbounds i8, ptr %34, i64 24
  %36 = icmp eq ptr %35, %32
  br i1 %36, label %.loopexit77, label %33

.loopexit77:                                      ; preds = %33, %0
  %37 = load i64, ptr %3, align 8, !tbaa !11
  %38 = add nsw i64 %37, 1
  %39 = alloca %"class.std::vector", i64 %38, align 16
  %40 = icmp eq i64 %38, 0
  br i1 %40, label %.loopexit76, label %41

41:                                               ; preds = %.loopexit77
  %42 = getelementptr inbounds %"class.std::vector", ptr %39, i64 %38
  br label %43

43:                                               ; preds = %43, %41
  %44 = phi ptr [ %39, %41 ], [ %45, %43 ]
  call void @_ZNSt6vectorIxSaIxEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %44) #8
  %45 = getelementptr inbounds i8, ptr %44, i64 24
  %46 = icmp eq ptr %45, %42
  br i1 %46, label %.loopexit76, label %43

.loopexit76:                                      ; preds = %43, %.loopexit77
  %invariant.gep = getelementptr i8, ptr %29, i64 -24
  %47 = load i64, ptr %1, align 8, !tbaa !11
  %48 = icmp sgt i64 %47, 0
  br i1 %48, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %69, %.loopexit76
  %49 = load i64, ptr %3, align 8, !tbaa !11
  %50 = add nsw i64 %49, 1
  %51 = alloca i64, i64 %50, align 16
  %52 = getelementptr inbounds i64, ptr %51, i64 %49
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #8
  store i32 0, ptr %8, align 4, !tbaa !13
  invoke void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull %51, ptr noundef nonnull %53, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %79 unwind label %82

.lr.ph:                                           ; preds = %.loopexit76, %69
  %indvars.iv = phi i64 [ %indvars.iv.next, %69 ], [ 0, %.loopexit76 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #8
  %54 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %55 unwind label %72

55:                                               ; preds = %.lr.ph
  %56 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %57 unwind label %72

57:                                               ; preds = %55
  %58 = load i32, ptr %5, align 4, !tbaa !13
  %59 = sext i32 %58 to i64
  %gep = getelementptr %"class.std::vector", ptr %invariant.gep, i64 %59
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  %60 = load i32, ptr %4, align 4, !tbaa !13
  %61 = sext i32 %60 to i64
  store i64 %61, ptr %6, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %gep, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %62 unwind label %74

62:                                               ; preds = %57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %63 = load i32, ptr %4, align 4, !tbaa !13
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds %"class.std::vector", ptr %39, i64 %64
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  %66 = load i32, ptr %5, align 4, !tbaa !13
  %67 = add nsw i32 %66, -1
  %68 = sext i32 %67 to i64
  store i64 %68, ptr %7, align 8, !tbaa !11
  invoke void @_ZNSt6vectorIxSaIxEE9push_backEOx(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %69 unwind label %76

69:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %70 = load i64, ptr %1, align 8, !tbaa !11
  %71 = icmp sgt i64 %70, %indvars.iv.next
  br i1 %71, label %.lr.ph, label %._crit_edge, !llvm.loop !15

72:                                               ; preds = %55, %.lr.ph
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %78

74:                                               ; preds = %57
  %75 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  br label %78

76:                                               ; preds = %62
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %78

78:                                               ; preds = %76, %74, %72
  %.pn65 = phi { ptr, i32 } [ %77, %76 ], [ %75, %74 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %162

79:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  store i64 1, ptr %51, align 16, !tbaa !11
  %80 = load i64, ptr %3, align 8, !tbaa !11
  %.not82 = icmp slt i64 %80, 1
  br i1 %.not82, label %._crit_edge86, label %.lr.ph85

._crit_edge86:                                    ; preds = %85, %79
  call void @llvm.lifetime.start.p0(i64 800, ptr nonnull %9) #8
  %81 = getelementptr inbounds i8, ptr %9, i64 800
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #8
  store i32 0, ptr %10, align 4, !tbaa !13
  invoke void @_ZSt4fillIPxiEvT_S1_RKT0_(ptr noundef nonnull %9, ptr noundef nonnull %81, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %97 unwind label %100

82:                                               ; preds = %._crit_edge
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #8
  br label %162

.lr.ph85:                                         ; preds = %79, %85
  %indvars.iv109 = phi i64 [ %indvars.iv.next110, %85 ], [ 1, %79 ]
  %indvars.iv107 = phi i64 [ %indvars.iv.next108, %85 ], [ 2, %79 ]
  %84 = getelementptr inbounds i64, ptr %51, i64 %indvars.iv109
  store i64 0, ptr %84, align 8, !tbaa !11
  br label %87

85:                                               ; preds = %87
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %86 = load i64, ptr %3, align 8, !tbaa !11
  %.not.not = icmp sgt i64 %86, %indvars.iv109
  %indvars.iv.next108 = add nuw i64 %indvars.iv107, 1
  br i1 %.not.not, label %.lr.ph85, label %._crit_edge86, !llvm.loop !17

87:                                               ; preds = %.lr.ph85, %87
  %indvars.iv102 = phi i64 [ 0, %.lr.ph85 ], [ %indvars.iv.next103, %87 ]
  %88 = getelementptr inbounds %"class.std::vector", ptr %39, i64 %indvars.iv102
  %89 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %88) #8
  %90 = sub nsw i64 %indvars.iv109, %indvars.iv102
  %91 = getelementptr inbounds i64, ptr %51, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !11
  %93 = mul i64 %92, %89
  %94 = load i64, ptr %84, align 8, !tbaa !11
  %95 = add i64 %94, %93
  %96 = srem i64 %95, 1000000007
  store i64 %96, ptr %84, align 8, !tbaa !11
  %indvars.iv.next103 = add nuw nsw i64 %indvars.iv102, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next103, %indvars.iv107
  br i1 %exitcond.not, label %85, label %87, !llvm.loop !18

97:                                               ; preds = %._crit_edge86
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  %98 = load i64, ptr %2, align 8, !tbaa !11
  %99 = icmp sgt i64 %98, 0
  br i1 %99, label %.lr.ph89, label %.preheader75.preheader

.preheader75.preheader:                           ; preds = %103, %97
  br label %.preheader75

100:                                              ; preds = %._crit_edge86
  %101 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #8
  br label %157

.lr.ph89:                                         ; preds = %97, %103
  %indvars.iv114 = phi i64 [ %indvars.iv.next115, %103 ], [ 0, %97 ]
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #8
  %102 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %103 unwind label %111

103:                                              ; preds = %.lr.ph89
  %104 = load i8, ptr %11, align 1, !tbaa !19
  %105 = sext i8 %104 to i64
  %106 = getelementptr inbounds [100 x i64], ptr %9, i64 0, i64 %105
  %107 = load i64, ptr %106, align 8, !tbaa !11
  %108 = add nsw i64 %107, 1
  store i64 %108, ptr %106, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  %indvars.iv.next115 = add nuw nsw i64 %indvars.iv114, 1
  %109 = load i64, ptr %2, align 8, !tbaa !11
  %110 = icmp sgt i64 %109, %indvars.iv.next115
  br i1 %110, label %.lr.ph89, label %.preheader75.preheader, !llvm.loop !20

111:                                              ; preds = %.lr.ph89
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #8
  br label %157

113:                                              ; preds = %150
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.143)
          to label %151 unwind label %155

.preheader75:                                     ; preds = %.preheader75.preheader, %150
  %indvars.iv120 = phi i64 [ %indvars.iv.next121, %150 ], [ 65, %.preheader75.preheader ]
  %.04299 = phi i64 [ %.143, %150 ], [ 1, %.preheader75.preheader ]
  %115 = getelementptr inbounds [100 x i64], ptr %9, i64 0, i64 %indvars.iv120
  %116 = load i64, ptr %115, align 8, !tbaa !11
  %117 = icmp eq i64 %116, 0
  br i1 %117, label %150, label %.preheader74

.preheader74:                                     ; preds = %.preheader75
  %118 = load i64, ptr %1, align 8, !tbaa !11
  %119 = icmp sgt i64 %118, 0
  br i1 %119, label %.lr.ph96, label %._crit_edge97

._crit_edge97:                                    ; preds = %145, %.preheader74
  %.040.lcssa = phi i64 [ 0, %.preheader74 ], [ %.1, %145 ]
  %120 = mul nsw i64 %.040.lcssa, %.04299
  %121 = srem i64 %120, 1000000007
  br label %150

.lr.ph96:                                         ; preds = %.preheader74, %145
  %indvars.iv117 = phi i64 [ %indvars.iv.next118, %145 ], [ 0, %.preheader74 ]
  %.04094 = phi i64 [ %.1, %145 ], [ 0, %.preheader74 ]
  %122 = getelementptr inbounds %"class.std::vector", ptr %29, i64 %indvars.iv117
  %123 = call noundef i64 @_ZNKSt6vectorIxSaIxEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  %124 = and i64 %123, 4294967295
  %125 = icmp eq i64 %124, 0
  br i1 %125, label %145, label %126

126:                                              ; preds = %.lr.ph96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %127 = call ptr @_ZNSt6vectorIxSaIxEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  store ptr %127, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %128 = call ptr @_ZNSt6vectorIxSaIxEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  store ptr %128, ptr %13, align 8
  %129 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %129, label %.lr.ph92, label %._crit_edge93

._crit_edge93:                                    ; preds = %.lr.ph92, %126
  %.038.lcssa = phi i64 [ 0, %126 ], [ %139, %.lr.ph92 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  %130 = load i64, ptr %115, align 8, !tbaa !11
  %131 = invoke noundef i64 @_Z3pwrxxx(i64 noundef %.038.lcssa, i64 noundef %130, i64 noundef 1000000007)
          to label %142 unwind label %148

.lr.ph92:                                         ; preds = %126, %.lr.ph92
  %.03890 = phi i64 [ %139, %.lr.ph92 ], [ 0, %126 ]
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %133 = load i64, ptr %132, align 8, !tbaa !11
  %134 = load i64, ptr %3, align 8, !tbaa !11
  %135 = sub nsw i64 %134, %133
  %136 = getelementptr inbounds i64, ptr %51, i64 %135
  %137 = load i64, ptr %136, align 8, !tbaa !11
  %138 = add nsw i64 %137, %.03890
  %139 = srem i64 %138, 1000000007
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPxSt6vectorIxSaIxEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  %141 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPxSt6vectorIxSaIxEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br i1 %141, label %.lr.ph92, label %._crit_edge93

142:                                              ; preds = %._crit_edge93
  %143 = add nsw i64 %131, %.04094
  %144 = srem i64 %143, 1000000007
  br label %145

145:                                              ; preds = %.lr.ph96, %142
  %.1 = phi i64 [ %.04094, %.lr.ph96 ], [ %144, %142 ]
  %indvars.iv.next118 = add nuw nsw i64 %indvars.iv117, 1
  %146 = load i64, ptr %1, align 8, !tbaa !11
  %147 = icmp sgt i64 %146, %indvars.iv.next118
  br i1 %147, label %.lr.ph96, label %._crit_edge97, !llvm.loop !21

148:                                              ; preds = %._crit_edge93
  %149 = landingpad { ptr, i32 }
          cleanup
  br label %157

150:                                              ; preds = %.preheader75, %._crit_edge97
  %.143 = phi i64 [ %.04299, %.preheader75 ], [ %121, %._crit_edge97 ]
  %indvars.iv.next121 = add nuw nsw i64 %indvars.iv120, 1
  %exitcond123.not = icmp eq i64 %indvars.iv.next121, 91
  br i1 %exitcond123.not, label %113, label %.preheader75, !llvm.loop !22

151:                                              ; preds = %113
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %153 unwind label %155

153:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %9) #8
  br i1 %40, label %.loopexit73, label %.preheader72.preheader

.preheader72.preheader:                           ; preds = %153
  %154 = getelementptr inbounds %"class.std::vector", ptr %39, i64 %38
  br label %.preheader72

155:                                              ; preds = %151, %113
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %157

157:                                              ; preds = %148, %155, %111, %100
  %.pn62 = phi { ptr, i32 } [ %112, %111 ], [ %101, %100 ], [ %149, %148 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 800, ptr nonnull %9) #8
  br label %162

.preheader72:                                     ; preds = %.preheader72.preheader, %.preheader72
  %158 = phi ptr [ %159, %.preheader72 ], [ %154, %.preheader72.preheader ]
  %159 = getelementptr inbounds i8, ptr %158, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %159) #8
  %160 = icmp eq ptr %159, %39
  br i1 %160, label %.loopexit73, label %.preheader72

.loopexit73:                                      ; preds = %.preheader72, %153
  br i1 %30, label %.loopexit71, label %.preheader70.preheader

.preheader70.preheader:                           ; preds = %.loopexit73
  %161 = getelementptr inbounds %"class.std::vector", ptr %29, i64 %27
  br label %.preheader70

162:                                              ; preds = %157, %82, %78
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %78 ], [ %.pn62, %157 ], [ %83, %82 ]
  br i1 %40, label %.loopexit69, label %.preheader68.preheader

.preheader68.preheader:                           ; preds = %162
  %163 = getelementptr inbounds %"class.std::vector", ptr %39, i64 %38
  br label %.preheader68

.preheader68:                                     ; preds = %.preheader68.preheader, %.preheader68
  %164 = phi ptr [ %165, %.preheader68 ], [ %163, %.preheader68.preheader ]
  %165 = getelementptr inbounds i8, ptr %164, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %165) #8
  %166 = icmp eq ptr %165, %39
  br i1 %166, label %.loopexit69, label %.preheader68

.loopexit69:                                      ; preds = %.preheader68, %162
  br i1 %30, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %.loopexit69
  %167 = getelementptr inbounds %"class.std::vector", ptr %29, i64 %27
  br label %.preheader

.preheader70:                                     ; preds = %.preheader70.preheader, %.preheader70
  %168 = phi ptr [ %169, %.preheader70 ], [ %161, %.preheader70.preheader ]
  %169 = getelementptr inbounds i8, ptr %168, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %169) #8
  %170 = icmp eq ptr %169, %29
  br i1 %170, label %.loopexit71, label %.preheader70

.loopexit71:                                      ; preds = %.preheader70, %.loopexit73
  call void @llvm.stackrestore.p0(ptr %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret i32 0

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %171 = phi ptr [ %172, %.preheader ], [ %167, %.preheader.preheader ]
  %172 = getelementptr inbounds i8, ptr %171, i64 -24
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %172) #8
  %173 = icmp eq ptr %172, %29
  br i1 %173, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %.loopexit69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn65.pn
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #5

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcEERSt13basic_istreamIT_T0_ES6_RS3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #3

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #5

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

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

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


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