; LLVM IR from DionysiosB/CodeForces :: 1000-1099 (1042B-Vitamins)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@_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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %18 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  store i64 1000000000, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 1000000000, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1000000000, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 1000000000, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 1000000000, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  store i64 1000000000, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 1000000000, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 1000000000, ptr %10, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %219, %0
  %21 = load i64, ptr %3, align 8, !tbaa !5
  %22 = add nsw i64 %21, -1
  store i64 %22, ptr %3, align 8, !tbaa !5
  %23 = icmp ne i64 %21, 0
  br i1 %23, label %24, label %220

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %25 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %26 unwind label %50

26:                                               ; preds = %24
  %27 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(32) %12)
          to label %28 unwind label %50

28:                                               ; preds = %26
  %29 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %30 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %29, ptr %30, align 8
  %31 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %32 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %31, ptr %32, align 8
  %33 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8
  %35 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  %36 = load ptr, ptr %35, align 8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %34, ptr %36)
          to label %37 unwind label %50

37:                                               ; preds = %28
  %38 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str)
          to label %39 unwind label %50

39:                                               ; preds = %37
  br i1 %38, label %40, label %54

40:                                               ; preds = %39
  %41 = load i64, ptr %4, align 8, !tbaa !5
  %42 = load i64, ptr %11, align 8, !tbaa !5
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %44, label %46

44:                                               ; preds = %40
  %45 = load i64, ptr %4, align 8, !tbaa !5
  br label %48

46:                                               ; preds = %40
  %47 = load i64, ptr %11, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %46, %44
  %49 = phi i64 [ %45, %44 ], [ %47, %46 ]
  store i64 %49, ptr %4, align 8, !tbaa !5
  br label %219

50:                                               ; preds = %173, %142, %111, %80, %67, %54, %37, %28, %26, %24
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %281

54:                                               ; preds = %39
  %55 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.1)
          to label %56 unwind label %50

56:                                               ; preds = %54
  br i1 %55, label %57, label %67

57:                                               ; preds = %56
  %58 = load i64, ptr %5, align 8, !tbaa !5
  %59 = load i64, ptr %11, align 8, !tbaa !5
  %60 = icmp slt i64 %58, %59
  br i1 %60, label %61, label %63

61:                                               ; preds = %57
  %62 = load i64, ptr %5, align 8, !tbaa !5
  br label %65

63:                                               ; preds = %57
  %64 = load i64, ptr %11, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %63, %61
  %66 = phi i64 [ %62, %61 ], [ %64, %63 ]
  store i64 %66, ptr %5, align 8, !tbaa !5
  br label %218

67:                                               ; preds = %56
  %68 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.2)
          to label %69 unwind label %50

69:                                               ; preds = %67
  br i1 %68, label %70, label %80

70:                                               ; preds = %69
  %71 = load i64, ptr %6, align 8, !tbaa !5
  %72 = load i64, ptr %11, align 8, !tbaa !5
  %73 = icmp slt i64 %71, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %70
  %75 = load i64, ptr %6, align 8, !tbaa !5
  br label %78

76:                                               ; preds = %70
  %77 = load i64, ptr %11, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %76, %74
  %79 = phi i64 [ %75, %74 ], [ %77, %76 ]
  store i64 %79, ptr %6, align 8, !tbaa !5
  br label %217

80:                                               ; preds = %69
  %81 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.3)
          to label %82 unwind label %50

82:                                               ; preds = %80
  br i1 %81, label %83, label %111

83:                                               ; preds = %82
  %84 = load i64, ptr %7, align 8, !tbaa !5
  %85 = load i64, ptr %11, align 8, !tbaa !5
  %86 = icmp slt i64 %84, %85
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = load i64, ptr %7, align 8, !tbaa !5
  br label %91

89:                                               ; preds = %83
  %90 = load i64, ptr %11, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %89, %87
  %92 = phi i64 [ %88, %87 ], [ %90, %89 ]
  store i64 %92, ptr %7, align 8, !tbaa !5
  %93 = load i64, ptr %4, align 8, !tbaa !5
  %94 = load i64, ptr %11, align 8, !tbaa !5
  %95 = icmp slt i64 %93, %94
  br i1 %95, label %96, label %98

96:                                               ; preds = %91
  %97 = load i64, ptr %4, align 8, !tbaa !5
  br label %100

98:                                               ; preds = %91
  %99 = load i64, ptr %11, align 8, !tbaa !5
  br label %100

100:                                              ; preds = %98, %96
  %101 = phi i64 [ %97, %96 ], [ %99, %98 ]
  store i64 %101, ptr %4, align 8, !tbaa !5
  %102 = load i64, ptr %5, align 8, !tbaa !5
  %103 = load i64, ptr %11, align 8, !tbaa !5
  %104 = icmp slt i64 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load i64, ptr %5, align 8, !tbaa !5
  br label %109

107:                                              ; preds = %100
  %108 = load i64, ptr %11, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %107, %105
  %110 = phi i64 [ %106, %105 ], [ %108, %107 ]
  store i64 %110, ptr %5, align 8, !tbaa !5
  br label %216

111:                                              ; preds = %82
  %112 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.4)
          to label %113 unwind label %50

113:                                              ; preds = %111
  br i1 %112, label %114, label %142

114:                                              ; preds = %113
  %115 = load i64, ptr %8, align 8, !tbaa !5
  %116 = load i64, ptr %11, align 8, !tbaa !5
  %117 = icmp slt i64 %115, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %114
  %119 = load i64, ptr %8, align 8, !tbaa !5
  br label %122

120:                                              ; preds = %114
  %121 = load i64, ptr %11, align 8, !tbaa !5
  br label %122

122:                                              ; preds = %120, %118
  %123 = phi i64 [ %119, %118 ], [ %121, %120 ]
  store i64 %123, ptr %8, align 8, !tbaa !5
  %124 = load i64, ptr %4, align 8, !tbaa !5
  %125 = load i64, ptr %11, align 8, !tbaa !5
  %126 = icmp slt i64 %124, %125
  br i1 %126, label %127, label %129

127:                                              ; preds = %122
  %128 = load i64, ptr %4, align 8, !tbaa !5
  br label %131

129:                                              ; preds = %122
  %130 = load i64, ptr %11, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %129, %127
  %132 = phi i64 [ %128, %127 ], [ %130, %129 ]
  store i64 %132, ptr %4, align 8, !tbaa !5
  %133 = load i64, ptr %6, align 8, !tbaa !5
  %134 = load i64, ptr %11, align 8, !tbaa !5
  %135 = icmp slt i64 %133, %134
  br i1 %135, label %136, label %138

136:                                              ; preds = %131
  %137 = load i64, ptr %6, align 8, !tbaa !5
  br label %140

138:                                              ; preds = %131
  %139 = load i64, ptr %11, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %138, %136
  %141 = phi i64 [ %137, %136 ], [ %139, %138 ]
  store i64 %141, ptr %6, align 8, !tbaa !5
  br label %215

142:                                              ; preds = %113
  %143 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.5)
          to label %144 unwind label %50

144:                                              ; preds = %142
  br i1 %143, label %145, label %173

145:                                              ; preds = %144
  %146 = load i64, ptr %9, align 8, !tbaa !5
  %147 = load i64, ptr %11, align 8, !tbaa !5
  %148 = icmp slt i64 %146, %147
  br i1 %148, label %149, label %151

149:                                              ; preds = %145
  %150 = load i64, ptr %9, align 8, !tbaa !5
  br label %153

151:                                              ; preds = %145
  %152 = load i64, ptr %11, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %151, %149
  %154 = phi i64 [ %150, %149 ], [ %152, %151 ]
  store i64 %154, ptr %9, align 8, !tbaa !5
  %155 = load i64, ptr %5, align 8, !tbaa !5
  %156 = load i64, ptr %11, align 8, !tbaa !5
  %157 = icmp slt i64 %155, %156
  br i1 %157, label %158, label %160

158:                                              ; preds = %153
  %159 = load i64, ptr %5, align 8, !tbaa !5
  br label %162

160:                                              ; preds = %153
  %161 = load i64, ptr %11, align 8, !tbaa !5
  br label %162

162:                                              ; preds = %160, %158
  %163 = phi i64 [ %159, %158 ], [ %161, %160 ]
  store i64 %163, ptr %5, align 8, !tbaa !5
  %164 = load i64, ptr %6, align 8, !tbaa !5
  %165 = load i64, ptr %11, align 8, !tbaa !5
  %166 = icmp slt i64 %164, %165
  br i1 %166, label %167, label %169

167:                                              ; preds = %162
  %168 = load i64, ptr %6, align 8, !tbaa !5
  br label %171

169:                                              ; preds = %162
  %170 = load i64, ptr %11, align 8, !tbaa !5
  br label %171

171:                                              ; preds = %169, %167
  %172 = phi i64 [ %168, %167 ], [ %170, %169 ]
  store i64 %172, ptr %6, align 8, !tbaa !5
  br label %214

173:                                              ; preds = %144
  %174 = invoke noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef @.str.6)
          to label %175 unwind label %50

175:                                              ; preds = %173
  br i1 %174, label %176, label %213

176:                                              ; preds = %175
  %177 = load i64, ptr %10, align 8, !tbaa !5
  %178 = load i64, ptr %11, align 8, !tbaa !5
  %179 = icmp slt i64 %177, %178
  br i1 %179, label %180, label %182

180:                                              ; preds = %176
  %181 = load i64, ptr %10, align 8, !tbaa !5
  br label %184

182:                                              ; preds = %176
  %183 = load i64, ptr %11, align 8, !tbaa !5
  br label %184

184:                                              ; preds = %182, %180
  %185 = phi i64 [ %181, %180 ], [ %183, %182 ]
  store i64 %185, ptr %10, align 8, !tbaa !5
  %186 = load i64, ptr %4, align 8, !tbaa !5
  %187 = load i64, ptr %11, align 8, !tbaa !5
  %188 = icmp slt i64 %186, %187
  br i1 %188, label %189, label %191

189:                                              ; preds = %184
  %190 = load i64, ptr %4, align 8, !tbaa !5
  br label %193

191:                                              ; preds = %184
  %192 = load i64, ptr %11, align 8, !tbaa !5
  br label %193

193:                                              ; preds = %191, %189
  %194 = phi i64 [ %190, %189 ], [ %192, %191 ]
  store i64 %194, ptr %4, align 8, !tbaa !5
  %195 = load i64, ptr %5, align 8, !tbaa !5
  %196 = load i64, ptr %11, align 8, !tbaa !5
  %197 = icmp slt i64 %195, %196
  br i1 %197, label %198, label %200

198:                                              ; preds = %193
  %199 = load i64, ptr %5, align 8, !tbaa !5
  br label %202

200:                                              ; preds = %193
  %201 = load i64, ptr %11, align 8, !tbaa !5
  br label %202

202:                                              ; preds = %200, %198
  %203 = phi i64 [ %199, %198 ], [ %201, %200 ]
  store i64 %203, ptr %5, align 8, !tbaa !5
  %204 = load i64, ptr %6, align 8, !tbaa !5
  %205 = load i64, ptr %11, align 8, !tbaa !5
  %206 = icmp slt i64 %204, %205
  br i1 %206, label %207, label %209

207:                                              ; preds = %202
  %208 = load i64, ptr %6, align 8, !tbaa !5
  br label %211

209:                                              ; preds = %202
  %210 = load i64, ptr %11, align 8, !tbaa !5
  br label %211

211:                                              ; preds = %209, %207
  %212 = phi i64 [ %208, %207 ], [ %210, %209 ]
  store i64 %212, ptr %6, align 8, !tbaa !5
  br label %213

213:                                              ; preds = %211, %175
  br label %214

214:                                              ; preds = %213, %171
  br label %215

215:                                              ; preds = %214, %140
  br label %216

216:                                              ; preds = %215, %109
  br label %217

217:                                              ; preds = %216, %78
  br label %218

218:                                              ; preds = %217, %65
  br label %219

219:                                              ; preds = %218, %48
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %20, !llvm.loop !9

220:                                              ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %221 = load i64, ptr %4, align 8, !tbaa !5
  %222 = load i64, ptr %5, align 8, !tbaa !5
  %223 = add nsw i64 %221, %222
  %224 = load i64, ptr %6, align 8, !tbaa !5
  %225 = add nsw i64 %223, %224
  store i64 %225, ptr %17, align 8, !tbaa !5
  %226 = load i64, ptr %17, align 8, !tbaa !5
  %227 = load i64, ptr %7, align 8, !tbaa !5
  %228 = load i64, ptr %6, align 8, !tbaa !5
  %229 = add nsw i64 %227, %228
  %230 = icmp slt i64 %226, %229
  br i1 %230, label %231, label %233

231:                                              ; preds = %220
  %232 = load i64, ptr %17, align 8, !tbaa !5
  br label %237

233:                                              ; preds = %220
  %234 = load i64, ptr %7, align 8, !tbaa !5
  %235 = load i64, ptr %6, align 8, !tbaa !5
  %236 = add nsw i64 %234, %235
  br label %237

237:                                              ; preds = %233, %231
  %238 = phi i64 [ %232, %231 ], [ %236, %233 ]
  store i64 %238, ptr %17, align 8, !tbaa !5
  %239 = load i64, ptr %17, align 8, !tbaa !5
  %240 = load i64, ptr %8, align 8, !tbaa !5
  %241 = load i64, ptr %5, align 8, !tbaa !5
  %242 = add nsw i64 %240, %241
  %243 = icmp slt i64 %239, %242
  br i1 %243, label %244, label %246

244:                                              ; preds = %237
  %245 = load i64, ptr %17, align 8, !tbaa !5
  br label %250

246:                                              ; preds = %237
  %247 = load i64, ptr %8, align 8, !tbaa !5
  %248 = load i64, ptr %5, align 8, !tbaa !5
  %249 = add nsw i64 %247, %248
  br label %250

250:                                              ; preds = %246, %244
  %251 = phi i64 [ %245, %244 ], [ %249, %246 ]
  store i64 %251, ptr %17, align 8, !tbaa !5
  %252 = load i64, ptr %17, align 8, !tbaa !5
  %253 = load i64, ptr %9, align 8, !tbaa !5
  %254 = load i64, ptr %4, align 8, !tbaa !5
  %255 = add nsw i64 %253, %254
  %256 = icmp slt i64 %252, %255
  br i1 %256, label %257, label %259

257:                                              ; preds = %250
  %258 = load i64, ptr %17, align 8, !tbaa !5
  br label %263

259:                                              ; preds = %250
  %260 = load i64, ptr %9, align 8, !tbaa !5
  %261 = load i64, ptr %4, align 8, !tbaa !5
  %262 = add nsw i64 %260, %261
  br label %263

263:                                              ; preds = %259, %257
  %264 = phi i64 [ %258, %257 ], [ %262, %259 ]
  store i64 %264, ptr %17, align 8, !tbaa !5
  %265 = load i64, ptr %17, align 8, !tbaa !5
  %266 = load i64, ptr %10, align 8, !tbaa !5
  %267 = icmp slt i64 %265, %266
  br i1 %267, label %268, label %270

268:                                              ; preds = %263
  %269 = load i64, ptr %17, align 8, !tbaa !5
  br label %272

270:                                              ; preds = %263
  %271 = load i64, ptr %10, align 8, !tbaa !5
  br label %272

272:                                              ; preds = %270, %268
  %273 = phi i64 [ %269, %268 ], [ %271, %270 ]
  store i64 %273, ptr %17, align 8, !tbaa !5
  %274 = load i64, ptr %17, align 8, !tbaa !5
  %275 = icmp sge i64 %274, 1000000000
  br i1 %275, label %276, label %277

276:                                              ; preds = %272
  store i64 -1, ptr %17, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %276, %272
  %278 = load i64, ptr %17, align 8, !tbaa !5
  %279 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %278)
  %280 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %279, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  ret i32 0

281:                                              ; preds = %50
  %282 = load ptr, ptr %13, align 8
  %283 = load i32, ptr %14, align 4
  %284 = insertvalue { ptr, i32 } poison, ptr %282, 0
  %285 = insertvalue { ptr, i32 } %284, i32 %283, 1
  resume { ptr, i32 } %285
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) #5

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [4 x i8], align 1
@_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 i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #8
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = add nsw i64 %6, -1
  store i64 %7, ptr %1, align 8, !tbaa !5
  %.not80 = icmp eq i64 %6, 0
  br i1 %.not80, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %0, %60
  %.087 = phi i64 [ %.1, %60 ], [ 1000000000, %0 ]
  %.06186 = phi i64 [ %.162, %60 ], [ 1000000000, %0 ]
  %.06385 = phi i64 [ %.164, %60 ], [ 1000000000, %0 ]
  %.06584 = phi i64 [ %.166, %60 ], [ 1000000000, %0 ]
  %.06783 = phi i64 [ %.168, %60 ], [ 1000000000, %0 ]
  %.06982 = phi i64 [ %.170, %60 ], [ 1000000000, %0 ]
  %.07181 = phi i64 [ %.172, %60 ], [ 1000000000, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %8 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %9 unwind label %19

9:                                                ; preds = %.lr.ph
  %10 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %11 unwind label %19

11:                                               ; preds = %9
  %12 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %13 = call ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  invoke void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr %12, ptr %13)
          to label %14 unwind label %19

14:                                               ; preds = %11
  %15 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str)
  br i1 %15, label %16, label %21

16:                                               ; preds = %14
  %17 = load i64, ptr %2, align 8
  %18 = call i64 @llvm.smin.i64(i64 %.087, i64 %17)
  br label %60

19:                                               ; preds = %11, %9, %.lr.ph
  %20 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  resume { ptr, i32 } %20

21:                                               ; preds = %14
  %22 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.1)
  br i1 %22, label %23, label %26

23:                                               ; preds = %21
  %24 = load i64, ptr %2, align 8
  %25 = call i64 @llvm.smin.i64(i64 %.06186, i64 %24)
  br label %60

26:                                               ; preds = %21
  %27 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.2)
  br i1 %27, label %28, label %31

28:                                               ; preds = %26
  %29 = load i64, ptr %2, align 8
  %30 = call i64 @llvm.smin.i64(i64 %.06385, i64 %29)
  br label %60

31:                                               ; preds = %26
  %32 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.3)
  br i1 %32, label %33, label %38

33:                                               ; preds = %31
  %34 = load i64, ptr %2, align 8
  %35 = call i64 @llvm.smin.i64(i64 %.06584, i64 %34)
  %36 = call i64 @llvm.smin.i64(i64 %.087, i64 %34)
  %37 = call i64 @llvm.smin.i64(i64 %.06186, i64 %34)
  br label %60

38:                                               ; preds = %31
  %39 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.4)
  br i1 %39, label %40, label %45

40:                                               ; preds = %38
  %41 = load i64, ptr %2, align 8
  %42 = call i64 @llvm.smin.i64(i64 %.06783, i64 %41)
  %43 = call i64 @llvm.smin.i64(i64 %.087, i64 %41)
  %44 = call i64 @llvm.smin.i64(i64 %.06385, i64 %41)
  br label %60

45:                                               ; preds = %38
  %46 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.5)
  br i1 %46, label %47, label %52

47:                                               ; preds = %45
  %48 = load i64, ptr %2, align 8
  %49 = call i64 @llvm.smin.i64(i64 %.07181, i64 %48)
  %50 = call i64 @llvm.smin.i64(i64 %.06186, i64 %48)
  %51 = call i64 @llvm.smin.i64(i64 %.06385, i64 %48)
  br label %60

52:                                               ; preds = %45
  %53 = call noundef zeroext i1 @_ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str.6)
  br i1 %53, label %54, label %60

54:                                               ; preds = %52
  %55 = load i64, ptr %2, align 8
  %56 = call i64 @llvm.smin.i64(i64 %.06982, i64 %55)
  %57 = call i64 @llvm.smin.i64(i64 %.087, i64 %55)
  %58 = call i64 @llvm.smin.i64(i64 %.06186, i64 %55)
  %59 = call i64 @llvm.smin.i64(i64 %.06385, i64 %55)
  br label %60

60:                                               ; preds = %23, %33, %47, %54, %52, %40, %28, %16
  %.172 = phi i64 [ %.07181, %16 ], [ %.07181, %23 ], [ %.07181, %28 ], [ %.07181, %33 ], [ %.07181, %40 ], [ %49, %47 ], [ %.07181, %54 ], [ %.07181, %52 ]
  %.170 = phi i64 [ %.06982, %16 ], [ %.06982, %23 ], [ %.06982, %28 ], [ %.06982, %33 ], [ %.06982, %40 ], [ %.06982, %47 ], [ %56, %54 ], [ %.06982, %52 ]
  %.168 = phi i64 [ %.06783, %16 ], [ %.06783, %23 ], [ %.06783, %28 ], [ %.06783, %33 ], [ %42, %40 ], [ %.06783, %47 ], [ %.06783, %54 ], [ %.06783, %52 ]
  %.166 = phi i64 [ %.06584, %16 ], [ %.06584, %23 ], [ %.06584, %28 ], [ %35, %33 ], [ %.06584, %40 ], [ %.06584, %47 ], [ %.06584, %54 ], [ %.06584, %52 ]
  %.164 = phi i64 [ %.06385, %16 ], [ %.06385, %23 ], [ %30, %28 ], [ %.06385, %33 ], [ %44, %40 ], [ %51, %47 ], [ %59, %54 ], [ %.06385, %52 ]
  %.162 = phi i64 [ %.06186, %16 ], [ %25, %23 ], [ %.06186, %28 ], [ %37, %33 ], [ %.06186, %40 ], [ %50, %47 ], [ %58, %54 ], [ %.06186, %52 ]
  %.1 = phi i64 [ %18, %16 ], [ %.087, %23 ], [ %.087, %28 ], [ %36, %33 ], [ %43, %40 ], [ %.087, %47 ], [ %57, %54 ], [ %.087, %52 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  %61 = load i64, ptr %1, align 8, !tbaa !5
  %62 = add nsw i64 %61, -1
  store i64 %62, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %61, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %60, %0
  %.071.lcssa = phi i64 [ 1000000000, %0 ], [ %.172, %60 ]
  %.069.lcssa = phi i64 [ 1000000000, %0 ], [ %.170, %60 ]
  %.067.lcssa = phi i64 [ 1000000000, %0 ], [ %.168, %60 ]
  %.065.lcssa = phi i64 [ 1000000000, %0 ], [ %.166, %60 ]
  %.063.lcssa = phi i64 [ 1000000000, %0 ], [ %.164, %60 ]
  %.061.lcssa = phi i64 [ 1000000000, %0 ], [ %.162, %60 ]
  %.0.lcssa = phi i64 [ 1000000000, %0 ], [ %.1, %60 ]
  %63 = add i64 %.061.lcssa, %.063.lcssa
  %64 = add i64 %63, %.0.lcssa
  %65 = add nsw i64 %.063.lcssa, %.065.lcssa
  %66 = call i64 @llvm.smin.i64(i64 %64, i64 %65)
  %67 = add nsw i64 %.061.lcssa, %.067.lcssa
  %68 = call i64 @llvm.smin.i64(i64 %66, i64 %67)
  %69 = add nsw i64 %.0.lcssa, %.071.lcssa
  %70 = call i64 @llvm.smin.i64(i64 %68, i64 %69)
  %71 = call i64 @llvm.smin.i64(i64 %70, i64 %.069.lcssa)
  %72 = icmp sgt i64 %71, 999999999
  %spec.store.select = select i1 %72, i64 -1, i64 %71
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %spec.store.select)
  %74 = call 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_)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #8
  ret i32 0
}

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

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

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIN9__gnu_cxx17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEvT_SA_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 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 #3 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #7

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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