; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/386 Division 2/Problem G (G)

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

@n = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@p = external dso_local global [200100 x i32], align 16
@a = external dso_local global [200100 x i32], align 16
@out = external dso_local global [200100 x i32], align 16
@l = external dso_local global [200100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @t, ptr noundef @k)
  store i32 -1, ptr getelementptr inbounds ([200100 x i32], ptr @p, i64 0, i64 1), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @l, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 2, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %46, %0
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load i32, ptr @t, align 4, !tbaa !5
  %21 = icmp sle i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %49

23:                                               ; preds = %18
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %25
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %42, %23
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = icmp slt i32 %29, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %28
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %45

36:                                               ; preds = %28
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %40 = load i32, ptr %3, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %3, align 4, !tbaa !5
  store i32 %40, ptr %7, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 4 dereferenceable(4) %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %42

42:                                               ; preds = %36
  %43 = load i32, ptr %6, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !9

45:                                               ; preds = %35
  br label %46

46:                                               ; preds = %45
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %4, align 4, !tbaa !5
  br label %18, !llvm.loop !11

49:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %95, %49
  %51 = load i32, ptr %8, align 4, !tbaa !5
  %52 = load i32, ptr @t, align 4, !tbaa !5
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %98

55:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %56

56:                                               ; preds = %91, %55
  %57 = load i32, ptr %9, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = load i32, ptr %8, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %60
  %62 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #5
  %63 = icmp ult i64 %58, %62
  br i1 %63, label %65, label %64

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

65:                                               ; preds = %56
  %66 = load i32, ptr %8, align 4, !tbaa !5
  %67 = sub nsw i32 %66, 1
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %68
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #5
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = load i32, ptr %8, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %73
  %75 = load i32, ptr %9, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %76) #5
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %79
  store i32 %71, ptr %80, align 4, !tbaa !5
  %81 = load i32, ptr %8, align 4, !tbaa !5
  %82 = sub nsw i32 %81, 1
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %83
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef 0) #5
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [200100 x i32], ptr @out, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %88, align 4, !tbaa !5
  br label %91

91:                                               ; preds = %65
  %92 = load i32, ptr %9, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %9, align 4, !tbaa !5
  br label %56, !llvm.loop !12

94:                                               ; preds = %64
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %8, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %8, align 4, !tbaa !5
  br label %50, !llvm.loop !13

98:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %114, %98
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = load i32, ptr @n, align 4, !tbaa !5
  %102 = icmp sle i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 14, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %117

104:                                              ; preds = %99
  %105 = load i32, ptr %11, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [200100 x i32], ptr @out, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %113

110:                                              ; preds = %104
  %111 = load i32, ptr %10, align 4, !tbaa !5
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %10, align 4, !tbaa !5
  br label %113

113:                                              ; preds = %110, %104
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %11, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %11, align 4, !tbaa !5
  br label %99, !llvm.loop !14

117:                                              ; preds = %103
  %118 = load i32, ptr %10, align 4, !tbaa !5
  %119 = load i32, ptr @k, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %121, label %123

121:                                              ; preds = %117
  %122 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %243

123:                                              ; preds = %117
  %124 = load i32, ptr %10, align 4, !tbaa !5
  %125 = load i32, ptr @k, align 4, !tbaa !5
  %126 = icmp sgt i32 %124, %125
  br i1 %126, label %127, label %192

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %128 = load i32, ptr @t, align 4, !tbaa !5
  store i32 %128, ptr %12, align 4, !tbaa !5
  br label %129

129:                                              ; preds = %188, %127
  %130 = load i32, ptr %12, align 4, !tbaa !5
  %131 = icmp sgt i32 %130, 1
  br i1 %131, label %132, label %136

132:                                              ; preds = %129
  %133 = load i32, ptr %10, align 4, !tbaa !5
  %134 = load i32, ptr @k, align 4, !tbaa !5
  %135 = icmp sgt i32 %133, %134
  br label %136

136:                                              ; preds = %132, %129
  %137 = phi i1 [ false, %129 ], [ %135, %132 ]
  br i1 %137, label %139, label %138

138:                                              ; preds = %136
  store i32 17, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %191

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 1, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 1, ptr %14, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %163, %139
  %141 = load i32, ptr %13, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = load i32, ptr %12, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %144
  %146 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %145) #5
  %147 = icmp ult i64 %142, %146
  br i1 %147, label %148, label %161

148:                                              ; preds = %140
  %149 = load i32, ptr %14, align 4, !tbaa !5
  %150 = sext i32 %149 to i64
  %151 = load i32, ptr %12, align 4, !tbaa !5
  %152 = sub nsw i32 %151, 1
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %153
  %155 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %154) #5
  %156 = icmp ult i64 %150, %155
  br i1 %156, label %157, label %161

157:                                              ; preds = %148
  %158 = load i32, ptr %10, align 4, !tbaa !5
  %159 = load i32, ptr @k, align 4, !tbaa !5
  %160 = icmp sgt i32 %158, %159
  br label %161

161:                                              ; preds = %157, %148, %140
  %162 = phi i1 [ false, %148 ], [ false, %140 ], [ %160, %157 ]
  br i1 %162, label %163, label %187

163:                                              ; preds = %161
  %164 = load i32, ptr %12, align 4, !tbaa !5
  %165 = sub nsw i32 %164, 1
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %166
  %168 = load i32, ptr %14, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %167, i64 noundef %169) #5
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load i32, ptr %12, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %173
  %175 = load i32, ptr %13, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %174, i64 noundef %176) #5
  %178 = load i32, ptr %177, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %179
  store i32 %171, ptr %180, align 4, !tbaa !5
  %181 = load i32, ptr %13, align 4, !tbaa !5
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %13, align 4, !tbaa !5
  %183 = load i32, ptr %14, align 4, !tbaa !5
  %184 = add nsw i32 %183, 1
  store i32 %184, ptr %14, align 4, !tbaa !5
  %185 = load i32, ptr %10, align 4, !tbaa !5
  %186 = add nsw i32 %185, -1
  store i32 %186, ptr %10, align 4, !tbaa !5
  br label %140, !llvm.loop !15

187:                                              ; preds = %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %188

188:                                              ; preds = %187
  %189 = load i32, ptr %12, align 4, !tbaa !5
  %190 = add nsw i32 %189, -1
  store i32 %190, ptr %12, align 4, !tbaa !5
  br label %129, !llvm.loop !16

191:                                              ; preds = %138
  br label %192

192:                                              ; preds = %191, %123
  %193 = load i32, ptr %10, align 4, !tbaa !5
  %194 = load i32, ptr @k, align 4, !tbaa !5
  %195 = icmp ne i32 %193, %194
  br i1 %195, label %196, label %198

196:                                              ; preds = %192
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %243

198:                                              ; preds = %192
  %199 = load i32, ptr @n, align 4, !tbaa !5
  %200 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %199)
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 1, ptr %15, align 4, !tbaa !5
  br label %201

201:                                              ; preds = %239, %198
  %202 = load i32, ptr %15, align 4, !tbaa !5
  %203 = load i32, ptr @t, align 4, !tbaa !5
  %204 = icmp sle i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 22, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %242

206:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %207

207:                                              ; preds = %235, %206
  %208 = load i32, ptr %16, align 4, !tbaa !5
  %209 = sext i32 %208 to i64
  %210 = load i32, ptr %15, align 4, !tbaa !5
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %211
  %213 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %212) #5
  %214 = icmp ult i64 %209, %213
  br i1 %214, label %216, label %215

215:                                              ; preds = %207
  store i32 25, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %238

216:                                              ; preds = %207
  %217 = load i32, ptr %15, align 4, !tbaa !5
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %218
  %220 = load i32, ptr %16, align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %219, i64 noundef %221) #5
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %224 = load i32, ptr %15, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %225
  %227 = load i32, ptr %16, align 4, !tbaa !5
  %228 = sext i32 %227 to i64
  %229 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %226, i64 noundef %228) #5
  %230 = load i32, ptr %229, align 4, !tbaa !5
  %231 = sext i32 %230 to i64
  %232 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %231
  %233 = load i32, ptr %232, align 4, !tbaa !5
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.5, i32 noundef %223, i32 noundef %233)
  br label %235

235:                                              ; preds = %216
  %236 = load i32, ptr %16, align 4, !tbaa !5
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %16, align 4, !tbaa !5
  br label %207, !llvm.loop !17

238:                                              ; preds = %215
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %15, align 4, !tbaa !5
  %241 = add nsw i32 %240, 1
  store i32 %241, ptr %15, align 4, !tbaa !5
  br label %201, !llvm.loop !18

242:                                              ; preds = %205
  store i32 0, ptr %1, align 4
  store i32 1, ptr %5, align 4
  br label %243

243:                                              ; preds = %242, %196, %121
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  %244 = load i32, ptr %1, align 4
  ret i32 %244
}

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

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

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

; 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 noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

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

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 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 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !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<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@n = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@p = external dso_local local_unnamed_addr global [200100 x i32], align 16
@a = external dso_local global [200100 x i32], align 16
@out = external dso_local local_unnamed_addr global [200100 x i32], align 16
@l = external dso_local global [200100 x %"class.std::vector"], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @t, ptr noundef nonnull @k)
  store i32 -1, ptr getelementptr inbounds (i8, ptr @p, i64 4), align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  store i32 1, ptr %1, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) @l, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %.not80 = icmp slt i32 %4, 1
  br i1 %.not80, label %.preheader75, label %.lr.ph84

.preheader77:                                     ; preds = %._crit_edge
  %.not6788 = icmp slt i32 %10, 1
  br i1 %.not6788, label %.preheader75, label %.preheader76

.lr.ph84:                                         ; preds = %0, %._crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %._crit_edge ], [ 1, %0 ]
  %.05981 = phi i32 [ %.160.lcssa, %._crit_edge ], [ 2, %0 ]
  %5 = getelementptr inbounds [200100 x i32], ptr @a, i64 0, i64 %indvars.iv
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %5)
  %7 = load i32, ptr %5, align 4, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph84
  %9 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %indvars.iv
  br label %12

._crit_edge:                                      ; preds = %12, %.lr.ph84
  %.160.lcssa = phi i32 [ %.05981, %.lr.ph84 ], [ %13, %12 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = load i32, ptr @t, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %.not.not = icmp slt i64 %indvars.iv, %11
  br i1 %.not.not, label %.lr.ph84, label %.preheader77, !llvm.loop !9

12:                                               ; preds = %.lr.ph, %12
  %.05779 = phi i32 [ 0, %.lr.ph ], [ %14, %12 ]
  %.16078 = phi i32 [ %.05981, %.lr.ph ], [ %13, %12 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %13 = add nsw i32 %.16078, 1
  store i32 %.16078, ptr %2, align 4, !tbaa !5
  call void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %14 = add nuw nsw i32 %.05779, 1
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = icmp slt i32 %14, %15
  br i1 %16, label %12, label %._crit_edge, !llvm.loop !11

.preheader76:                                     ; preds = %.preheader77, %._crit_edge87
  %indvars.iv119 = phi i64 [ %indvars.iv.next120, %._crit_edge87 ], [ 1, %.preheader77 ]
  %17 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %indvars.iv119
  %18 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %.not = icmp eq i64 %18, 0
  br i1 %.not, label %._crit_edge87, label %.lr.ph86

.lr.ph86:                                         ; preds = %.preheader76
  %19 = add nsw i64 %indvars.iv119, -1
  %20 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %19
  br label %36

.preheader75:                                     ; preds = %._crit_edge87, %0, %.preheader77
  %.lcssa = phi i32 [ %10, %.preheader77 ], [ %4, %0 ], [ %34, %._crit_edge87 ]
  %21 = load i32, ptr @n, align 4, !tbaa !5
  %.not6891 = icmp slt i32 %21, 1
  br i1 %.not6891, label %._crit_edge95, label %.lr.ph94.preheader

.lr.ph94.preheader:                               ; preds = %.preheader75
  %22 = add nuw i32 %21, 1
  %wide.trip.count = zext i32 %22 to i64
  %23 = zext nneg i32 %21 to i64
  %min.iters.check = icmp ult i32 %21, 8
  br i1 %min.iters.check, label %.lr.ph94.preheader152, label %vector.ph

.lr.ph94.preheader152:                            ; preds = %middle.block, %.lr.ph94.preheader
  %indvars.iv122.ph = phi i64 [ 1, %.lr.ph94.preheader ], [ %ind.end, %middle.block ]
  %.05492.ph = phi i32 [ 0, %.lr.ph94.preheader ], [ %33, %middle.block ]
  br label %.lr.ph94

vector.ph:                                        ; preds = %.lr.ph94.preheader
  %n.vec = and i64 %23, 2147483640
  %ind.end = or disjoint i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %30, %vector.body ]
  %vec.phi149 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %31, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %24 = getelementptr inbounds [200100 x i32], ptr @out, i64 0, i64 %offset.idx
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load = load <4 x i32>, ptr %24, align 4, !tbaa !5
  %wide.load150 = load <4 x i32>, ptr %25, align 4, !tbaa !5
  %26 = icmp eq <4 x i32> %wide.load, zeroinitializer
  %27 = icmp eq <4 x i32> %wide.load150, zeroinitializer
  %28 = zext <4 x i1> %26 to <4 x i32>
  %29 = zext <4 x i1> %27 to <4 x i32>
  %30 = add <4 x i32> %vec.phi, %28
  %31 = add <4 x i32> %vec.phi149, %29
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %31, %30
  %33 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %23
  br i1 %cmp.n, label %._crit_edge95, label %.lr.ph94.preheader152

._crit_edge87:                                    ; preds = %36, %.preheader76
  %indvars.iv.next120 = add nuw nsw i64 %indvars.iv119, 1
  %34 = load i32, ptr @t, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %.not67.not = icmp slt i64 %indvars.iv119, %35
  br i1 %.not67.not, label %.preheader76, label %.preheader75, !llvm.loop !15

36:                                               ; preds = %.lr.ph86, %36
  %indvars.iv116 = phi i64 [ 0, %.lr.ph86 ], [ %indvars.iv.next117, %36 ]
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #6
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv116) #6
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %41
  store i32 %38, ptr %42, align 4, !tbaa !5
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %20, i64 noundef 0) #6
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [200100 x i32], ptr @out, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !5
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %49 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  %50 = icmp ugt i64 %49, %indvars.iv.next117
  br i1 %50, label %36, label %._crit_edge87, !llvm.loop !16

._crit_edge95:                                    ; preds = %.lr.ph94, %middle.block, %.preheader75
  %.054.lcssa = phi i32 [ 0, %.preheader75 ], [ %33, %middle.block ], [ %spec.select, %.lr.ph94 ]
  %51 = load i32, ptr @k, align 4
  %52 = icmp slt i32 %.054.lcssa, %51
  br i1 %52, label %.loopexit.sink.split, label %57

.lr.ph94:                                         ; preds = %.lr.ph94.preheader152, %.lr.ph94
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.lr.ph94 ], [ %indvars.iv122.ph, %.lr.ph94.preheader152 ]
  %.05492 = phi i32 [ %spec.select, %.lr.ph94 ], [ %.05492.ph, %.lr.ph94.preheader152 ]
  %53 = getelementptr inbounds [200100 x i32], ptr @out, i64 0, i64 %indvars.iv122
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp eq i32 %54, 0
  %56 = zext i1 %55 to i32
  %spec.select = add nuw nsw i32 %.05492, %56
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next123, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge95, label %.lr.ph94, !llvm.loop !17

57:                                               ; preds = %._crit_edge95
  %58 = icmp sgt i32 %.054.lcssa, %51
  %59 = icmp sgt i32 %.lcssa, 1
  %or.cond144 = and i1 %58, %59
  br i1 %or.cond144, label %.preheader72.preheader, label %.loopexit74

.preheader72.preheader:                           ; preds = %57
  %60 = zext nneg i32 %.lcssa to i64
  br label %.preheader72

.preheader72:                                     ; preds = %.preheader72.preheader, %.critedge
  %indvars.iv130 = phi i64 [ %60, %.preheader72.preheader ], [ %64, %.critedge ]
  %.2104 = phi i32 [ %.054.lcssa, %.preheader72.preheader ], [ %.3.lcssa, %.critedge ]
  %61 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %indvars.iv130
  %62 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %63 = icmp ugt i64 %62, 1
  %64 = add nsw i64 %indvars.iv130, -1
  br i1 %63, label %.lr.ph100, label %.critedge

.lr.ph100:                                        ; preds = %.preheader72
  %65 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %64
  br label %66

66:                                               ; preds = %.lr.ph100, %71
  %indvars.iv125 = phi i64 [ 1, %.lr.ph100 ], [ %indvars.iv.next126, %71 ]
  %.397 = phi i32 [ %.2104, %.lr.ph100 ], [ %78, %71 ]
  %67 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #6
  %68 = icmp ugt i64 %67, %indvars.iv125
  %69 = load i32, ptr @k, align 4
  %70 = icmp sgt i32 %.397, %69
  %or.cond = select i1 %68, i1 %70, i1 false
  br i1 %or.cond, label %71, label %.critedge

71:                                               ; preds = %66
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %indvars.iv125) #6
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %indvars.iv125) #6
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %76
  store i32 %73, ptr %77, align 4, !tbaa !5
  %indvars.iv.next126 = add nuw nsw i64 %indvars.iv125, 1
  %78 = add nsw i32 %.397, -1
  %79 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %61) #6
  %80 = icmp ugt i64 %79, %indvars.iv.next126
  br i1 %80, label %66, label %.critedge, !llvm.loop !18

.critedge:                                        ; preds = %71, %66, %.preheader72
  %.3.lcssa = phi i32 [ %.2104, %.preheader72 ], [ %.397, %66 ], [ %78, %71 ]
  %81 = icmp sgt i64 %indvars.iv130, 2
  %82 = load i32, ptr @k, align 4
  %83 = icmp sgt i32 %.3.lcssa, %82
  %84 = select i1 %81, i1 %83, i1 false
  br i1 %84, label %.preheader72, label %.loopexit74, !llvm.loop !19

.loopexit74:                                      ; preds = %.critedge, %57
  %85 = phi i32 [ %51, %57 ], [ %82, %.critedge ]
  %.4 = phi i32 [ %.054.lcssa, %57 ], [ %.3.lcssa, %.critedge ]
  %.not69 = icmp eq i32 %.4, %85
  br i1 %.not69, label %86, label %.loopexit.sink.split

86:                                               ; preds = %.loopexit74
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %87)
  %89 = load i32, ptr @t, align 4, !tbaa !5
  %.not70110 = icmp slt i32 %89, 1
  br i1 %.not70110, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %86, %._crit_edge109
  %indvars.iv136 = phi i64 [ %indvars.iv.next137, %._crit_edge109 ], [ 1, %86 ]
  %90 = getelementptr inbounds [200100 x %"class.std::vector"], ptr @l, i64 0, i64 %indvars.iv136
  %91 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #6
  %.not112 = icmp eq i64 %91, 0
  br i1 %.not112, label %._crit_edge109, label %.lr.ph108

._crit_edge109:                                   ; preds = %.lr.ph108, %.preheader
  %indvars.iv.next137 = add nuw nsw i64 %indvars.iv136, 1
  %92 = load i32, ptr @t, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %.not70.not = icmp slt i64 %indvars.iv136, %93
  br i1 %.not70.not, label %.preheader, label %.loopexit, !llvm.loop !20

.lr.ph108:                                        ; preds = %.preheader, %.lr.ph108
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.lr.ph108 ], [ 0, %.preheader ]
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %indvars.iv133) #6
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %indvars.iv133) #6
  %97 = load i32, ptr %96, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [200100 x i32], ptr @p, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5, i32 noundef %95, i32 noundef %100)
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %102 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %90) #6
  %103 = icmp ugt i64 %102, %indvars.iv.next134
  br i1 %103, label %.lr.ph108, label %._crit_edge109, !llvm.loop !21

.loopexit.sink.split:                             ; preds = %.loopexit74, %._crit_edge95
  %104 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge109, %.loopexit.sink.split, %86
  ret i32 0
}

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

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

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

; 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 noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #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 = { 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

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


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