; LLVM IR from eyangch/competitive-programming :: Codeforces/1350 (c)

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

%"class.std::basic_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 }

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

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

37:                                               ; preds = %69, %0
  %38 = load i32, ptr %6, align 4, !tbaa !11
  %39 = icmp sle i32 %38, 200000
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %72

41:                                               ; preds = %37
  %42 = load i32, ptr %6, align 4, !tbaa !11
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [200001 x i8], ptr %3, i64 0, i64 %43
  %45 = load i8, ptr %44, align 1, !tbaa !8, !range !13, !noundef !14
  %46 = trunc i8 %45 to i1
  br i1 %46, label %47, label %53

47:                                               ; preds = %41
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %48 unwind label %49

48:                                               ; preds = %47
  br label %53

49:                                               ; preds = %47
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %8, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #9
  br label %215

53:                                               ; preds = %48, %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  %54 = load i32, ptr %6, align 4, !tbaa !11
  %55 = mul nsw i32 2, %54
  store i32 %55, ptr %10, align 4, !tbaa !11
  br label %56

56:                                               ; preds = %64, %53
  %57 = load i32, ptr %10, align 4, !tbaa !11
  %58 = icmp sle i32 %57, 200000
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %68

60:                                               ; preds = %56
  %61 = load i32, ptr %10, align 4, !tbaa !11
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [200001 x i8], ptr %3, i64 0, i64 %62
  store i8 0, ptr %63, align 1, !tbaa !8
  br label %64

64:                                               ; preds = %60
  %65 = load i32, ptr %6, align 4, !tbaa !11
  %66 = load i32, ptr %10, align 4, !tbaa !11
  %67 = add nsw i32 %66, %65
  store i32 %67, ptr %10, align 4, !tbaa !11
  br label %56, !llvm.loop !15

68:                                               ; preds = %59
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %6, align 4, !tbaa !11
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %6, align 4, !tbaa !11
  br label %37, !llvm.loop !17

72:                                               ; preds = %40
  %73 = load i32, ptr %2, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = call ptr @llvm.stacksave.p0()
  store ptr %75, ptr %11, align 8
  %76 = alloca i32, i64 %74, align 16
  store i64 %74, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #9
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %77

77:                                               ; preds = %88, %72
  %78 = load i32, ptr %13, align 4, !tbaa !11
  %79 = load i32, ptr %2, align 4, !tbaa !11
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %95

82:                                               ; preds = %77
  %83 = load i32, ptr %13, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds i32, ptr %76, i64 %84
  %86 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %85)
          to label %87 unwind label %91

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %13, align 4, !tbaa !11
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %13, align 4, !tbaa !11
  br label %77, !llvm.loop !18

91:                                               ; preds = %82
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %8, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #9
  br label %215

95:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #9
  store i64 1, ptr %14, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store ptr %5, ptr %15, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #9
  %96 = load ptr, ptr %15, align 8, !tbaa !21
  %97 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #9
  %98 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %97, ptr %98, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %99 = load ptr, ptr %15, align 8, !tbaa !21
  %100 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99) #9
  %101 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %100, ptr %101, align 8
  br label %102

102:                                              ; preds = %201, %95
  %103 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #9
  br i1 %103, label %105, label %104

104:                                              ; preds = %102
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  br label %203

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #9
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  %107 = load i32, ptr %106, align 4, !tbaa !11
  store i32 %107, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #9
  store i32 10000000, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #9
  store i32 10000000, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #9
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #9
  store ptr %76, ptr %22, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  %108 = load ptr, ptr %22, align 8, !tbaa !21
  store ptr %108, ptr %23, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #9
  %109 = load ptr, ptr %22, align 8, !tbaa !21
  %110 = mul nuw i64 4, %74
  %111 = udiv i64 %110, 4
  %112 = getelementptr inbounds i32, ptr %109, i64 %111
  store ptr %112, ptr %24, align 8, !tbaa !21
  br label %113

113:                                              ; preds = %162, %105
  %114 = load ptr, ptr %23, align 8, !tbaa !21
  %115 = load ptr, ptr %24, align 8, !tbaa !21
  %116 = icmp ne ptr %114, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %113
  store i32 13, ptr %7, align 4
  br label %165

118:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #9
  %119 = load ptr, ptr %23, align 8, !tbaa !21
  %120 = load i32, ptr %119, align 4, !tbaa !11
  store i32 %120, ptr %25, align 4, !tbaa !11
  %121 = load i32, ptr %25, align 4, !tbaa !11
  %122 = load i32, ptr %18, align 4, !tbaa !11
  %123 = srem i32 %121, %122
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %132

125:                                              ; preds = %118
  %126 = load i32, ptr %21, align 4, !tbaa !11
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %21, align 4, !tbaa !11
  %128 = load i32, ptr %21, align 4, !tbaa !11
  %129 = icmp sge i32 %128, 2
  br i1 %129, label %130, label %131

130:                                              ; preds = %125
  store i32 13, ptr %7, align 4
  br label %159

131:                                              ; preds = %125
  store i32 14, ptr %7, align 4
  br label %159

132:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #9
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %133

133:                                              ; preds = %138, %132
  %134 = load i32, ptr %25, align 4, !tbaa !11
  %135 = load i32, ptr %18, align 4, !tbaa !11
  %136 = srem i32 %134, %135
  %137 = icmp eq i32 %136, 0
  br i1 %137, label %138, label %144

138:                                              ; preds = %133
  %139 = load i32, ptr %26, align 4, !tbaa !11
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %26, align 4, !tbaa !11
  %141 = load i32, ptr %18, align 4, !tbaa !11
  %142 = load i32, ptr %25, align 4, !tbaa !11
  %143 = sdiv i32 %142, %141
  store i32 %143, ptr %25, align 4, !tbaa !11
  br label %133, !llvm.loop !23

144:                                              ; preds = %133
  %145 = load i32, ptr %26, align 4, !tbaa !11
  %146 = load i32, ptr %19, align 4, !tbaa !11
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %151

148:                                              ; preds = %144
  %149 = load i32, ptr %19, align 4, !tbaa !11
  store i32 %149, ptr %20, align 4, !tbaa !11
  %150 = load i32, ptr %26, align 4, !tbaa !11
  store i32 %150, ptr %19, align 4, !tbaa !11
  br label %158

151:                                              ; preds = %144
  %152 = load i32, ptr %26, align 4, !tbaa !11
  %153 = load i32, ptr %20, align 4, !tbaa !11
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %157

155:                                              ; preds = %151
  %156 = load i32, ptr %26, align 4, !tbaa !11
  store i32 %156, ptr %20, align 4, !tbaa !11
  br label %157

157:                                              ; preds = %155, %151
  br label %158

158:                                              ; preds = %157, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #9
  store i32 0, ptr %7, align 4
  br label %159

159:                                              ; preds = %158, %131, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #9
  %160 = load i32, ptr %7, align 4
  switch i32 %160, label %165 [
    i32 0, label %161
    i32 14, label %162
  ]

161:                                              ; preds = %159
  br label %162

162:                                              ; preds = %161, %159
  %163 = load ptr, ptr %23, align 8, !tbaa !21
  %164 = getelementptr inbounds i32, ptr %163, i32 1
  store ptr %164, ptr %23, align 8, !tbaa !21
  br label %113

165:                                              ; preds = %159, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #9
  br label %166

166:                                              ; preds = %165
  %167 = load i32, ptr %21, align 4, !tbaa !11
  %168 = icmp sge i32 %167, 2
  br i1 %168, label %169, label %170

169:                                              ; preds = %166
  store i32 12, ptr %7, align 4
  br label %195

170:                                              ; preds = %166
  %171 = load i32, ptr %21, align 4, !tbaa !11
  %172 = icmp eq i32 %171, 1
  br i1 %172, label %173, label %183

173:                                              ; preds = %170
  %174 = load i32, ptr %18, align 4, !tbaa !11
  %175 = sitofp i32 %174 to x86_fp80
  %176 = load i32, ptr %19, align 4, !tbaa !11
  %177 = sitofp i32 %176 to x86_fp80
  %178 = call x86_fp80 @powl(x86_fp80 noundef %175, x86_fp80 noundef %177) #9
  %179 = load i64, ptr %14, align 8, !tbaa !19
  %180 = sitofp i64 %179 to x86_fp80
  %181 = fmul x86_fp80 %180, %178
  %182 = fptosi x86_fp80 %181 to i64
  store i64 %182, ptr %14, align 8, !tbaa !19
  br label %193

183:                                              ; preds = %170
  %184 = load i32, ptr %18, align 4, !tbaa !11
  %185 = sitofp i32 %184 to x86_fp80
  %186 = load i32, ptr %20, align 4, !tbaa !11
  %187 = sitofp i32 %186 to x86_fp80
  %188 = call x86_fp80 @powl(x86_fp80 noundef %185, x86_fp80 noundef %187) #9
  %189 = load i64, ptr %14, align 8, !tbaa !19
  %190 = sitofp i64 %189 to x86_fp80
  %191 = fmul x86_fp80 %190, %188
  %192 = fptosi x86_fp80 %191 to i64
  store i64 %192, ptr %14, align 8, !tbaa !19
  br label %193

193:                                              ; preds = %183, %173
  br label %194

194:                                              ; preds = %193
  store i32 0, ptr %7, align 4
  br label %195

195:                                              ; preds = %194, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #9
  %196 = load i32, ptr %7, align 4
  switch i32 %196, label %198 [
    i32 0, label %197
  ]

197:                                              ; preds = %195
  store i32 0, ptr %7, align 4
  br label %198

198:                                              ; preds = %197, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #9
  %199 = load i32, ptr %7, align 4
  switch i32 %199, label %221 [
    i32 0, label %200
    i32 12, label %201
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200, %198
  %202 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #9
  br label %102

203:                                              ; preds = %104
  %204 = load i64, ptr %14, align 8, !tbaa !19
  %205 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %204)
          to label %206 unwind label %211

206:                                              ; preds = %203
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %205, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %208 unwind label %211

208:                                              ; preds = %206
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  %209 = load ptr, ptr %11, align 8
  call void @llvm.stackrestore.p0(ptr %209)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 200001, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  %210 = load i32, ptr %1, align 4
  ret i32 %210

211:                                              ; preds = %206, %203
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %8, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #9
  br label %215

215:                                              ; preds = %211, %91, %49
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 200001, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  br label %216

216:                                              ; preds = %215
  %217 = load ptr, ptr %8, align 8
  %218 = load i32, ptr %9, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220

221:                                              ; preds = %198
  unreachable
}

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress 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)) #7

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 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) #5 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)) #4

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

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

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

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [200001 x i8], align 16
  %3 = alloca i8, align 1
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %9 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %10 = getelementptr i8, ptr %9, i64 -24
  %11 = load i64, ptr %10, align 8
  %12 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %11
  %13 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %12, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #10
  %14 = 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 200001, ptr nonnull %2) #10
  %15 = getelementptr inbounds i8, ptr %2, i64 200001
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #10
  store i8 1, ptr %3, align 1, !tbaa !8
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %2, ptr noundef nonnull %15, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #10
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #10
  store i32 2, ptr %5, align 4, !tbaa !11
  br label %23

16:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  %17 = load i32, ptr %1, align 4, !tbaa !11
  %.fr = freeze i32 %17
  %18 = zext i32 %.fr to i64
  %19 = call ptr @llvm.stacksave.p0()
  %20 = alloca i32, i64 %18, align 16
  %21 = load i32, ptr %1, align 4, !tbaa !11
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.lr.ph86, label %._crit_edge87

23:                                               ; preds = %0, %._crit_edge
  %storemerge83 = phi i32 [ 2, %0 ], [ %49, %._crit_edge ]
  %24 = sext i32 %storemerge83 to i64
  %25 = getelementptr inbounds [200001 x i8], ptr %2, i64 0, i64 %24
  %26 = load i8, ptr %25, align 1, !tbaa !8, !range !13, !noundef !14
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %31

28:                                               ; preds = %23
  invoke void @_ZNSt6vectorIiSaIiEE9push_backERKi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %._crit_edge113 unwind label %29

._crit_edge113:                                   ; preds = %28
  %.pre = load i32, ptr %5, align 4, !tbaa !11
  br label %31

29:                                               ; preds = %28
  %30 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #10
  br label %105

31:                                               ; preds = %._crit_edge113, %23
  %32 = phi i32 [ %.pre, %._crit_edge113 ], [ %storemerge83, %23 ]
  %33 = icmp slt i32 %32, 100001
  br i1 %33, label %iter.check, label %._crit_edge

iter.check:                                       ; preds = %31
  %34 = shl i32 %32, 1
  %35 = sext i32 %34 to i64
  %36 = sext i32 %32 to i64
  %37 = add nsw i64 %36, %35
  %smax = call i64 @llvm.smax.i64(i64 %37, i64 200001)
  %38 = icmp slt i64 %37, 200001
  %umin.neg = sext i1 %38 to i64
  %39 = select i1 %38, i64 2, i64 1
  %40 = add i64 %smax, %umin.neg
  %41 = sub i64 %40, %37
  %umax = call i64 @llvm.umax.i64(i64 %36, i64 1)
  %42 = udiv i64 %41, %umax
  %43 = add i64 %39, %42
  %min.iters.check = icmp ugt i64 %43, 7
  %ident.check.not = icmp eq i32 %32, 1
  %or.cond = and i1 %min.iters.check, %ident.check.not
  br i1 %or.cond, label %vector.main.loop.iter.check, label %.lr.ph.preheader

vector.main.loop.iter.check:                      ; preds = %iter.check
  %min.iters.check117 = icmp ult i64 %43, 32
  br i1 %min.iters.check117, label %vec.epilog.ph, label %vector.ph

vector.ph:                                        ; preds = %vector.main.loop.iter.check
  %n.vec = and i64 %43, -32
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = or disjoint i64 %index, 2
  %44 = getelementptr inbounds [200001 x i8], ptr %2, i64 0, i64 %offset.idx
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  store <16 x i8> zeroinitializer, ptr %44, align 2, !tbaa !8
  store <16 x i8> zeroinitializer, ptr %45, align 2, !tbaa !8
  %index.next = add nuw i64 %index, 32
  %46 = icmp eq i64 %index.next, %n.vec
  br i1 %46, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %43, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %vec.epilog.iter.check

vec.epilog.iter.check:                            ; preds = %middle.block
  %ind.end120 = or disjoint i64 %n.vec, 2
  %n.vec.remaining = and i64 %43, 24
  %min.epilog.iters.check = icmp eq i64 %n.vec.remaining, 0
  br i1 %min.epilog.iters.check, label %.lr.ph.preheader, label %vec.epilog.ph

.lr.ph.preheader:                                 ; preds = %vec.epilog.middle.block, %iter.check, %vec.epilog.iter.check
  %indvars.iv.ph = phi i64 [ %35, %iter.check ], [ %ind.end120, %vec.epilog.iter.check ], [ %ind.end, %vec.epilog.middle.block ]
  br label %.lr.ph

vec.epilog.ph:                                    ; preds = %vector.main.loop.iter.check, %vec.epilog.iter.check
  %vec.epilog.resume.val = phi i64 [ %n.vec, %vec.epilog.iter.check ], [ 0, %vector.main.loop.iter.check ]
  %n.vec119 = and i64 %43, -8
  %ind.end = or disjoint i64 %n.vec119, 2
  br label %vec.epilog.vector.body

vec.epilog.vector.body:                           ; preds = %vec.epilog.vector.body, %vec.epilog.ph
  %index121 = phi i64 [ %vec.epilog.resume.val, %vec.epilog.ph ], [ %index.next123, %vec.epilog.vector.body ]
  %offset.idx122 = or disjoint i64 %index121, 2
  %47 = getelementptr inbounds [200001 x i8], ptr %2, i64 0, i64 %offset.idx122
  store <8 x i8> zeroinitializer, ptr %47, align 2, !tbaa !8
  %index.next123 = add nuw i64 %index121, 8
  %48 = icmp eq i64 %index.next123, %n.vec119
  br i1 %48, label %vec.epilog.middle.block, label %vec.epilog.vector.body, !llvm.loop !19

vec.epilog.middle.block:                          ; preds = %vec.epilog.vector.body
  %cmp.n124 = icmp eq i64 %43, %n.vec119
  br i1 %cmp.n124, label %._crit_edge, label %.lr.ph.preheader

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %vec.epilog.middle.block, %31
  %49 = add nsw i32 %32, 1
  store i32 %49, ptr %5, align 4, !tbaa !11
  %50 = icmp slt i32 %32, 200000
  br i1 %50, label %23, label %16, !llvm.loop !20

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader ]
  %51 = getelementptr inbounds [200001 x i8], ptr %2, i64 0, i64 %indvars.iv
  store i8 0, ptr %51, align 1, !tbaa !8
  %indvars.iv.next = add nsw i64 %indvars.iv, %36
  %52 = icmp slt i64 %indvars.iv.next, 200001
  br i1 %52, label %.lr.ph, label %._crit_edge, !llvm.loop !21

._crit_edge87:                                    ; preds = %67, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  %53 = call ptr @_ZNSt6vectorIiSaIiEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  store ptr %53, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #10
  %54 = call ptr @_ZNSt6vectorIiSaIiEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  store ptr %54, ptr %7, align 8
  %55 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %55, label %.lr.ph105, label %._crit_edge106

.lr.ph105:                                        ; preds = %._crit_edge87
  %56 = getelementptr inbounds i32, ptr %20, i64 %18
  %.not92 = icmp eq i32 %.fr, 0
  br i1 %.not92, label %.thread75.us, label %.lr.ph98

.thread75.us:                                     ; preds = %.lr.ph105, %.thread75.us
  %.058103.us = phi i64 [ %.159.us, %.thread75.us ], [ 1, %.lr.ph105 ]
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = sitofp i32 %58 to x86_fp80
  %60 = call x86_fp80 @powl(x86_fp80 noundef %59, x86_fp80 noundef 0xK40169896800000000000) #10
  %61 = sitofp i64 %.058103.us to x86_fp80
  %62 = fmul x86_fp80 %60, %61
  %.159.us = fptosi x86_fp80 %62 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  %64 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %64, label %.thread75.us, label %._crit_edge106

.lr.ph86:                                         ; preds = %16, %67
  %indvars.iv110 = phi i64 [ %indvars.iv.next111, %67 ], [ 0, %16 ]
  %65 = getelementptr inbounds i32, ptr %20, i64 %indvars.iv110
  %66 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %65)
          to label %67 unwind label %71

67:                                               ; preds = %.lr.ph86
  %indvars.iv.next111 = add nuw nsw i64 %indvars.iv110, 1
  %68 = load i32, ptr %1, align 4, !tbaa !11
  %69 = sext i32 %68 to i64
  %70 = icmp slt i64 %indvars.iv.next111, %69
  br i1 %70, label %.lr.ph86, label %._crit_edge87, !llvm.loop !22

71:                                               ; preds = %.lr.ph86
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %105

._crit_edge106:                                   ; preds = %.thread75, %.thread75.us, %._crit_edge87
  %.058.lcssa = phi i64 [ 1, %._crit_edge87 ], [ %.159.us, %.thread75.us ], [ %.260, %.thread75 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.058.lcssa)
          to label %100 unwind label %103

.lr.ph98:                                         ; preds = %.lr.ph105, %.thread75
  %.058103 = phi i64 [ %.260, %.thread75 ], [ 1, %.lr.ph105 ]
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  %75 = load i32, ptr %74, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %.lr.ph98, %88
  %.04596 = phi ptr [ %20, %.lr.ph98 ], [ %89, %88 ]
  %.04795 = phi i32 [ 0, %.lr.ph98 ], [ %.148.ph, %88 ]
  %.04994 = phi i32 [ 10000000, %.lr.ph98 ], [ %.251.ph, %88 ]
  %.05293 = phi i32 [ 10000000, %.lr.ph98 ], [ %.254.ph, %88 ]
  %77 = load i32, ptr %.04596, align 4, !tbaa !11
  %78 = srem i32 %77, %75
  %.not66 = icmp eq i32 %78, 0
  br i1 %.not66, label %.lr.ph90, label %79

79:                                               ; preds = %76
  %80 = add nsw i32 %.04795, 1
  %81 = icmp sgt i32 %.04795, 0
  br i1 %81, label %.thread75, label %88

.lr.ph90:                                         ; preds = %76, %.lr.ph90
  %.089 = phi i32 [ %82, %.lr.ph90 ], [ 0, %76 ]
  %.04488 = phi i32 [ %83, %.lr.ph90 ], [ %77, %76 ]
  %82 = add nuw nsw i32 %.089, 1
  %83 = sdiv i32 %.04488, %75
  %84 = srem i32 %83, %75
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %.lr.ph90, label %._crit_edge91, !llvm.loop !23

._crit_edge91:                                    ; preds = %.lr.ph90
  %86 = icmp slt i32 %82, %.05293
  br i1 %86, label %88, label %87

87:                                               ; preds = %._crit_edge91
  %spec.select = call i32 @llvm.smin.i32(i32 %82, i32 %.04994)
  br label %88

88:                                               ; preds = %79, %._crit_edge91, %87
  %.254.ph = phi i32 [ %.05293, %87 ], [ %82, %._crit_edge91 ], [ %.05293, %79 ]
  %.251.ph = phi i32 [ %spec.select, %87 ], [ %.05293, %._crit_edge91 ], [ %.04994, %79 ]
  %.148.ph = phi i32 [ %.04795, %87 ], [ %.04795, %._crit_edge91 ], [ %80, %79 ]
  %89 = getelementptr inbounds i8, ptr %.04596, i64 4
  %.not = icmp eq ptr %89, %56
  br i1 %.not, label %._crit_edge99, label %76

._crit_edge99:                                    ; preds = %88
  %90 = icmp sgt i32 %.148.ph, 1
  br i1 %90, label %.thread75, label %91

91:                                               ; preds = %._crit_edge99
  %92 = icmp eq i32 %.148.ph, 1
  %93 = sitofp i32 %75 to x86_fp80
  %94 = sitofp i64 %.058103 to x86_fp80
  %.254.ph.lcssa..251.ph.lcssa = select i1 %92, i32 %.254.ph, i32 %.251.ph
  %95 = sitofp i32 %.254.ph.lcssa..251.ph.lcssa to x86_fp80
  %96 = call x86_fp80 @powl(x86_fp80 noundef %93, x86_fp80 noundef %95) #10
  %97 = fmul x86_fp80 %96, %94
  %.159 = fptosi x86_fp80 %97 to i64
  br label %.thread75

.thread75:                                        ; preds = %79, %._crit_edge99, %91
  %.260 = phi i64 [ %.159, %91 ], [ %.058103, %._crit_edge99 ], [ %.058103, %79 ]
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPiSt6vectorIiSaIiEEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #10
  %99 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPiSt6vectorIiSaIiEEEEbRKNS_17__normal_iteratorIT_T0_EESA_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br i1 %99, label %.lr.ph98, label %._crit_edge106

100:                                              ; preds = %._crit_edge106
  %101 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %102 unwind label %103

102:                                              ; preds = %100
  call void @llvm.stackrestore.p0(ptr %19)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 200001, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  ret i32 0

103:                                              ; preds = %100, %._crit_edge106
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %105

105:                                              ; preds = %103, %71, %29
  %.pn = phi { ptr, i32 } [ %30, %29 ], [ %72, %71 ], [ %104, %103 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 200001, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #10
  resume { ptr, i32 } %.pn
}

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: inlinehint mustprogress 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 #7

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @powl(x86_fp80 noundef, x86_fp80 noundef) local_unnamed_addr #8

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #9

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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 = !{!"bool", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !16, !17, !18}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !16, !17}
!22 = distinct !{!22, !16}
!23 = distinct !{!23, !16}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass