; LLVM IR from kazunetakahashi/atcoder :: 201610_12/1128_cf16-grand-final (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 }

@N = external dso_local global i32, align 4
@a = external dso_local global [100010 x i32], align 16
@b = external dso_local global [100010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5counti(i32 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 i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.std::vector", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca [100 x i8], align 16
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 0, ptr %2, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %40, %0
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @N, align 4, !tbaa !5
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %43

22:                                               ; preds = %17
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = load i32, ptr %2, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = sub nsw i32 %34, 1
  %36 = xor i32 %30, %35
  %37 = load i32, ptr %2, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100010 x i32], ptr @b, i64 0, i64 %38
  store i32 %36, ptr %39, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %22
  %41 = load i32, ptr %2, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %2, align 4, !tbaa !5
  br label %17, !llvm.loop !9

43:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %56, %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = load i32, ptr @N, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %59

49:                                               ; preds = %44
  %50 = load i32, ptr %3, align 4, !tbaa !5
  %51 = load i32, ptr %4, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = xor i32 %50, %54
  store i32 %55, ptr %3, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %49
  %57 = load i32, ptr %4, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %4, align 4, !tbaa !5
  br label %44, !llvm.loop !11

59:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 0
  br i1 %61, label %62, label %71

62:                                               ; preds = %59
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %64 unwind label %67

64:                                               ; preds = %62
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %66 unwind label %67

66:                                               ; preds = %64
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %189

67:                                               ; preds = %64, %62
  %68 = landingpad { ptr, i32 }
          cleanup
  %69 = extractvalue { ptr, i32 } %68, 0
  store ptr %69, ptr %6, align 8
  %70 = extractvalue { ptr, i32 } %68, 1
  store i32 %70, ptr %7, align 4
  br label %191

71:                                               ; preds = %59
  br label %72

72:                                               ; preds = %78, %71
  %73 = load i32, ptr %3, align 4, !tbaa !5
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %85

75:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %76 = load i32, ptr %3, align 4, !tbaa !5
  %77 = and i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 4 dereferenceable(4) %9)
          to label %78 unwind label %81

78:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %79 = load i32, ptr %3, align 4, !tbaa !5
  %80 = ashr i32 %79, 1
  store i32 %80, ptr %3, align 4, !tbaa !5
  br label %72, !llvm.loop !12

81:                                               ; preds = %75
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %6, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %191

85:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 100, ptr %10) #6
  %86 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %87 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 0
  %88 = getelementptr inbounds i8, ptr %87, i64 100
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 1, ptr %11, align 1, !tbaa !13
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %86, ptr noundef %88, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %89 unwind label %97

89:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %119, %89
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %93 = trunc i64 %92 to i32
  %94 = sub nsw i32 %93, 1
  %95 = icmp slt i32 %91, %94
  br i1 %95, label %101, label %96

96:                                               ; preds = %90
  store i32 10, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %122

97:                                               ; preds = %85
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %6, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %188

101:                                              ; preds = %90
  %102 = load i32, ptr %13, align 4, !tbaa !5
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %104) #6
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = sext i32 %107 to i64
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %108) #6
  %110 = load i32, ptr %109, align 4, !tbaa !5
  %111 = icmp ne i32 %106, %110
  br i1 %111, label %112, label %118

112:                                              ; preds = %101
  %113 = load i32, ptr %12, align 4, !tbaa !5
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %12, align 4, !tbaa !5
  %115 = load i32, ptr %13, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %116
  store i8 0, ptr %117, align 1, !tbaa !13
  br label %118

118:                                              ; preds = %112, %101
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %13, align 4, !tbaa !5
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %13, align 4, !tbaa !5
  br label %90, !llvm.loop !15

122:                                              ; preds = %96
  %123 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  br i1 %123, label %132, label %124

124:                                              ; preds = %122
  %125 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %126 = trunc i64 %125 to i32
  %127 = sub nsw i32 %126, 1
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %128
  store i8 0, ptr %129, align 1, !tbaa !13
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %12, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %124, %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %147, %132
  %134 = load i32, ptr %14, align 4, !tbaa !5
  %135 = load i32, ptr @N, align 4, !tbaa !5
  %136 = icmp slt i32 %134, %135
  br i1 %136, label %138, label %137

137:                                              ; preds = %133
  store i32 13, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %150

138:                                              ; preds = %133
  %139 = load i32, ptr %14, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [100010 x i32], ptr @b, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = call noundef i32 @_Z5counti(i32 noundef %142)
  %144 = sub nsw i32 %143, 1
  %145 = sext i32 %144 to i64
  %146 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %145
  store i8 1, ptr %146, align 1, !tbaa !13
  br label %147

147:                                              ; preds = %138
  %148 = load i32, ptr %14, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr %14, align 4, !tbaa !5
  br label %133, !llvm.loop !16

150:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %151

151:                                              ; preds = %171, %150
  %152 = load i32, ptr %15, align 4, !tbaa !5
  %153 = icmp slt i32 %152, 100
  br i1 %153, label %155, label %154

154:                                              ; preds = %151
  store i32 16, ptr %8, align 4
  br label %174

155:                                              ; preds = %151
  %156 = load i32, ptr %15, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [100 x i8], ptr %10, i64 0, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !13, !range !17, !noundef !18
  %160 = trunc i8 %159 to i1
  br i1 %160, label %170, label %161

161:                                              ; preds = %155
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %163 unwind label %166

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %162, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %165 unwind label %166

165:                                              ; preds = %163
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %174

166:                                              ; preds = %163, %161
  %167 = landingpad { ptr, i32 }
          cleanup
  %168 = extractvalue { ptr, i32 } %167, 0
  store ptr %168, ptr %6, align 8
  %169 = extractvalue { ptr, i32 } %167, 1
  store i32 %169, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %187

170:                                              ; preds = %155
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %15, align 4, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %15, align 4, !tbaa !5
  br label %151, !llvm.loop !19

174:                                              ; preds = %165, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %175 = load i32, ptr %8, align 4
  switch i32 %175, label %186 [
    i32 16, label %176
  ]

176:                                              ; preds = %174
  %177 = load i32, ptr %12, align 4, !tbaa !5
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %177)
          to label %179 unwind label %182

179:                                              ; preds = %176
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %181 unwind label %182

181:                                              ; preds = %179
  store i32 0, ptr %1, align 4
  store i32 1, ptr %8, align 4
  br label %186

182:                                              ; preds = %179, %176
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %6, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %7, align 4
  br label %187

186:                                              ; preds = %181, %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #6
  br label %189

187:                                              ; preds = %182, %166
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %188

188:                                              ; preds = %187, %97
  call void @llvm.lifetime.end.p0(i64 100, ptr %10) #6
  br label %191

189:                                              ; preds = %186, %66
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %190 = load i32, ptr %1, align 4
  ret i32 %190

191:                                              ; preds = %188, %81, %67
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %192

192:                                              ; preds = %191
  %193 = load ptr, ptr %6, align 8
  %194 = load i32, ptr %7, align 4
  %195 = insertvalue { ptr, i32 } poison, ptr %193, 0
  %196 = insertvalue { ptr, i32 } %195, i32 %194, 1
  resume { ptr, i32 } %196
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

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

attributes #0 = { 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 #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !10}


; 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 }

@N = external dso_local global i32, align 4
@a = external dso_local global [100010 x i32], align 16
@b = external dso_local local_unnamed_addr global [100010 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5counti(i32 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 %"class.std::vector", align 8
  %2 = alloca i32, align 4
  %3 = alloca [100 x i8], align 16
  %4 = alloca i8, align 1
  %5 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) @N)
  %6 = load i32, ptr @N, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge.thread

.preheader54:                                     ; preds = %.lr.ph
  %8 = icmp sgt i32 %16, 0
  br i1 %8, label %.lr.ph58.preheader, label %._crit_edge.thread

.lr.ph58.preheader:                               ; preds = %.preheader54
  %wide.trip.count = zext nneg i32 %16 to i64
  %xtraiter = and i64 %wide.trip.count, 7
  %9 = icmp ult i32 %16, 8
  br i1 %9, label %._crit_edge.unr-lcssa, label %.lr.ph58.preheader.new

.lr.ph58.preheader.new:                           ; preds = %.lr.ph58.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483640
  br label %.lr.ph58

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv
  %11 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %12 = load i32, ptr %10, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  %14 = xor i32 %13, %12
  %15 = getelementptr inbounds [100010 x i32], ptr @b, i64 0, i64 %indvars.iv
  store i32 %14, ptr %15, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %16 = load i32, ptr @N, align 4, !tbaa !5
  %17 = sext i32 %16 to i64
  %18 = icmp slt i64 %indvars.iv.next, %17
  br i1 %18, label %.lr.ph, label %.preheader54, !llvm.loop !9

._crit_edge.thread:                               ; preds = %.preheader54, %0
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br label %47

._crit_edge.unr-lcssa:                            ; preds = %.lr.ph58, %.lr.ph58.preheader
  %.04256.lcssa.ph = phi i32 [ poison, %.lr.ph58.preheader ], [ %43, %.lr.ph58 ]
  %.lcssa93.ph = phi i32 [ poison, %.lr.ph58.preheader ], [ %45, %.lr.ph58 ]
  %.lcssa.ph = phi i32 [ poison, %.lr.ph58.preheader ], [ %46, %.lr.ph58 ]
  %indvars.iv74.unr = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next75.7, %.lr.ph58 ]
  %.04256.unr = phi i32 [ 0, %.lr.ph58.preheader ], [ %46, %.lr.ph58 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph58.epil

.lr.ph58.epil:                                    ; preds = %._crit_edge.unr-lcssa, %.lr.ph58.epil
  %indvars.iv74.epil = phi i64 [ %indvars.iv.next75.epil, %.lr.ph58.epil ], [ %indvars.iv74.unr, %._crit_edge.unr-lcssa ]
  %.04256.epil = phi i32 [ %21, %.lr.ph58.epil ], [ %.04256.unr, %._crit_edge.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph58.epil ], [ 0, %._crit_edge.unr-lcssa ]
  %19 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv74.epil
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = xor i32 %20, %.04256.epil
  %indvars.iv.next75.epil = add nuw nsw i64 %indvars.iv74.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph58.epil, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph58.epil, %._crit_edge.unr-lcssa
  %.04256.lcssa = phi i32 [ %.04256.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.04256.epil, %.lr.ph58.epil ]
  %.lcssa93 = phi i32 [ %.lcssa93.ph, %._crit_edge.unr-lcssa ], [ %20, %.lr.ph58.epil ]
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge.unr-lcssa ], [ %21, %.lr.ph58.epil ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %22 = icmp eq i32 %.lcssa93, %.04256.lcssa
  br i1 %22, label %47, label %.preheader53

.lr.ph58:                                         ; preds = %.lr.ph58, %.lr.ph58.preheader.new
  %indvars.iv74 = phi i64 [ 0, %.lr.ph58.preheader.new ], [ %indvars.iv.next75.7, %.lr.ph58 ]
  %.04256 = phi i32 [ 0, %.lr.ph58.preheader.new ], [ %46, %.lr.ph58 ]
  %niter = phi i64 [ 0, %.lr.ph58.preheader.new ], [ %niter.next.7, %.lr.ph58 ]
  %23 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv74
  %24 = load i32, ptr %23, align 16, !tbaa !5
  %25 = xor i32 %24, %.04256
  %indvars.iv.next75 = or disjoint i64 %indvars.iv74, 1
  %26 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = xor i32 %27, %25
  %indvars.iv.next75.1 = or disjoint i64 %indvars.iv74, 2
  %29 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.1
  %30 = load i32, ptr %29, align 8, !tbaa !5
  %31 = xor i32 %30, %28
  %indvars.iv.next75.2 = or disjoint i64 %indvars.iv74, 3
  %32 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.2
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = xor i32 %33, %31
  %indvars.iv.next75.3 = or disjoint i64 %indvars.iv74, 4
  %35 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.3
  %36 = load i32, ptr %35, align 16, !tbaa !5
  %37 = xor i32 %36, %34
  %indvars.iv.next75.4 = or disjoint i64 %indvars.iv74, 5
  %38 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.4
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = xor i32 %39, %37
  %indvars.iv.next75.5 = or disjoint i64 %indvars.iv74, 6
  %41 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.5
  %42 = load i32, ptr %41, align 8, !tbaa !5
  %43 = xor i32 %42, %40
  %indvars.iv.next75.6 = or disjoint i64 %indvars.iv74, 7
  %44 = getelementptr inbounds [100010 x i32], ptr @a, i64 0, i64 %indvars.iv.next75.6
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = xor i32 %45, %43
  %indvars.iv.next75.7 = add nuw nsw i64 %indvars.iv74, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.unr-lcssa, label %.lr.ph58, !llvm.loop !13

47:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
          to label %49 unwind label %51

49:                                               ; preds = %47
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %48, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %126 unwind label %51

51:                                               ; preds = %49, %47
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %127

.preheader53:                                     ; preds = %._crit_edge, %54
  %.14360 = phi i32 [ %55, %54 ], [ %.lcssa, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %53 = and i32 %.14360, 1
  store i32 %53, ptr %2, align 4, !tbaa !5
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 4 dereferenceable(4) %2)
          to label %54 unwind label %56

54:                                               ; preds = %.preheader53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %55 = ashr i32 %.14360, 1
  %.not = icmp ult i32 %.14360, 2
  br i1 %.not, label %58, label %.preheader53, !llvm.loop !14

56:                                               ; preds = %.preheader53
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  br label %127

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 100, ptr nonnull %3) #6
  %59 = getelementptr inbounds i8, ptr %3, i64 100
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  store i8 1, ptr %4, align 1, !tbaa !15
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %3, ptr noundef nonnull %59, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %60 unwind label %65

60:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  %61 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %62 = trunc i64 %61 to i32
  %63 = icmp sgt i32 %62, 1
  br i1 %63, label %.lr.ph64, label %._crit_edge65

._crit_edge65:                                    ; preds = %74, %60
  %.033.lcssa = phi i32 [ 0, %60 ], [ %.1, %74 ]
  %64 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br i1 %64, label %85, label %79

65:                                               ; preds = %58
  %66 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %125

.lr.ph64:                                         ; preds = %60, %74
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %74 ], [ 0, %60 ]
  %.03361 = phi i32 [ %.1, %74 ], [ 0, %60 ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv.next78) #6
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv77) #6
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %.not50 = icmp eq i32 %68, %70
  br i1 %.not50, label %74, label %71

71:                                               ; preds = %.lr.ph64
  %72 = add nsw i32 %.03361, 1
  %73 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv77
  store i8 0, ptr %73, align 1, !tbaa !15
  br label %74

74:                                               ; preds = %.lr.ph64, %71
  %.1 = phi i32 [ %72, %71 ], [ %.03361, %.lr.ph64 ]
  %75 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %76 = shl i64 %75, 32
  %sext87 = add i64 %76, -4294967296
  %77 = ashr exact i64 %sext87, 32
  %78 = icmp slt i64 %indvars.iv.next78, %77
  br i1 %78, label %.lr.ph64, label %._crit_edge65, !llvm.loop !17

79:                                               ; preds = %._crit_edge65
  %80 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %81 = shl i64 %80, 32
  %sext = add i64 %81, -4294967296
  %82 = ashr exact i64 %sext, 32
  %83 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %82
  store i8 0, ptr %83, align 1, !tbaa !15
  %84 = add nsw i32 %.033.lcssa, 1
  br label %85

85:                                               ; preds = %79, %._crit_edge65
  %.2 = phi i32 [ %.033.lcssa, %._crit_edge65 ], [ %84, %79 ]
  %86 = load i32, ptr @N, align 4, !tbaa !5
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %.lr.ph69, label %.preheader.preheader

.lr.ph69:                                         ; preds = %85, %.lr.ph69
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %.lr.ph69 ], [ 0, %85 ]
  %88 = getelementptr inbounds [100010 x i32], ptr @b, i64 0, i64 %indvars.iv80
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call noundef i32 @_Z5counti(i32 noundef %89)
  %91 = add nsw i32 %90, -1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %92
  store i8 1, ptr %93, align 1, !tbaa !15
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %94 = load i32, ptr @N, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = icmp slt i64 %indvars.iv.next81, %95
  br i1 %96, label %.lr.ph69, label %.preheader.preheader, !llvm.loop !18

.preheader.preheader:                             ; preds = %.lr.ph69, %85
  br label %.preheader

.preheader.1:                                     ; preds = %.preheader
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %97 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv.next84
  %98 = load i8, ptr %97, align 1, !tbaa !15, !range !19, !noundef !20
  %99 = trunc nuw i8 %98 to i1
  br i1 %99, label %.preheader.2, label %113

.preheader.2:                                     ; preds = %.preheader.1
  %indvars.iv.next84.1 = add nuw nsw i64 %indvars.iv83, 2
  %100 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv.next84.1
  %101 = load i8, ptr %100, align 1, !tbaa !15, !range !19, !noundef !20
  %102 = trunc nuw i8 %101 to i1
  br i1 %102, label %.preheader.3, label %113

.preheader.3:                                     ; preds = %.preheader.2
  %indvars.iv.next84.2 = add nuw nsw i64 %indvars.iv83, 3
  %103 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv.next84.2
  %104 = load i8, ptr %103, align 1, !tbaa !15, !range !19, !noundef !20
  %105 = trunc nuw i8 %104 to i1
  br i1 %105, label %.preheader.4, label %113

.preheader.4:                                     ; preds = %.preheader.3
  %indvars.iv.next84.3 = add nuw nsw i64 %indvars.iv83, 4
  %106 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv.next84.3
  %107 = load i8, ptr %106, align 1, !tbaa !15, !range !19, !noundef !20
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %109, label %113

109:                                              ; preds = %.preheader.4
  %indvars.iv.next84.4 = add nuw nsw i64 %indvars.iv83, 5
  %exitcond86.4 = icmp eq i64 %indvars.iv.next84.4, 100
  br i1 %exitcond86.4, label %.critedge, label %.preheader, !llvm.loop !21

.preheader:                                       ; preds = %109, %.preheader.preheader
  %indvars.iv83 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next84.4, %109 ]
  %110 = getelementptr inbounds [100 x i8], ptr %3, i64 0, i64 %indvars.iv83
  %111 = load i8, ptr %110, align 1, !tbaa !15, !range !19, !noundef !20
  %112 = trunc nuw i8 %111 to i1
  br i1 %112, label %.preheader.1, label %113

113:                                              ; preds = %.preheader.4, %.preheader.3, %.preheader.2, %.preheader.1, %.preheader
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %115 unwind label %117

115:                                              ; preds = %113
  %116 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %114, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %124 unwind label %117

117:                                              ; preds = %115, %113
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %125

.critedge:                                        ; preds = %109
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.2)
          to label %120 unwind label %122

120:                                              ; preds = %.critedge
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %124 unwind label %122

122:                                              ; preds = %120, %.critedge
  %123 = landingpad { ptr, i32 }
          cleanup
  br label %125

124:                                              ; preds = %115, %120
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #6
  br label %126

125:                                              ; preds = %117, %122, %65
  %.pn.pn = phi { ptr, i32 } [ %66, %65 ], [ %123, %122 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 100, ptr nonnull %3) #6
  br label %127

126:                                              ; preds = %49, %124
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  ret i32 0

127:                                              ; preds = %125, %56, %51
  %.pn51 = phi { ptr, i32 } [ %52, %51 ], [ %57, %56 ], [ %.pn.pn, %125 ]
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  resume { ptr, i32 } %.pn51
}

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; 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 #4 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)) #5

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

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

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

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

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

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

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

attributes #0 = { 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 #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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !12}
!12 = !{!"llvm.loop.unroll.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !10}


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