; LLVM IR from eyangch/competitive-programming :: USACOtraining/3.1 (agrinet)

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %24 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %25 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %26 = getelementptr i8, ptr %25, i64 -24
  %27 = load i64, ptr %26, align 8
  %28 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %27
  %29 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %28, ptr noundef null)
  %30 = load ptr, ptr @stdin, align 8, !tbaa !8
  %31 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %30)
  %32 = load ptr, ptr @stdout, align 8, !tbaa !8
  %33 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %32)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %35 = load i32, ptr %2, align 4, !tbaa !11
  %36 = zext i32 %35 to i64
  %37 = load i32, ptr %2, align 4, !tbaa !11
  %38 = zext i32 %37 to i64
  %39 = call ptr @llvm.stacksave.p0()
  store ptr %39, ptr %3, align 8
  %40 = mul nuw i64 %36, %38
  %41 = alloca i32, i64 %40, align 16
  store i64 %36, ptr %4, align 8
  store i64 %38, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !11
  br label %42

42:                                               ; preds = %66, %0
  %43 = load i32, ptr %6, align 4, !tbaa !11
  %44 = load i32, ptr %2, align 4, !tbaa !11
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %48

48:                                               ; preds = %62, %47
  %49 = load i32, ptr %8, align 4, !tbaa !11
  %50 = load i32, ptr %2, align 4, !tbaa !11
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %65

53:                                               ; preds = %48
  %54 = load i32, ptr %6, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = mul nsw i64 %55, %38
  %57 = getelementptr inbounds i32, ptr %41, i64 %56
  %58 = load i32, ptr %8, align 4, !tbaa !11
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds i32, ptr %57, i64 %59
  %61 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %60)
  br label %62

62:                                               ; preds = %53
  %63 = load i32, ptr %8, align 4, !tbaa !11
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %8, align 4, !tbaa !11
  br label %48, !llvm.loop !13

65:                                               ; preds = %52
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %6, align 4, !tbaa !11
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !11
  br label %42, !llvm.loop !15

69:                                               ; preds = %46
  %70 = load i32, ptr %2, align 4, !tbaa !11
  %71 = zext i32 %70 to i64
  %72 = alloca i8, i64 %71, align 16
  store i64 %71, ptr %9, align 8
  %73 = load i32, ptr %2, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = alloca i32, i64 %74, align 16
  store i64 %74, ptr %10, align 8
  %76 = load i32, ptr %2, align 4, !tbaa !11
  %77 = zext i32 %76 to i64
  %78 = alloca i32, i64 %77, align 16
  store i64 %77, ptr %11, align 8
  %79 = load i32, ptr %2, align 4, !tbaa !11
  %80 = zext i32 %79 to i64
  %81 = alloca %"class.std::vector", i64 %80, align 16
  store i64 %80, ptr %12, align 8
  %82 = icmp eq i64 %80, 0
  br i1 %82, label %89, label %83

83:                                               ; preds = %69
  %84 = getelementptr inbounds %"class.std::vector", ptr %81, i64 %80
  br label %85

85:                                               ; preds = %85, %83
  %86 = phi ptr [ %81, %83 ], [ %87, %85 ]
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %86) #7
  %87 = getelementptr inbounds %"class.std::vector", ptr %86, i64 1
  %88 = icmp eq ptr %87, %84
  br i1 %88, label %89, label %85

89:                                               ; preds = %85, %69
  %90 = load i32, ptr %2, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds i8, ptr %72, i64 %91
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 0, ptr %13, align 1, !tbaa !16
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %72, ptr noundef %92, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %93 unwind label %109

93:                                               ; preds = %89
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  %94 = load i32, ptr %2, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %78, i64 %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 -1, ptr %16, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %78, ptr noundef %96, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %97 unwind label %113

97:                                               ; preds = %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  %98 = load i32, ptr %2, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %75, i64 %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 2147483647, ptr %17, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %75, ptr noundef %100, ptr noundef nonnull align 4 dereferenceable(4) %17)
          to label %101 unwind label %117

101:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  %102 = getelementptr inbounds i8, ptr %72, i64 0
  store i8 1, ptr %102, align 16, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %103

103:                                              ; preds = %204, %101
  %104 = load i32, ptr %20, align 4, !tbaa !11
  %105 = load i32, ptr %2, align 4, !tbaa !11
  %106 = sub nsw i32 %105, 1
  %107 = icmp slt i32 %104, %106
  br i1 %107, label %121, label %108

108:                                              ; preds = %103
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %207

109:                                              ; preds = %89
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %14, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %226

113:                                              ; preds = %93
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %14, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %226

117:                                              ; preds = %97
  %118 = landingpad { ptr, i32 }
          cleanup
  %119 = extractvalue { ptr, i32 } %118, 0
  store ptr %119, ptr %14, align 8
  %120 = extractvalue { ptr, i32 } %118, 1
  store i32 %120, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %226

121:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 2147483647, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %122

122:                                              ; preds = %183, %121
  %123 = load i32, ptr %23, align 4, !tbaa !11
  %124 = load i32, ptr %2, align 4, !tbaa !11
  %125 = icmp slt i32 %123, %124
  br i1 %125, label %127, label %126

126:                                              ; preds = %122
  store i32 11, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %186

127:                                              ; preds = %122
  %128 = load i32, ptr %23, align 4, !tbaa !11
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i8, ptr %72, i64 %129
  %131 = load i8, ptr %130, align 1, !tbaa !16, !range !18, !noundef !19
  %132 = trunc i8 %131 to i1
  br i1 %132, label %163, label %133

133:                                              ; preds = %127
  %134 = load i32, ptr %18, align 4, !tbaa !11
  %135 = sext i32 %134 to i64
  %136 = mul nsw i64 %135, %38
  %137 = getelementptr inbounds i32, ptr %41, i64 %136
  %138 = load i32, ptr %23, align 4, !tbaa !11
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds i32, ptr %137, i64 %139
  %141 = load i32, ptr %140, align 4, !tbaa !11
  %142 = load i32, ptr %23, align 4, !tbaa !11
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds i32, ptr %75, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = icmp slt i32 %141, %145
  br i1 %146, label %147, label %163

147:                                              ; preds = %133
  %148 = load i32, ptr %18, align 4, !tbaa !11
  %149 = sext i32 %148 to i64
  %150 = mul nsw i64 %149, %38
  %151 = getelementptr inbounds i32, ptr %41, i64 %150
  %152 = load i32, ptr %23, align 4, !tbaa !11
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds i32, ptr %151, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = load i32, ptr %23, align 4, !tbaa !11
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds i32, ptr %75, i64 %157
  store i32 %155, ptr %158, align 4, !tbaa !11
  %159 = load i32, ptr %18, align 4, !tbaa !11
  %160 = load i32, ptr %23, align 4, !tbaa !11
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds i32, ptr %78, i64 %161
  store i32 %159, ptr %162, align 4, !tbaa !11
  br label %163

163:                                              ; preds = %147, %133, %127
  %164 = load i32, ptr %23, align 4, !tbaa !11
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds i8, ptr %72, i64 %165
  %167 = load i8, ptr %166, align 1, !tbaa !16, !range !18, !noundef !19
  %168 = trunc i8 %167 to i1
  br i1 %168, label %182, label %169

169:                                              ; preds = %163
  %170 = load i32, ptr %23, align 4, !tbaa !11
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds i32, ptr %75, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !11
  %174 = load i32, ptr %21, align 4, !tbaa !11
  %175 = icmp slt i32 %173, %174
  br i1 %175, label %176, label %182

176:                                              ; preds = %169
  %177 = load i32, ptr %23, align 4, !tbaa !11
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds i32, ptr %75, i64 %178
  %180 = load i32, ptr %179, align 4, !tbaa !11
  store i32 %180, ptr %21, align 4, !tbaa !11
  %181 = load i32, ptr %23, align 4, !tbaa !11
  store i32 %181, ptr %22, align 4, !tbaa !11
  br label %182

182:                                              ; preds = %176, %169, %163
  br label %183

183:                                              ; preds = %182
  %184 = load i32, ptr %23, align 4, !tbaa !11
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %23, align 4, !tbaa !11
  br label %122, !llvm.loop !20

186:                                              ; preds = %126
  %187 = load i32, ptr %22, align 4, !tbaa !11
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %78, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !11
  %191 = sext i32 %190 to i64
  %192 = mul nsw i64 %191, %38
  %193 = getelementptr inbounds i32, ptr %41, i64 %192
  %194 = load i32, ptr %22, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %193, i64 %195
  %197 = load i32, ptr %196, align 4, !tbaa !11
  %198 = load i32, ptr %19, align 4, !tbaa !11
  %199 = add nsw i32 %198, %197
  store i32 %199, ptr %19, align 4, !tbaa !11
  %200 = load i32, ptr %22, align 4, !tbaa !11
  store i32 %200, ptr %18, align 4, !tbaa !11
  %201 = load i32, ptr %22, align 4, !tbaa !11
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i8, ptr %72, i64 %202
  store i8 1, ptr %203, align 1, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %204

204:                                              ; preds = %186
  %205 = load i32, ptr %20, align 4, !tbaa !11
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %20, align 4, !tbaa !11
  br label %103, !llvm.loop !21

207:                                              ; preds = %108
  %208 = load i32, ptr %19, align 4, !tbaa !11
  %209 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %208)
          to label %210 unwind label %215

210:                                              ; preds = %207
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %209, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %212 unwind label %215

212:                                              ; preds = %210
  store i32 0, ptr %1, align 4
  store i32 1, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  %213 = getelementptr inbounds %"class.std::vector", ptr %81, i64 %80
  %214 = icmp eq ptr %81, %213
  br i1 %214, label %223, label %219

215:                                              ; preds = %210, %207
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %14, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %226

219:                                              ; preds = %219, %212
  %220 = phi ptr [ %213, %212 ], [ %221, %219 ]
  %221 = getelementptr inbounds %"class.std::vector", ptr %220, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %221) #7
  %222 = icmp eq ptr %221, %81
  br i1 %222, label %223, label %219

223:                                              ; preds = %219, %212
  %224 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %224)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %225 = load i32, ptr %1, align 4
  ret i32 %225

226:                                              ; preds = %215, %117, %113, %109
  %227 = getelementptr inbounds %"class.std::vector", ptr %81, i64 %80
  %228 = icmp eq ptr %81, %227
  br i1 %228, label %233, label %229

229:                                              ; preds = %229, %226
  %230 = phi ptr [ %227, %226 ], [ %231, %229 ]
  %231 = getelementptr inbounds %"class.std::vector", ptr %230, i64 -1
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %231) #7
  %232 = icmp eq ptr %231, %81
  br i1 %232, label %233, label %229

233:                                              ; preds = %229, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %234

234:                                              ; preds = %233
  %235 = load ptr, ptr %14, align 8
  %236 = load i32, ptr %15, align 4
  %237 = insertvalue { ptr, i32 } poison, ptr %235, 0
  %238 = insertvalue { ptr, i32 } %237, i32 %236, 1
  resume { ptr, i32 } %238
}

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

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

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

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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

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

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


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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i8, align 1
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %6 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %7 = getelementptr i8, ptr %6, i64 -24
  %8 = load i64, ptr %7, align 8
  %9 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %8
  %10 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %9, ptr noundef null)
  %11 = load ptr, ptr @stdin, align 8, !tbaa !8
  %12 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %11)
  %13 = load ptr, ptr @stdout, align 8, !tbaa !8
  %14 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %13)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %16 = load i32, ptr %1, align 4, !tbaa !11
  %17 = zext i32 %16 to i64
  %18 = call ptr @llvm.stacksave.p0()
  %19 = mul nuw i64 %17, %17
  %20 = alloca i32, i64 %19, align 16
  %.pr = load i32, ptr %1, align 4, !tbaa !11
  %21 = icmp sgt i32 %.pr, 0
  br i1 %21, label %.preheader55, label %._crit_edge59

.preheader55:                                     ; preds = %0, %._crit_edge
  %22 = phi i32 [ %32, %._crit_edge ], [ %.pr, %0 ]
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %._crit_edge ], [ 0, %0 ]
  %23 = icmp sgt i32 %22, 0
  br i1 %23, label %.lr.ph, label %.preheader55.._crit_edge_crit_edge

.preheader55.._crit_edge_crit_edge:               ; preds = %.preheader55
  %.pre85 = sext i32 %22 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %.preheader55
  %24 = mul nuw nsw i64 %indvars.iv78, %17
  %25 = getelementptr inbounds i32, ptr %20, i64 %24
  br label %34

._crit_edge59:                                    ; preds = %._crit_edge, %0
  %.lcssa56 = phi i32 [ %.pr, %0 ], [ %32, %._crit_edge ]
  %26 = zext i32 %.lcssa56 to i64
  %27 = alloca i8, i64 %26, align 16
  %28 = alloca i32, i64 %26, align 16
  %29 = alloca i32, i64 %26, align 16
  %30 = alloca %"class.std::vector", i64 %26, align 16
  %31 = icmp eq i32 %.lcssa56, 0
  br i1 %31, label %.loopexit54, label %40

._crit_edge:                                      ; preds = %34, %.preheader55.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre85, %.preheader55.._crit_edge_crit_edge ], [ %38, %34 ]
  %32 = phi i32 [ %22, %.preheader55.._crit_edge_crit_edge ], [ %37, %34 ]
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %33 = icmp slt i64 %indvars.iv.next79, %.pre-phi
  br i1 %33, label %.preheader55, label %._crit_edge59, !llvm.loop !13

34:                                               ; preds = %.lr.ph, %34
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %34 ]
  %35 = getelementptr inbounds i32, ptr %25, i64 %indvars.iv
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %37 = load i32, ptr %1, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = icmp slt i64 %indvars.iv.next, %38
  br i1 %39, label %34, label %._crit_edge, !llvm.loop !16

40:                                               ; preds = %._crit_edge59
  %41 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %26
  br label %42

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

.loopexit54.loopexit:                             ; preds = %42
  %.pre = load i32, ptr %1, align 4, !tbaa !11
  %46 = sext i32 %.pre to i64
  br label %.loopexit54

.loopexit54:                                      ; preds = %.loopexit54.loopexit, %._crit_edge59
  %47 = phi i64 [ %46, %.loopexit54.loopexit ], [ 0, %._crit_edge59 ]
  %48 = getelementptr inbounds i8, ptr %27, i64 %47
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #8
  store i8 0, ptr %2, align 1, !tbaa !17
  invoke void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %27, ptr noundef nonnull %48, ptr noundef nonnull align 1 dereferenceable(1) %2)
          to label %49 unwind label %93

49:                                               ; preds = %.loopexit54
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #8
  %50 = load i32, ptr %1, align 4, !tbaa !11
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %29, i64 %51
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #8
  store i32 -1, ptr %3, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %29, ptr noundef nonnull %52, ptr noundef nonnull align 4 dereferenceable(4) %3)
          to label %53 unwind label %95

53:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  %54 = load i32, ptr %1, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %28, i64 %55
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #8
  store i32 2147483647, ptr %4, align 4, !tbaa !11
  invoke void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %28, ptr noundef nonnull %56, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %57 unwind label %97

57:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  store i8 1, ptr %27, align 16, !tbaa !17
  %58 = load i32, ptr %1, align 4, !tbaa !11
  %59 = icmp sgt i32 %58, 1
  br i1 %59, label %.preheader53.us.preheader, label %._crit_edge70

.preheader53.us.preheader:                        ; preds = %57
  %wide.trip.count = zext nneg i32 %58 to i64
  %60 = add nsw i32 %58, -2
  br label %.preheader53.us

.preheader53.us:                                  ; preds = %.preheader53.us.preheader, %._crit_edge65.us
  %.03669.us = phi i32 [ %91, %._crit_edge65.us ], [ 0, %.preheader53.us.preheader ]
  %.03768.us = phi i32 [ %89, %._crit_edge65.us ], [ 0, %.preheader53.us.preheader ]
  %.03867.us = phi i32 [ %.1.us, %._crit_edge65.us ], [ 0, %.preheader53.us.preheader ]
  %61 = sext i32 %.03867.us to i64
  %62 = mul nsw i64 %61, %17
  %63 = getelementptr inbounds i32, ptr %20, i64 %62
  br label %64

64:                                               ; preds = %.preheader53.us, %80
  %indvars.iv81 = phi i64 [ 0, %.preheader53.us ], [ %indvars.iv.next82, %80 ]
  %.03362.us = phi i32 [ 0, %.preheader53.us ], [ %.1.us, %80 ]
  %.03461.us = phi i32 [ 2147483647, %.preheader53.us ], [ %.135.us, %80 ]
  %65 = getelementptr inbounds i8, ptr %27, i64 %indvars.iv81
  %66 = load i8, ptr %65, align 1, !tbaa !17, !range !19, !noundef !20
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %80, label %68

68:                                               ; preds = %64
  %69 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv81
  %70 = load i32, ptr %69, align 4, !tbaa !11
  %71 = getelementptr inbounds i32, ptr %28, i64 %indvars.iv81
  %72 = load i32, ptr %71, align 4, !tbaa !11
  %73 = icmp slt i32 %70, %72
  br i1 %73, label %74, label %76

74:                                               ; preds = %68
  store i32 %70, ptr %71, align 4, !tbaa !11
  %75 = getelementptr inbounds i32, ptr %29, i64 %indvars.iv81
  store i32 %.03867.us, ptr %75, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %74, %68
  %77 = phi i32 [ %70, %74 ], [ %72, %68 ]
  %78 = icmp slt i32 %77, %.03461.us
  %spec.select.us = call i32 @llvm.smin.i32(i32 %77, i32 %.03461.us)
  %79 = trunc nuw nsw i64 %indvars.iv81 to i32
  %spec.select50.us = select i1 %78, i32 %79, i32 %.03362.us
  br label %80

80:                                               ; preds = %76, %64
  %.135.us = phi i32 [ %spec.select.us, %76 ], [ %.03461.us, %64 ]
  %.1.us = phi i32 [ %spec.select50.us, %76 ], [ %.03362.us, %64 ]
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next82, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge65.us, label %64, !llvm.loop !21

._crit_edge65.us:                                 ; preds = %80
  %81 = sext i32 %.1.us to i64
  %82 = getelementptr inbounds i32, ptr %29, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !11
  %84 = sext i32 %83 to i64
  %85 = mul nsw i64 %84, %17
  %86 = getelementptr inbounds i32, ptr %20, i64 %85
  %87 = getelementptr inbounds i32, ptr %86, i64 %81
  %88 = load i32, ptr %87, align 4, !tbaa !11
  %89 = add nsw i32 %88, %.03768.us
  %90 = getelementptr inbounds i8, ptr %27, i64 %81
  store i8 1, ptr %90, align 1, !tbaa !17
  %91 = add nuw nsw i32 %.03669.us, 1
  %exitcond84.not = icmp eq i32 %.03669.us, %60
  br i1 %exitcond84.not, label %._crit_edge70, label %.preheader53.us, !llvm.loop !22

._crit_edge70:                                    ; preds = %._crit_edge65.us, %57
  %.037.lcssa = phi i32 [ 0, %57 ], [ %89, %._crit_edge65.us ]
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.037.lcssa)
          to label %99 unwind label %103

93:                                               ; preds = %.loopexit54
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #8
  br label %108

95:                                               ; preds = %49
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #8
  br label %108

97:                                               ; preds = %53
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #8
  br label %108

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

101:                                              ; preds = %99
  br i1 %31, label %.loopexit, label %.preheader.preheader

.preheader.preheader:                             ; preds = %101
  %102 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %26
  br label %.preheader

103:                                              ; preds = %99, %._crit_edge70
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %108

.preheader:                                       ; preds = %.preheader.preheader, %.preheader
  %105 = phi ptr [ %106, %.preheader ], [ %102, %.preheader.preheader ]
  %106 = getelementptr inbounds i8, ptr %105, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %106) #8
  %107 = icmp eq ptr %106, %30
  br i1 %107, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %101
  call void @llvm.stackrestore.p0(ptr %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

108:                                              ; preds = %103, %97, %95, %93
  %.pn = phi { ptr, i32 } [ %104, %103 ], [ %98, %97 ], [ %96, %95 ], [ %94, %93 ]
  br i1 %31, label %.loopexit52, label %.preheader51.preheader

.preheader51.preheader:                           ; preds = %108
  %109 = getelementptr inbounds %"class.std::vector", ptr %30, i64 %26
  br label %.preheader51

.preheader51:                                     ; preds = %.preheader51.preheader, %.preheader51
  %110 = phi ptr [ %111, %.preheader51 ], [ %109, %.preheader51.preheader ]
  %111 = getelementptr inbounds i8, ptr %110, i64 -24
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %111) #8
  %112 = icmp eq ptr %111, %30
  br i1 %112, label %.loopexit52, label %.preheader51

.loopexit52:                                      ; preds = %.preheader51, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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

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

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) 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) #3

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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 #6 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 nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind willreturn }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !10, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.unswitch.partial.disable"}
!16 = distinct !{!16, !14}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !10, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = distinct !{!21, !14}
!22 = distinct !{!22, !14}


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