; LLVM IR from kazunetakahashi/atcoder :: 2018/0128_ARC090 (F)

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

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

@f = external dso_local global [30000010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5powerxx(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 i32, align 4
  %3 = alloca %"class.std::vector", align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = invoke noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %26)
          to label %28 unwind label %36

28:                                               ; preds = %0
  %29 = fadd double %27, 1.000000e+01
  %30 = fptosi double %29 to i32
  store i32 %30, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %68, %28
  %32 = load i32, ptr %7, align 4, !tbaa !5
  %33 = load i32, ptr %4, align 4, !tbaa !5
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %71

36:                                               ; preds = %0
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %5, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %6, align 4
  br label %224

40:                                               ; preds = %31
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = load i32, ptr %7, align 4, !tbaa !5
  %43 = srem i32 %41, %42
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %67

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  %46 = load i32, ptr %2, align 4, !tbaa !5
  %47 = load i32, ptr %7, align 4, !tbaa !5
  %48 = sdiv i32 %46, %47
  store i32 %48, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %59

52:                                               ; preds = %45
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %53 unwind label %55

53:                                               ; preds = %52
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %8)
          to label %54 unwind label %55

54:                                               ; preds = %53
  br label %66

55:                                               ; preds = %63, %53, %52
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %5, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  br label %224

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

63:                                               ; preds = %59
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %64 unwind label %55

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %59
  br label %66

66:                                               ; preds = %65, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %67

67:                                               ; preds = %66, %40
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %7, align 4, !tbaa !5
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %7, align 4, !tbaa !5
  br label %31, !llvm.loop !9

71:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %72

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

75:                                               ; preds = %72
  store i32 5, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %124

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %77 = load i32, ptr %10, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %78)
          to label %80 unwind label %97

80:                                               ; preds = %76
  %81 = trunc i64 %79 to i32
  store i32 %81, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  %84 = sext i32 %83 to i64
  %85 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %84)
          to label %86 unwind label %101

86:                                               ; preds = %80
  %87 = trunc i64 %85 to i32
  store i32 %87, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 30000010, ptr %15, align 4, !tbaa !5
  %88 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %89 unwind label %105

89:                                               ; preds = %86
  %90 = load i32, ptr %88, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  store i32 %90, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %91 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %91, ptr %16, align 4, !tbaa !5
  br label %92

92:                                               ; preds = %116, %89
  %93 = load i32, ptr %16, align 4, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = icmp slt i32 %93, %94
  br i1 %95, label %110, label %96

96:                                               ; preds = %92
  store i32 8, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %119

97:                                               ; preds = %76
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %5, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %6, align 4
  br label %123

101:                                              ; preds = %80
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %5, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %6, align 4
  br label %109

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

109:                                              ; preds = %105, %101
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %123

110:                                              ; preds = %92
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  %113 = load i32, ptr %16, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %114
  store i32 %112, ptr %115, align 4, !tbaa !5
  br label %116

116:                                              ; preds = %110
  %117 = load i32, ptr %16, align 4, !tbaa !5
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %16, align 4, !tbaa !5
  br label %92, !llvm.loop !13

119:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %120

120:                                              ; preds = %119
  %121 = load i32, ptr %10, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %10, align 4, !tbaa !5
  br label %72, !llvm.loop !14

123:                                              ; preds = %109, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %223

124:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 1, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 1, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %155, %124
  %126 = load i32, ptr %17, align 4, !tbaa !5
  %127 = icmp slt i32 %126, 10000000
  br i1 %127, label %128, label %156

128:                                              ; preds = %125
  %129 = load i32, ptr %19, align 4, !tbaa !5
  %130 = load i32, ptr %2, align 4, !tbaa !5
  %131 = icmp eq i32 %129, %130
  br i1 %131, label %132, label %135

132:                                              ; preds = %128
  %133 = load i64, ptr %9, align 8, !tbaa !11
  %134 = add nsw i64 %133, 1
  store i64 %134, ptr %9, align 8, !tbaa !11
  br label %135

135:                                              ; preds = %132, %128
  %136 = load i32, ptr %19, align 4, !tbaa !5
  %137 = load i32, ptr %2, align 4, !tbaa !5
  %138 = icmp sle i32 %136, %137
  br i1 %138, label %139, label %147

139:                                              ; preds = %135
  %140 = load i32, ptr %18, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %18, align 4, !tbaa !5
  %142 = sext i32 %140 to i64
  %143 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !5
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = add nsw i32 %145, %144
  store i32 %146, ptr %19, align 4, !tbaa !5
  br label %155

147:                                              ; preds = %135
  %148 = load i32, ptr %17, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %17, align 4, !tbaa !5
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %150
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = sub nsw i32 %153, %152
  store i32 %154, ptr %19, align 4, !tbaa !5
  br label %155

155:                                              ; preds = %147, %139
  br label %125, !llvm.loop !15

156:                                              ; preds = %125
  %157 = load i32, ptr %2, align 4, !tbaa !5
  %158 = sdiv i32 %157, 8
  %159 = sext i32 %158 to i64
  %160 = load i64, ptr %9, align 8, !tbaa !11
  %161 = add nsw i64 %160, %159
  store i64 %161, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store ptr %3, ptr %20, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %162 = load ptr, ptr %20, align 8, !tbaa !16
  %163 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %162) #7
  %164 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %163, ptr %164, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %165 = load ptr, ptr %20, align 8, !tbaa !16
  %166 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %165) #7
  %167 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %166, ptr %167, align 8
  br label %168

168:                                              ; preds = %209, %156
  %169 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  br i1 %169, label %171, label %170

170:                                              ; preds = %168
  store i32 13, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %211

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  %173 = load i32, ptr %172, align 4, !tbaa !5
  store i32 %173, ptr %23, align 4, !tbaa !5
  %174 = load i32, ptr %23, align 4, !tbaa !5
  %175 = load i32, ptr %2, align 4, !tbaa !5
  %176 = sdiv i32 %175, 8
  %177 = icmp sle i32 %174, %176
  br i1 %177, label %178, label %208

178:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %179 = load i32, ptr %2, align 4, !tbaa !5
  %180 = load i32, ptr %23, align 4, !tbaa !5
  %181 = sdiv i32 %179, %180
  store i32 %181, ptr %24, align 4, !tbaa !5
  %182 = load i32, ptr %24, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %183)
          to label %185 unwind label %204

185:                                              ; preds = %178
  %186 = add nsw i64 %184, 1000000007
  %187 = load i32, ptr %24, align 4, !tbaa !5
  %188 = sub nsw i32 %187, 1
  %189 = sext i32 %188 to i64
  %190 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %189)
          to label %191 unwind label %204

191:                                              ; preds = %185
  %192 = sub nsw i64 %186, %190
  %193 = add nsw i64 %192, 1000000007
  %194 = load i32, ptr %2, align 4, !tbaa !5
  %195 = load i32, ptr %24, align 4, !tbaa !5
  %196 = sdiv i32 %194, %195
  %197 = sext i32 %196 to i64
  %198 = sub nsw i64 %193, %197
  %199 = srem i64 %198, 1000000007
  %200 = load i64, ptr %9, align 8, !tbaa !11
  %201 = add nsw i64 %200, %199
  store i64 %201, ptr %9, align 8, !tbaa !11
  %202 = load i64, ptr %9, align 8, !tbaa !11
  %203 = srem i64 %202, 1000000007
  store i64 %203, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %208

204:                                              ; preds = %185, %178
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %5, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %222

208:                                              ; preds = %191, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %209

209:                                              ; preds = %208
  %210 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %21) #7
  br label %168

211:                                              ; preds = %170
  %212 = load i64, ptr %9, align 8, !tbaa !11
  %213 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %212)
          to label %214 unwind label %218

214:                                              ; preds = %211
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %213, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %216 unwind label %218

216:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %217 = load i32, ptr %1, align 4
  ret i32 %217

218:                                              ; preds = %214, %211
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %5, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %6, align 4
  br label %222

222:                                              ; preds = %218, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %223

223:                                              ; preds = %222, %123
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %224

224:                                              ; preds = %223, %55, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %225

225:                                              ; preds = %224
  %226 = load ptr, ptr %5, align 8
  %227 = load i32, ptr %6, align 4
  %228 = insertvalue { ptr, i32 } poison, ptr %226, 0
  %229 = insertvalue { ptr, i32 } %228, i32 %227, 1
  resume { ptr, i32 } %229
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) #5

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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)) #4 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)) #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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 = { 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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = !{!17, !17, i64 0}
!17 = !{!"any pointer", !7, i64 0}


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

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

@f = external dso_local local_unnamed_addr global [30000010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z5powerxx(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 i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = call noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef %10)
  %12 = fadd double %11, 1.000000e+01
  %13 = fptosi double %12 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #7
  store i32 1, ptr %3, align 4, !tbaa !5
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %29, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  %15 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 0)
          to label %139 unwind label %152

.lr.ph:                                           ; preds = %0, %29
  %storemerge62 = phi i32 [ %31, %29 ], [ 1, %0 ]
  %16 = load i32, ptr %1, align 4, !tbaa !5
  %17 = srem i32 %16, %storemerge62
  %18 = sdiv i32 %16, %storemerge62
  %19 = icmp eq i32 %17, 0
  br i1 %19, label %20, label %29

20:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #7
  store i32 %18, ptr %4, align 4, !tbaa !5
  %21 = icmp slt i32 %storemerge62, %18
  br i1 %21, label %22, label %25

22:                                               ; preds = %20
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %.invoke unwind label %23

23:                                               ; preds = %.invoke, %22
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #7
  br label %213

25:                                               ; preds = %20
  %26 = icmp eq i32 %storemerge62, %18
  br i1 %26, label %.invoke, label %28

.invoke:                                          ; preds = %22, %25
  %27 = phi ptr [ %3, %25 ], [ %4, %22 ]
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 4 dereferenceable(4) %27)
          to label %28 unwind label %23

28:                                               ; preds = %.invoke, %25
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #7
  %.pre = load i32, ptr %3, align 4, !tbaa !5
  br label %29

29:                                               ; preds = %.lr.ph, %28
  %30 = phi i32 [ %storemerge62, %.lr.ph ], [ %.pre, %28 ]
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %3, align 4, !tbaa !5
  %32 = icmp slt i32 %31, %13
  br i1 %32, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.loopexit:                                        ; preds = %.lr.ph65, %middle.block, %141
  %33 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 1)
          to label %34 unwind label %152

34:                                               ; preds = %.loopexit
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %35 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 2)
          to label %36 unwind label %154

36:                                               ; preds = %34
  %37 = trunc i64 %33 to i32
  %38 = trunc i64 %35 to i32
  store i32 %38, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %40 = load i32, ptr %39, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %41 = icmp sgt i32 %40, %37
  br i1 %41, label %.lr.ph65.preheader.1, label %.loopexit.1

.lr.ph65.preheader.1:                             ; preds = %36
  %sext80 = shl i64 %33, 32
  %42 = ashr exact i64 %sext80, 32
  %wide.trip.count.1 = sext i32 %40 to i64
  %43 = sub nsw i64 %wide.trip.count.1, %42
  %min.iters.check89 = icmp ult i64 %43, 8
  br i1 %min.iters.check89, label %.lr.ph65.1.preheader, label %vector.ph90

vector.ph90:                                      ; preds = %.lr.ph65.preheader.1
  %n.vec92 = and i64 %43, -8
  %ind.end93 = add nsw i64 %42, %n.vec92
  br label %vector.body95

vector.body95:                                    ; preds = %vector.body95, %vector.ph90
  %index96 = phi i64 [ 0, %vector.ph90 ], [ %index.next98, %vector.body95 ]
  %offset.idx97 = add i64 %42, %index96
  %44 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx97
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %44, align 4, !tbaa !5
  store <4 x i32> <i32 2, i32 2, i32 2, i32 2>, ptr %45, align 4, !tbaa !5
  %index.next98 = add nuw i64 %index96, 8
  %46 = icmp eq i64 %index.next98, %n.vec92
  br i1 %46, label %middle.block87, label %vector.body95, !llvm.loop !11

middle.block87:                                   ; preds = %vector.body95
  %cmp.n99 = icmp eq i64 %43, %n.vec92
  br i1 %cmp.n99, label %.loopexit.1, label %.lr.ph65.1.preheader

.lr.ph65.1.preheader:                             ; preds = %middle.block87, %.lr.ph65.preheader.1
  %indvars.iv.1.ph = phi i64 [ %42, %.lr.ph65.preheader.1 ], [ %ind.end93, %middle.block87 ]
  br label %.lr.ph65.1

.lr.ph65.1:                                       ; preds = %.lr.ph65.1.preheader, %.lr.ph65.1
  %indvars.iv.1 = phi i64 [ %indvars.iv.next.1, %.lr.ph65.1 ], [ %indvars.iv.1.ph, %.lr.ph65.1.preheader ]
  %47 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.1
  store i32 2, ptr %47, align 4, !tbaa !5
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %.loopexit.1, label %.lr.ph65.1, !llvm.loop !14

.loopexit.1:                                      ; preds = %.lr.ph65.1, %middle.block87, %36
  %48 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 2)
          to label %49 unwind label %152

49:                                               ; preds = %.loopexit.1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %50 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 3)
          to label %51 unwind label %154

51:                                               ; preds = %49
  %52 = trunc i64 %48 to i32
  %53 = trunc i64 %50 to i32
  store i32 %53, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %55 = load i32, ptr %54, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %56 = icmp sgt i32 %55, %52
  br i1 %56, label %.lr.ph65.preheader.2, label %.loopexit.2

.lr.ph65.preheader.2:                             ; preds = %51
  %sext81 = shl i64 %48, 32
  %57 = ashr exact i64 %sext81, 32
  %wide.trip.count.2 = sext i32 %55 to i64
  %58 = sub nsw i64 %wide.trip.count.2, %57
  %min.iters.check102 = icmp ult i64 %58, 8
  br i1 %min.iters.check102, label %.lr.ph65.2.preheader, label %vector.ph103

vector.ph103:                                     ; preds = %.lr.ph65.preheader.2
  %n.vec105 = and i64 %58, -8
  %ind.end106 = add nsw i64 %57, %n.vec105
  br label %vector.body108

vector.body108:                                   ; preds = %vector.body108, %vector.ph103
  %index109 = phi i64 [ 0, %vector.ph103 ], [ %index.next111, %vector.body108 ]
  %offset.idx110 = add i64 %57, %index109
  %59 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx110
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %59, align 4, !tbaa !5
  store <4 x i32> <i32 3, i32 3, i32 3, i32 3>, ptr %60, align 4, !tbaa !5
  %index.next111 = add nuw i64 %index109, 8
  %61 = icmp eq i64 %index.next111, %n.vec105
  br i1 %61, label %middle.block100, label %vector.body108, !llvm.loop !15

middle.block100:                                  ; preds = %vector.body108
  %cmp.n112 = icmp eq i64 %58, %n.vec105
  br i1 %cmp.n112, label %.loopexit.2, label %.lr.ph65.2.preheader

.lr.ph65.2.preheader:                             ; preds = %middle.block100, %.lr.ph65.preheader.2
  %indvars.iv.2.ph = phi i64 [ %57, %.lr.ph65.preheader.2 ], [ %ind.end106, %middle.block100 ]
  br label %.lr.ph65.2

.lr.ph65.2:                                       ; preds = %.lr.ph65.2.preheader, %.lr.ph65.2
  %indvars.iv.2 = phi i64 [ %indvars.iv.next.2, %.lr.ph65.2 ], [ %indvars.iv.2.ph, %.lr.ph65.2.preheader ]
  %62 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.2
  store i32 3, ptr %62, align 4, !tbaa !5
  %indvars.iv.next.2 = add nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, %wide.trip.count.2
  br i1 %exitcond.2.not, label %.loopexit.2, label %.lr.ph65.2, !llvm.loop !16

.loopexit.2:                                      ; preds = %.lr.ph65.2, %middle.block100, %51
  %63 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 3)
          to label %64 unwind label %152

64:                                               ; preds = %.loopexit.2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %65 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 4)
          to label %66 unwind label %154

66:                                               ; preds = %64
  %67 = trunc i64 %63 to i32
  %68 = trunc i64 %65 to i32
  store i32 %68, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %70 = load i32, ptr %69, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %71 = icmp sgt i32 %70, %67
  br i1 %71, label %.lr.ph65.preheader.3, label %.loopexit.3

.lr.ph65.preheader.3:                             ; preds = %66
  %sext82 = shl i64 %63, 32
  %72 = ashr exact i64 %sext82, 32
  %wide.trip.count.3 = sext i32 %70 to i64
  %73 = sub nsw i64 %wide.trip.count.3, %72
  %min.iters.check115 = icmp ult i64 %73, 8
  br i1 %min.iters.check115, label %.lr.ph65.3.preheader, label %vector.ph116

vector.ph116:                                     ; preds = %.lr.ph65.preheader.3
  %n.vec118 = and i64 %73, -8
  %ind.end119 = add nsw i64 %72, %n.vec118
  br label %vector.body121

vector.body121:                                   ; preds = %vector.body121, %vector.ph116
  %index122 = phi i64 [ 0, %vector.ph116 ], [ %index.next124, %vector.body121 ]
  %offset.idx123 = add i64 %72, %index122
  %74 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx123
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %74, align 4, !tbaa !5
  store <4 x i32> <i32 4, i32 4, i32 4, i32 4>, ptr %75, align 4, !tbaa !5
  %index.next124 = add nuw i64 %index122, 8
  %76 = icmp eq i64 %index.next124, %n.vec118
  br i1 %76, label %middle.block113, label %vector.body121, !llvm.loop !17

middle.block113:                                  ; preds = %vector.body121
  %cmp.n125 = icmp eq i64 %73, %n.vec118
  br i1 %cmp.n125, label %.loopexit.3, label %.lr.ph65.3.preheader

.lr.ph65.3.preheader:                             ; preds = %middle.block113, %.lr.ph65.preheader.3
  %indvars.iv.3.ph = phi i64 [ %72, %.lr.ph65.preheader.3 ], [ %ind.end119, %middle.block113 ]
  br label %.lr.ph65.3

.lr.ph65.3:                                       ; preds = %.lr.ph65.3.preheader, %.lr.ph65.3
  %indvars.iv.3 = phi i64 [ %indvars.iv.next.3, %.lr.ph65.3 ], [ %indvars.iv.3.ph, %.lr.ph65.3.preheader ]
  %77 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.3
  store i32 4, ptr %77, align 4, !tbaa !5
  %indvars.iv.next.3 = add nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, %wide.trip.count.3
  br i1 %exitcond.3.not, label %.loopexit.3, label %.lr.ph65.3, !llvm.loop !18

.loopexit.3:                                      ; preds = %.lr.ph65.3, %middle.block113, %66
  %78 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 4)
          to label %79 unwind label %152

79:                                               ; preds = %.loopexit.3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %80 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 5)
          to label %81 unwind label %154

81:                                               ; preds = %79
  %82 = trunc i64 %78 to i32
  %83 = trunc i64 %80 to i32
  store i32 %83, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %85 = load i32, ptr %84, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %86 = icmp sgt i32 %85, %82
  br i1 %86, label %.lr.ph65.preheader.4, label %.loopexit.4

.lr.ph65.preheader.4:                             ; preds = %81
  %sext83 = shl i64 %78, 32
  %87 = ashr exact i64 %sext83, 32
  %wide.trip.count.4 = sext i32 %85 to i64
  %88 = sub nsw i64 %wide.trip.count.4, %87
  %min.iters.check128 = icmp ult i64 %88, 8
  br i1 %min.iters.check128, label %.lr.ph65.4.preheader, label %vector.ph129

vector.ph129:                                     ; preds = %.lr.ph65.preheader.4
  %n.vec131 = and i64 %88, -8
  %ind.end132 = add nsw i64 %87, %n.vec131
  br label %vector.body134

vector.body134:                                   ; preds = %vector.body134, %vector.ph129
  %index135 = phi i64 [ 0, %vector.ph129 ], [ %index.next137, %vector.body134 ]
  %offset.idx136 = add i64 %87, %index135
  %89 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx136
  %90 = getelementptr inbounds i8, ptr %89, i64 16
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %89, align 4, !tbaa !5
  store <4 x i32> <i32 5, i32 5, i32 5, i32 5>, ptr %90, align 4, !tbaa !5
  %index.next137 = add nuw i64 %index135, 8
  %91 = icmp eq i64 %index.next137, %n.vec131
  br i1 %91, label %middle.block126, label %vector.body134, !llvm.loop !19

middle.block126:                                  ; preds = %vector.body134
  %cmp.n138 = icmp eq i64 %88, %n.vec131
  br i1 %cmp.n138, label %.loopexit.4, label %.lr.ph65.4.preheader

.lr.ph65.4.preheader:                             ; preds = %middle.block126, %.lr.ph65.preheader.4
  %indvars.iv.4.ph = phi i64 [ %87, %.lr.ph65.preheader.4 ], [ %ind.end132, %middle.block126 ]
  br label %.lr.ph65.4

.lr.ph65.4:                                       ; preds = %.lr.ph65.4.preheader, %.lr.ph65.4
  %indvars.iv.4 = phi i64 [ %indvars.iv.next.4, %.lr.ph65.4 ], [ %indvars.iv.4.ph, %.lr.ph65.4.preheader ]
  %92 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.4
  store i32 5, ptr %92, align 4, !tbaa !5
  %indvars.iv.next.4 = add nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, %wide.trip.count.4
  br i1 %exitcond.4.not, label %.loopexit.4, label %.lr.ph65.4, !llvm.loop !20

.loopexit.4:                                      ; preds = %.lr.ph65.4, %middle.block126, %81
  %93 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 5)
          to label %94 unwind label %152

94:                                               ; preds = %.loopexit.4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %95 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 6)
          to label %96 unwind label %154

96:                                               ; preds = %94
  %97 = trunc i64 %93 to i32
  %98 = trunc i64 %95 to i32
  store i32 %98, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %100 = load i32, ptr %99, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %101 = icmp sgt i32 %100, %97
  br i1 %101, label %.lr.ph65.preheader.5, label %.loopexit.5

.lr.ph65.preheader.5:                             ; preds = %96
  %sext84 = shl i64 %93, 32
  %102 = ashr exact i64 %sext84, 32
  %wide.trip.count.5 = sext i32 %100 to i64
  %103 = sub nsw i64 %wide.trip.count.5, %102
  %min.iters.check141 = icmp ult i64 %103, 8
  br i1 %min.iters.check141, label %.lr.ph65.5.preheader, label %vector.ph142

vector.ph142:                                     ; preds = %.lr.ph65.preheader.5
  %n.vec144 = and i64 %103, -8
  %ind.end145 = add nsw i64 %102, %n.vec144
  br label %vector.body147

vector.body147:                                   ; preds = %vector.body147, %vector.ph142
  %index148 = phi i64 [ 0, %vector.ph142 ], [ %index.next150, %vector.body147 ]
  %offset.idx149 = add i64 %102, %index148
  %104 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx149
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %104, align 4, !tbaa !5
  store <4 x i32> <i32 6, i32 6, i32 6, i32 6>, ptr %105, align 4, !tbaa !5
  %index.next150 = add nuw i64 %index148, 8
  %106 = icmp eq i64 %index.next150, %n.vec144
  br i1 %106, label %middle.block139, label %vector.body147, !llvm.loop !21

middle.block139:                                  ; preds = %vector.body147
  %cmp.n151 = icmp eq i64 %103, %n.vec144
  br i1 %cmp.n151, label %.loopexit.5, label %.lr.ph65.5.preheader

.lr.ph65.5.preheader:                             ; preds = %middle.block139, %.lr.ph65.preheader.5
  %indvars.iv.5.ph = phi i64 [ %102, %.lr.ph65.preheader.5 ], [ %ind.end145, %middle.block139 ]
  br label %.lr.ph65.5

.lr.ph65.5:                                       ; preds = %.lr.ph65.5.preheader, %.lr.ph65.5
  %indvars.iv.5 = phi i64 [ %indvars.iv.next.5, %.lr.ph65.5 ], [ %indvars.iv.5.ph, %.lr.ph65.5.preheader ]
  %107 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.5
  store i32 6, ptr %107, align 4, !tbaa !5
  %indvars.iv.next.5 = add nsw i64 %indvars.iv.5, 1
  %exitcond.5.not = icmp eq i64 %indvars.iv.next.5, %wide.trip.count.5
  br i1 %exitcond.5.not, label %.loopexit.5, label %.lr.ph65.5, !llvm.loop !22

.loopexit.5:                                      ; preds = %.lr.ph65.5, %middle.block139, %96
  %108 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 6)
          to label %109 unwind label %152

109:                                              ; preds = %.loopexit.5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %110 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 7)
          to label %111 unwind label %154

111:                                              ; preds = %109
  %112 = trunc i64 %108 to i32
  %113 = trunc i64 %110 to i32
  store i32 %113, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %115 = load i32, ptr %114, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %116 = icmp sgt i32 %115, %112
  br i1 %116, label %.lr.ph65.preheader.6, label %.loopexit.6

.lr.ph65.preheader.6:                             ; preds = %111
  %sext85 = shl i64 %108, 32
  %117 = ashr exact i64 %sext85, 32
  %wide.trip.count.6 = sext i32 %115 to i64
  %118 = sub nsw i64 %wide.trip.count.6, %117
  %min.iters.check154 = icmp ult i64 %118, 8
  br i1 %min.iters.check154, label %.lr.ph65.6.preheader, label %vector.ph155

vector.ph155:                                     ; preds = %.lr.ph65.preheader.6
  %n.vec157 = and i64 %118, -8
  %ind.end158 = add nsw i64 %117, %n.vec157
  br label %vector.body160

vector.body160:                                   ; preds = %vector.body160, %vector.ph155
  %index161 = phi i64 [ 0, %vector.ph155 ], [ %index.next163, %vector.body160 ]
  %offset.idx162 = add i64 %117, %index161
  %119 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx162
  %120 = getelementptr inbounds i8, ptr %119, i64 16
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %119, align 4, !tbaa !5
  store <4 x i32> <i32 7, i32 7, i32 7, i32 7>, ptr %120, align 4, !tbaa !5
  %index.next163 = add nuw i64 %index161, 8
  %121 = icmp eq i64 %index.next163, %n.vec157
  br i1 %121, label %middle.block152, label %vector.body160, !llvm.loop !23

middle.block152:                                  ; preds = %vector.body160
  %cmp.n164 = icmp eq i64 %118, %n.vec157
  br i1 %cmp.n164, label %.loopexit.6, label %.lr.ph65.6.preheader

.lr.ph65.6.preheader:                             ; preds = %middle.block152, %.lr.ph65.preheader.6
  %indvars.iv.6.ph = phi i64 [ %117, %.lr.ph65.preheader.6 ], [ %ind.end158, %middle.block152 ]
  br label %.lr.ph65.6

.lr.ph65.6:                                       ; preds = %.lr.ph65.6.preheader, %.lr.ph65.6
  %indvars.iv.6 = phi i64 [ %indvars.iv.next.6, %.lr.ph65.6 ], [ %indvars.iv.6.ph, %.lr.ph65.6.preheader ]
  %122 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.6
  store i32 7, ptr %122, align 4, !tbaa !5
  %indvars.iv.next.6 = add nsw i64 %indvars.iv.6, 1
  %exitcond.6.not = icmp eq i64 %indvars.iv.next.6, %wide.trip.count.6
  br i1 %exitcond.6.not, label %.loopexit.6, label %.lr.ph65.6, !llvm.loop !24

.loopexit.6:                                      ; preds = %.lr.ph65.6, %middle.block152, %111
  %123 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 7)
          to label %124 unwind label %152

124:                                              ; preds = %.loopexit.6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %125 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 8)
          to label %126 unwind label %154

126:                                              ; preds = %124
  %127 = trunc i64 %123 to i32
  %128 = trunc i64 %125 to i32
  store i32 %128, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %130 = load i32, ptr %129, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %131 = icmp sgt i32 %130, %127
  br i1 %131, label %.lr.ph65.preheader.7, label %.loopexit.7

.lr.ph65.preheader.7:                             ; preds = %126
  %sext86 = shl i64 %123, 32
  %132 = ashr exact i64 %sext86, 32
  %wide.trip.count.7 = sext i32 %130 to i64
  %133 = sub nsw i64 %wide.trip.count.7, %132
  %min.iters.check167 = icmp ult i64 %133, 8
  br i1 %min.iters.check167, label %.lr.ph65.7.preheader, label %vector.ph168

vector.ph168:                                     ; preds = %.lr.ph65.preheader.7
  %n.vec170 = and i64 %133, -8
  %ind.end171 = add nsw i64 %132, %n.vec170
  br label %vector.body173

vector.body173:                                   ; preds = %vector.body173, %vector.ph168
  %index174 = phi i64 [ 0, %vector.ph168 ], [ %index.next176, %vector.body173 ]
  %offset.idx175 = add i64 %132, %index174
  %134 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx175
  %135 = getelementptr inbounds i8, ptr %134, i64 16
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %134, align 4, !tbaa !5
  store <4 x i32> <i32 8, i32 8, i32 8, i32 8>, ptr %135, align 4, !tbaa !5
  %index.next176 = add nuw i64 %index174, 8
  %136 = icmp eq i64 %index.next176, %n.vec170
  br i1 %136, label %middle.block165, label %vector.body173, !llvm.loop !25

middle.block165:                                  ; preds = %vector.body173
  %cmp.n177 = icmp eq i64 %133, %n.vec170
  br i1 %cmp.n177, label %.loopexit.7, label %.lr.ph65.7.preheader

.lr.ph65.7.preheader:                             ; preds = %middle.block165, %.lr.ph65.preheader.7
  %indvars.iv.7.ph = phi i64 [ %132, %.lr.ph65.preheader.7 ], [ %ind.end171, %middle.block165 ]
  br label %.lr.ph65.7

.lr.ph65.7:                                       ; preds = %.lr.ph65.7.preheader, %.lr.ph65.7
  %indvars.iv.7 = phi i64 [ %indvars.iv.next.7, %.lr.ph65.7 ], [ %indvars.iv.7.ph, %.lr.ph65.7.preheader ]
  %137 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv.7
  store i32 8, ptr %137, align 4, !tbaa !5
  %indvars.iv.next.7 = add nsw i64 %indvars.iv.7, 1
  %exitcond.7.not = icmp eq i64 %indvars.iv.next.7, %wide.trip.count.7
  br i1 %exitcond.7.not, label %.loopexit.7, label %.lr.ph65.7, !llvm.loop !26

.loopexit.7:                                      ; preds = %.lr.ph65.7, %middle.block165, %126
  %138 = load i32, ptr %1, align 4, !tbaa !5
  br label %157

139:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %140 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef 1)
          to label %141 unwind label %154

141:                                              ; preds = %139
  %142 = trunc i64 %15 to i32
  %143 = trunc i64 %140 to i32
  store i32 %143, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 30000010, ptr %6, align 4, !tbaa !5
  %144 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %145 = load i32, ptr %144, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %146 = icmp sgt i32 %145, %142
  br i1 %146, label %.lr.ph65.preheader, label %.loopexit

.lr.ph65.preheader:                               ; preds = %141
  %sext = shl i64 %15, 32
  %147 = ashr exact i64 %sext, 32
  %wide.trip.count = sext i32 %145 to i64
  %148 = sub nsw i64 %wide.trip.count, %147
  %min.iters.check = icmp ult i64 %148, 8
  br i1 %min.iters.check, label %.lr.ph65.preheader178, label %vector.ph

.lr.ph65.preheader178:                            ; preds = %middle.block, %.lr.ph65.preheader
  %indvars.iv.ph = phi i64 [ %147, %.lr.ph65.preheader ], [ %ind.end, %middle.block ]
  br label %.lr.ph65

vector.ph:                                        ; preds = %.lr.ph65.preheader
  %n.vec = and i64 %148, -8
  %ind.end = add nsw i64 %147, %n.vec
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = add i64 %147, %index
  %149 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %offset.idx
  %150 = getelementptr inbounds i8, ptr %149, i64 16
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %149, align 4, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr %150, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %151 = icmp eq i64 %index.next, %n.vec
  br i1 %151, label %middle.block, label %vector.body, !llvm.loop !27

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %148, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph65.preheader178

152:                                              ; preds = %.loopexit.6, %.loopexit.5, %.loopexit.4, %.loopexit.3, %.loopexit.2, %.loopexit.1, %.loopexit, %._crit_edge
  %153 = landingpad { ptr, i32 }
          cleanup
  br label %213

154:                                              ; preds = %124, %109, %94, %79, %64, %49, %34, %139
  %155 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %213

.lr.ph65:                                         ; preds = %.lr.ph65.preheader178, %.lr.ph65
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph65 ], [ %indvars.iv.ph, %.lr.ph65.preheader178 ]
  %156 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %indvars.iv
  store i32 1, ptr %156, align 4, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph65, !llvm.loop !28

157:                                              ; preds = %.loopexit.7, %172
  %.03670 = phi i64 [ 0, %.loopexit.7 ], [ %spec.select, %172 ]
  %.04069 = phi i32 [ 0, %.loopexit.7 ], [ %.141, %172 ]
  %.04268 = phi i32 [ 1, %.loopexit.7 ], [ %.143, %172 ]
  %.04467 = phi i32 [ 1, %.loopexit.7 ], [ %.145, %172 ]
  %158 = icmp eq i32 %.04069, %138
  %159 = zext i1 %158 to i64
  %spec.select = add nuw nsw i64 %.03670, %159
  %.not53 = icmp sgt i32 %.04069, %138
  br i1 %.not53, label %166, label %160

160:                                              ; preds = %157
  %161 = add nsw i32 %.04268, 1
  %162 = sext i32 %.04268 to i64
  %163 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = add nsw i32 %164, %.04069
  br label %172

166:                                              ; preds = %157
  %167 = add nsw i32 %.04467, 1
  %168 = sext i32 %.04467 to i64
  %169 = getelementptr inbounds [30000010 x i32], ptr @f, i64 0, i64 %168
  %170 = load i32, ptr %169, align 4, !tbaa !5
  %171 = sub nsw i32 %.04069, %170
  br label %172

172:                                              ; preds = %166, %160
  %.145 = phi i32 [ %.04467, %160 ], [ %167, %166 ]
  %.143 = phi i32 [ %161, %160 ], [ %.04268, %166 ]
  %.141 = phi i32 [ %165, %160 ], [ %171, %166 ]
  %173 = icmp slt i32 %.145, 10000000
  br i1 %173, label %157, label %174, !llvm.loop !29

174:                                              ; preds = %172
  %175 = sdiv i32 %138, 8
  %176 = sext i32 %175 to i64
  %177 = add nsw i64 %spec.select, %176
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %178 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %178, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %179 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store ptr %179, ptr %8, align 8
  %180 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %180, label %.lr.ph73, label %._crit_edge74

._crit_edge74:                                    ; preds = %205, %174
  %.238.lcssa = phi i64 [ %177, %174 ], [ %.339, %205 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.238.lcssa)
          to label %208 unwind label %211

.lr.ph73:                                         ; preds = %174, %205
  %.23871 = phi i64 [ %.339, %205 ], [ %177, %174 ]
  %182 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %183 = load i32, ptr %182, align 4, !tbaa !5
  %184 = load i32, ptr %1, align 4, !tbaa !5
  %185 = sdiv i32 %184, 8
  %.not = icmp sgt i32 %183, %185
  br i1 %.not, label %205, label %186

186:                                              ; preds = %.lr.ph73
  %187 = sdiv i32 %184, %183
  %188 = sext i32 %187 to i64
  %189 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %188)
          to label %190 unwind label %203

190:                                              ; preds = %186
  %191 = add nsw i32 %187, -1
  %192 = sext i32 %191 to i64
  %193 = invoke noundef i64 @_Z5powerxx(i64 noundef 10, i64 noundef %192)
          to label %194 unwind label %203

194:                                              ; preds = %190
  %195 = load i32, ptr %1, align 4, !tbaa !5
  %196 = sdiv i32 %195, %187
  %197 = sext i32 %196 to i64
  %.neg60 = add i64 %189, 2000000014
  %198 = add i64 %193, %197
  %199 = sub i64 %.neg60, %198
  %200 = srem i64 %199, 1000000007
  %201 = add nsw i64 %200, %.23871
  %202 = srem i64 %201, 1000000007
  br label %205

203:                                              ; preds = %190, %186
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %213

205:                                              ; preds = %194, %.lr.ph73
  %.339 = phi i64 [ %202, %194 ], [ %.23871, %.lr.ph73 ]
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #7
  %207 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #7
  br i1 %207, label %.lr.ph73, label %._crit_edge74

208:                                              ; preds = %._crit_edge74
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %181, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %210 unwind label %211

210:                                              ; preds = %208
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0

211:                                              ; preds = %208, %._crit_edge74
  %212 = landingpad { ptr, i32 }
          cleanup
  br label %213

213:                                              ; preds = %154, %152, %211, %203, %23
  %.pn57 = phi { ptr, i32 } [ %24, %23 ], [ %155, %154 ], [ %153, %152 ], [ %204, %203 ], [ %212, %211 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn57
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt4sqrtIiEN9__gnu_cxx11__enable_ifIXsr12__is_integerIT_EE7__valueEdE6__typeES2_(i32 noundef) local_unnamed_addr #5

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; 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 #4 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 #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 @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 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 = { 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 = { 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 #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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10, !12, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10, !13, !12}
!15 = distinct !{!15, !10, !12, !13}
!16 = distinct !{!16, !10, !13, !12}
!17 = distinct !{!17, !10, !12, !13}
!18 = distinct !{!18, !10, !13, !12}
!19 = distinct !{!19, !10, !12, !13}
!20 = distinct !{!20, !10, !13, !12}
!21 = distinct !{!21, !10, !12, !13}
!22 = distinct !{!22, !10, !13, !12}
!23 = distinct !{!23, !10, !12, !13}
!24 = distinct !{!24, !10, !13, !12}
!25 = distinct !{!25, !10, !12, !13}
!26 = distinct !{!26, !10, !13, !12}
!27 = distinct !{!27, !10, !12, !13}
!28 = distinct !{!28, !10, !13, !12}
!29 = distinct !{!29, !10}


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