; LLVM IR from DionysiosB/CodeForces :: 1500-1599 (1512E-PermutationBySum)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1

; 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 %"class.std::vector", align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::allocator", align 1
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::vector", align 8
  %14 = alloca i64, align 8
  %15 = alloca %"class.std::allocator", align 1
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i32, align 4
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %28

28:                                               ; preds = %212, %210, %0
  %29 = load i64, ptr %2, align 8, !tbaa !5
  %30 = add nsw i64 %29, -1
  store i64 %30, ptr %2, align 8, !tbaa !5
  %31 = icmp ne i64 %29, 0
  br i1 %31, label %32, label %216

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %33 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %34 = load i64, ptr %3, align 8, !tbaa !5
  %35 = add nsw i64 %34, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 -1, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %35, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %36 unwind label %42

36:                                               ; preds = %32
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 1, ptr %12, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %50, %36
  %38 = load i64, ptr %12, align 8, !tbaa !5
  %39 = load i64, ptr %3, align 8, !tbaa !5
  %40 = icmp sle i64 %38, %39
  br i1 %40, label %46, label %41

41:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %53

42:                                               ; preds = %32
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %10, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %215

46:                                               ; preds = %37
  %47 = load i64, ptr %12, align 8, !tbaa !5
  %48 = load i64, ptr %12, align 8, !tbaa !5
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %48) #5
  store i64 %47, ptr %49, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %46
  %51 = load i64, ptr %12, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %12, align 8, !tbaa !5
  br label %37, !llvm.loop !9

53:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #5
  %54 = load i64, ptr %3, align 8, !tbaa !5
  %55 = add nsw i64 %54, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 -1, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %55, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
          to label %56 unwind label %68

56:                                               ; preds = %53
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %57 = load i64, ptr %3, align 8, !tbaa !5
  store i64 %57, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %58 = load i64, ptr %5, align 8, !tbaa !5
  %59 = load i64, ptr %4, align 8, !tbaa !5
  %60 = sub nsw i64 %58, %59
  %61 = add nsw i64 %60, 1
  store i64 %61, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %62 = load i64, ptr %4, align 8, !tbaa !5
  store i64 %62, ptr %18, align 8, !tbaa !5
  br label %63

63:                                               ; preds = %136, %56
  %64 = load i64, ptr %18, align 8, !tbaa !5
  %65 = load i64, ptr %5, align 8, !tbaa !5
  %66 = icmp sle i64 %64, %65
  br i1 %66, label %72, label %67

67:                                               ; preds = %63
  store i32 7, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %139

68:                                               ; preds = %53
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %10, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %11, align 4
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %15) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %214

72:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %73 = load i64, ptr %16, align 8, !tbaa !5
  store i64 %73, ptr %20, align 8, !tbaa !5
  br label %74

74:                                               ; preds = %131, %72
  %75 = load i64, ptr %20, align 8, !tbaa !5
  %76 = icmp sge i64 %75, 1
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i32 10, ptr %19, align 4
  br label %134

78:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %79 = load i64, ptr %5, align 8, !tbaa !5
  %80 = load i64, ptr %18, align 8, !tbaa !5
  %81 = sub nsw i64 %79, %80
  %82 = add nsw i64 %81, 1
  store i64 %82, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %83 = load i64, ptr %21, align 8, !tbaa !5
  %84 = load i64, ptr %21, align 8, !tbaa !5
  %85 = add nsw i64 %84, 1
  %86 = mul nsw i64 %83, %85
  %87 = sdiv i64 %86, 2
  store i64 %87, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %88 = load i64, ptr %22, align 8, !tbaa !5
  %89 = load i64, ptr %21, align 8, !tbaa !5
  %90 = load i64, ptr %20, align 8, !tbaa !5
  %91 = load i64, ptr %21, align 8, !tbaa !5
  %92 = sub nsw i64 %90, %91
  %93 = mul nsw i64 %89, %92
  %94 = add nsw i64 %88, %93
  store i64 %94, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  %95 = load i64, ptr %21, align 8, !tbaa !5
  %96 = sub nsw i64 %95, 1
  %97 = load i64, ptr %21, align 8, !tbaa !5
  %98 = mul nsw i64 %96, %97
  %99 = sdiv i64 %98, 2
  store i64 %99, ptr %24, align 8, !tbaa !5
  %100 = load i64, ptr %6, align 8, !tbaa !5
  %101 = load i64, ptr %22, align 8, !tbaa !5
  %102 = icmp slt i64 %100, %101
  br i1 %102, label %107, label %103

103:                                              ; preds = %78
  %104 = load i64, ptr %6, align 8, !tbaa !5
  %105 = load i64, ptr %23, align 8, !tbaa !5
  %106 = icmp sgt i64 %104, %105
  br i1 %106, label %107, label %108

107:                                              ; preds = %103, %78
  store i32 10, ptr %19, align 4
  br label %128

108:                                              ; preds = %103
  %109 = load i64, ptr %6, align 8, !tbaa !5
  %110 = load i64, ptr %20, align 8, !tbaa !5
  %111 = sub nsw i64 %109, %110
  %112 = load i64, ptr %24, align 8, !tbaa !5
  %113 = icmp slt i64 %111, %112
  br i1 %113, label %114, label %115

114:                                              ; preds = %108
  store i32 12, ptr %19, align 4
  br label %128

115:                                              ; preds = %108
  %116 = load i64, ptr %20, align 8, !tbaa !5
  %117 = load i64, ptr %18, align 8, !tbaa !5
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %117) #5
  store i64 %116, ptr %118, align 8, !tbaa !5
  %119 = load i64, ptr %20, align 8, !tbaa !5
  %120 = load i64, ptr %6, align 8, !tbaa !5
  %121 = sub nsw i64 %120, %119
  store i64 %121, ptr %6, align 8, !tbaa !5
  %122 = load i64, ptr %17, align 8, !tbaa !5
  %123 = add nsw i64 %122, -1
  store i64 %123, ptr %17, align 8, !tbaa !5
  %124 = load i64, ptr %20, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %124) #5
  store i64 -1, ptr %125, align 8, !tbaa !5
  %126 = load i64, ptr %20, align 8, !tbaa !5
  %127 = sub nsw i64 %126, 1
  store i64 %127, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %19, align 4
  br label %128

128:                                              ; preds = %115, %114, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  %129 = load i32, ptr %19, align 4
  switch i32 %129, label %134 [
    i32 0, label %130
    i32 12, label %131
  ]

130:                                              ; preds = %128
  br label %131

131:                                              ; preds = %130, %128
  %132 = load i64, ptr %20, align 8, !tbaa !5
  %133 = add nsw i64 %132, -1
  store i64 %133, ptr %20, align 8, !tbaa !5
  br label %74, !llvm.loop !11

134:                                              ; preds = %128, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %18, align 8, !tbaa !5
  %138 = add nsw i64 %137, 1
  store i64 %138, ptr %18, align 8, !tbaa !5
  br label %63, !llvm.loop !12

139:                                              ; preds = %67
  %140 = load i64, ptr %6, align 8, !tbaa !5
  %141 = icmp ne i64 %140, 0
  br i1 %141, label %145, label %142

142:                                              ; preds = %139
  %143 = load i64, ptr %17, align 8, !tbaa !5
  %144 = icmp sgt i64 %143, 0
  br i1 %144, label %145, label %152

145:                                              ; preds = %142, %139
  %146 = invoke i32 @puts(ptr noundef @.str.2)
          to label %147 unwind label %148

147:                                              ; preds = %145
  store i32 2, ptr %19, align 4
  br label %210, !llvm.loop !13

148:                                              ; preds = %207, %145
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %10, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %11, align 4
  br label %213

152:                                              ; preds = %142
  store i64 1, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  store i64 1, ptr %25, align 8, !tbaa !5
  br label %153

153:                                              ; preds = %185, %152
  %154 = load i64, ptr %25, align 8, !tbaa !5
  %155 = load i64, ptr %3, align 8, !tbaa !5
  %156 = icmp sle i64 %154, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %153
  store i32 13, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  br label %188

158:                                              ; preds = %153
  %159 = load i64, ptr %25, align 8, !tbaa !5
  %160 = load i64, ptr %4, align 8, !tbaa !5
  %161 = icmp sge i64 %159, %160
  br i1 %161, label %162, label %167

162:                                              ; preds = %158
  %163 = load i64, ptr %25, align 8, !tbaa !5
  %164 = load i64, ptr %5, align 8, !tbaa !5
  %165 = icmp sle i64 %163, %164
  br i1 %165, label %166, label %167

166:                                              ; preds = %162
  br label %185

167:                                              ; preds = %162, %158
  br label %168

168:                                              ; preds = %173, %167
  %169 = load i64, ptr %16, align 8, !tbaa !5
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %169) #5
  %171 = load i64, ptr %170, align 8, !tbaa !5
  %172 = icmp slt i64 %171, 0
  br i1 %172, label %173, label %176

173:                                              ; preds = %168
  %174 = load i64, ptr %16, align 8, !tbaa !5
  %175 = add nsw i64 %174, 1
  store i64 %175, ptr %16, align 8, !tbaa !5
  br label %168, !llvm.loop !14

176:                                              ; preds = %168
  %177 = load i64, ptr %16, align 8, !tbaa !5
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %177) #5
  %179 = load i64, ptr %178, align 8, !tbaa !5
  %180 = load i64, ptr %25, align 8, !tbaa !5
  %181 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %180) #5
  store i64 %179, ptr %181, align 8, !tbaa !5
  %182 = load i64, ptr %16, align 8, !tbaa !5
  %183 = add nsw i64 %182, 1
  store i64 %183, ptr %16, align 8, !tbaa !5
  %184 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %182) #5
  store i64 -1, ptr %184, align 8, !tbaa !5
  br label %185

185:                                              ; preds = %176, %166
  %186 = load i64, ptr %25, align 8, !tbaa !5
  %187 = add nsw i64 %186, 1
  store i64 %187, ptr %25, align 8, !tbaa !5
  br label %153, !llvm.loop !15

188:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  store i64 1, ptr %26, align 8, !tbaa !5
  br label %189

189:                                              ; preds = %200, %188
  %190 = load i64, ptr %26, align 8, !tbaa !5
  %191 = load i64, ptr %3, align 8, !tbaa !5
  %192 = icmp sle i64 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 18, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %207

194:                                              ; preds = %189
  %195 = load i64, ptr %26, align 8, !tbaa !5
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %195) #5
  %197 = load i64, ptr %196, align 8, !tbaa !5
  %198 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %197)
          to label %199 unwind label %203

199:                                              ; preds = %194
  br label %200

200:                                              ; preds = %199
  %201 = load i64, ptr %26, align 8, !tbaa !5
  %202 = add nsw i64 %201, 1
  store i64 %202, ptr %26, align 8, !tbaa !5
  br label %189, !llvm.loop !16

203:                                              ; preds = %194
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %10, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %213

207:                                              ; preds = %193
  %208 = invoke i32 @puts(ptr noundef @.str.4)
          to label %209 unwind label %148

209:                                              ; preds = %207
  store i32 0, ptr %19, align 4
  br label %210

210:                                              ; preds = %209, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %211 = load i32, ptr %19, align 4
  switch i32 %211, label %223 [
    i32 0, label %212
    i32 2, label %28
  ]

212:                                              ; preds = %210
  br label %28, !llvm.loop !13

213:                                              ; preds = %203, %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %13) #5
  br label %214

214:                                              ; preds = %213, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #5
  br label %215

215:                                              ; preds = %214, %42
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  br label %218

216:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %217 = load i32, ptr %1, align 4
  ret i32 %217

218:                                              ; preds = %215
  %219 = load ptr, ptr %10, align 8
  %220 = load i32, ptr %11, align 4
  %221 = insertvalue { ptr, i32 } poison, ptr %219, 0
  %222 = insertvalue { ptr, i32 } %221, i32 %220, 1
  resume { ptr, i32 } %222

223:                                              ; preds = %210
  unreachable
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

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

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

declare i32 @puts(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 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 #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 = { 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 long", !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 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long long, std::allocator<long long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [1 x i8], align 1

; 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 i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca i64, align 8
  %11 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %12 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = add nsw i64 %13, -1
  store i64 %14, ptr %1, align 8, !tbaa !5
  %.not100 = icmp eq i64 %13, 0
  br i1 %.not100, label %._crit_edge103, label %.lr.ph102

.lr.ph102:                                        ; preds = %0, %._crit_edge99
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %15 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = add nsw i64 %16, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store i64 -1, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %17, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %18 unwind label %21

18:                                               ; preds = %.lr.ph102
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %.not5872 = icmp slt i64 %19, 1
  br i1 %.not5872, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %18
  %.lcssa = phi i64 [ %19, %18 ], [ %25, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  %20 = add nsw i64 %.lcssa, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 -1, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %11) #5
  call void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt6vectorIxSaIxEEC2EmRKxRKS0_(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %20, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %26 unwind label %38

21:                                               ; preds = %.lr.ph102
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %92

.lr.ph:                                           ; preds = %18, %.lr.ph
  %.04873 = phi i64 [ %24, %.lr.ph ], [ 1, %18 ]
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.04873) #5
  store i64 %.04873, ptr %23, align 8, !tbaa !5
  %24 = add nuw nsw i64 %.04873, 1
  %25 = load i64, ptr %2, align 8, !tbaa !5
  %.not58.not = icmp slt i64 %.04873, %25
  br i1 %.not58.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

26:                                               ; preds = %._crit_edge
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = add i64 %27, 1
  %30 = sub i64 %29, %28
  %.not6086 = icmp sgt i64 %28, %27
  br i1 %.not6086, label %._crit_edge90, label %.preheader69.preheader

.preheader69.preheader:                           ; preds = %26
  %31 = load i64, ptr %2, align 8, !tbaa !5
  br label %.preheader69

.preheader69:                                     ; preds = %.preheader69.preheader, %.thread
  %32 = phi i64 [ %67, %.thread ], [ %27, %.preheader69.preheader ]
  %.04989 = phi i64 [ %.1.lcssa, %.thread ], [ %31, %.preheader69.preheader ]
  %.05288 = phi i64 [ %68, %.thread ], [ %28, %.preheader69.preheader ]
  %.05387 = phi i64 [ %.154.lcssa, %.thread ], [ %30, %.preheader69.preheader ]
  %33 = icmp sgt i64 %.04989, 0
  br i1 %33, label %.lr.ph77, label %.thread

._crit_edge90:                                    ; preds = %.thread, %26
  %.053.lcssa = phi i64 [ %30, %26 ], [ %.154.lcssa, %.thread ]
  %34 = load i64, ptr %5, align 8, !tbaa !5
  %35 = icmp ne i64 %34, 0
  %36 = icmp sgt i64 %.053.lcssa, 0
  %or.cond = select i1 %35, i1 true, i1 %36
  br i1 %or.cond, label %._crit_edge99, label %.preheader71, !llvm.loop !11

.preheader71:                                     ; preds = %._crit_edge90
  %37 = load i64, ptr %2, align 8, !tbaa !5
  %.not6192 = icmp slt i64 %37, 1
  br i1 %.not6192, label %._crit_edge99, label %.lr.ph95

38:                                               ; preds = %._crit_edge
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  br label %92

.lr.ph77:                                         ; preds = %.preheader69, %65
  %.176 = phi i64 [ %.2, %65 ], [ %.04989, %.preheader69 ]
  %.05075 = phi i64 [ %.pre-phi, %65 ], [ %.04989, %.preheader69 ]
  %.15474 = phi i64 [ %.255, %65 ], [ %.05387, %.preheader69 ]
  %40 = load i64, ptr %4, align 8, !tbaa !5
  %41 = sub nsw i64 %40, %.05288
  %42 = add nsw i64 %41, 1
  %43 = add nsw i64 %41, 2
  %44 = mul nsw i64 %42, %43
  %45 = sdiv i64 %44, 2
  %46 = mul nsw i64 %42, %41
  %47 = sdiv i64 %46, 2
  %48 = load i64, ptr %5, align 8, !tbaa !5
  %49 = icmp slt i64 %48, %45
  br i1 %49, label %.thread, label %50

50:                                               ; preds = %.lr.ph77
  %51 = sub nsw i64 %.05075, %42
  %52 = mul nsw i64 %51, %42
  %53 = add nsw i64 %45, %52
  %54 = icmp sgt i64 %48, %53
  br i1 %54, label %.thread, label %55

55:                                               ; preds = %50
  %56 = sub nsw i64 %48, %.05075
  %57 = icmp slt i64 %56, %47
  br i1 %57, label %._crit_edge107, label %58

._crit_edge107:                                   ; preds = %55
  %.pre108 = add nsw i64 %.05075, -1
  br label %65

58:                                               ; preds = %55
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.05288) #5
  store i64 %.05075, ptr %59, align 8, !tbaa !5
  %60 = load i64, ptr %5, align 8, !tbaa !5
  %61 = sub nsw i64 %60, %.05075
  store i64 %61, ptr %5, align 8, !tbaa !5
  %62 = add nsw i64 %.15474, -1
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.05075) #5
  store i64 -1, ptr %63, align 8, !tbaa !5
  %64 = add nsw i64 %.05075, -1
  br label %65

65:                                               ; preds = %._crit_edge107, %58
  %.pre-phi = phi i64 [ %.pre108, %._crit_edge107 ], [ %64, %58 ]
  %.255 = phi i64 [ %.15474, %._crit_edge107 ], [ %62, %58 ]
  %.2 = phi i64 [ %.176, %._crit_edge107 ], [ %64, %58 ]
  %66 = icmp sgt i64 %.05075, 1
  br i1 %66, label %.lr.ph77, label %..thread.loopexit_crit_edge, !llvm.loop !12

..thread.loopexit_crit_edge:                      ; preds = %65
  %.pre.pre = load i64, ptr %4, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %50, %.lr.ph77, %..thread.loopexit_crit_edge, %.preheader69
  %67 = phi i64 [ %32, %.preheader69 ], [ %.pre.pre, %..thread.loopexit_crit_edge ], [ %40, %.lr.ph77 ], [ %40, %50 ]
  %.154.lcssa = phi i64 [ %.05387, %.preheader69 ], [ %.255, %..thread.loopexit_crit_edge ], [ %.15474, %.lr.ph77 ], [ %.15474, %50 ]
  %.1.lcssa = phi i64 [ %.04989, %.preheader69 ], [ %.2, %..thread.loopexit_crit_edge ], [ %.176, %.lr.ph77 ], [ %.176, %50 ]
  %68 = add nsw i64 %.05288, 1
  %.not60.not = icmp slt i64 %.05288, %67
  br i1 %.not60.not, label %.preheader69, label %._crit_edge90, !llvm.loop !13

.preheader70:                                     ; preds = %81
  %.not6296 = icmp slt i64 %82, 1
  br i1 %.not6296, label %._crit_edge99, label %.lr.ph98

.lr.ph95:                                         ; preds = %.preheader71, %81
  %69 = phi i64 [ %82, %81 ], [ %37, %.preheader71 ]
  %.04594 = phi i64 [ %83, %81 ], [ 1, %.preheader71 ]
  %.493 = phi i64 [ %.6, %81 ], [ 1, %.preheader71 ]
  %70 = load i64, ptr %3, align 8, !tbaa !5
  %.not63 = icmp slt i64 %.04594, %70
  %71 = load i64, ptr %4, align 8
  %.not64 = icmp sgt i64 %.04594, %71
  %or.cond65 = select i1 %.not63, i1 true, i1 %.not64
  br i1 %or.cond65, label %.preheader, label %81

.preheader:                                       ; preds = %.lr.ph95, %.preheader
  %.5 = phi i64 [ %75, %.preheader ], [ %.493, %.lr.ph95 ]
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.5) #5
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = icmp slt i64 %73, 0
  %75 = add nsw i64 %.5, 1
  br i1 %74, label %.preheader, label %76, !llvm.loop !14

76:                                               ; preds = %.preheader
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.5) #5
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.04594) #5
  store i64 %78, ptr %79, align 8, !tbaa !5
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.5) #5
  store i64 -1, ptr %80, align 8, !tbaa !5
  %.pre105 = load i64, ptr %2, align 8, !tbaa !5
  br label %81

81:                                               ; preds = %.lr.ph95, %76
  %82 = phi i64 [ %.pre105, %76 ], [ %69, %.lr.ph95 ]
  %.6 = phi i64 [ %75, %76 ], [ %.493, %.lr.ph95 ]
  %83 = add nuw nsw i64 %.04594, 1
  %.not61.not = icmp slt i64 %.04594, %82
  br i1 %.not61.not, label %.lr.ph95, label %.preheader70, !llvm.loop !15

.lr.ph98:                                         ; preds = %.preheader70, %.lr.ph98
  %.097 = phi i64 [ %87, %.lr.ph98 ], [ 1, %.preheader70 ]
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.097) #5
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %85)
  %87 = add nuw nsw i64 %.097, 1
  %88 = load i64, ptr %2, align 8, !tbaa !5
  %.not62.not = icmp slt i64 %.097, %88
  br i1 %.not62.not, label %.lr.ph98, label %._crit_edge99, !llvm.loop !16

._crit_edge99:                                    ; preds = %.lr.ph98, %.preheader70, %.preheader71, %._crit_edge90
  %.str.4.sink = phi ptr [ @.str.2, %._crit_edge90 ], [ @.str.4, %.preheader71 ], [ @.str.4, %.preheader70 ], [ @.str.4, %.lr.ph98 ]
  %89 = call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.4.sink)
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @_ZNSt6vectorIxSaIxEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %90 = load i64, ptr %1, align 8, !tbaa !5
  %91 = add nsw i64 %90, -1
  store i64 %91, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %90, 0
  br i1 %.not, label %._crit_edge103, label %.lr.ph102

92:                                               ; preds = %38, %21
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn

._crit_edge103:                                   ; preds = %._crit_edge99, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIxEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIxSaIxEEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIxED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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


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