; LLVM IR from tangjz/acm-icpc :: codeforces/complete (471B)

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

@n = external dso_local global i32, align 4
@a = external dso_local global [2010 x i32], align 16
@no = external dso_local global [2010 x i32], align 16
@pos1 = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 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
  store i32 0, ptr %1, align 4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %28, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %31

19:                                               ; preds = %14
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i32, ptr @a, i64 %21
  %23 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %22)
  %24 = load i32, ptr %2, align 4, !tbaa !5
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %26
  store i32 %24, ptr %27, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %19
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %2, align 4, !tbaa !5
  br label %14, !llvm.loop !9

31:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %76, %31
  %33 = load i32, ptr %3, align 4, !tbaa !5
  %34 = load i32, ptr @n, align 4, !tbaa !5
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  store i32 5, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %79

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

38:                                               ; preds = %72, %37
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = load i32, ptr @n, align 4, !tbaa !5
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = sub nsw i32 %40, %41
  %43 = icmp sle i32 %39, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %38
  %46 = load i32, ptr %5, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = icmp sgt i32 %49, %54
  br i1 %55, label %56, label %71

56:                                               ; preds = %45
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %62
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %63) #4
  %64 = load i32, ptr %5, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %69
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %66, ptr noundef nonnull align 4 dereferenceable(4) %70) #4
  br label %71

71:                                               ; preds = %56, %45
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %5, align 4, !tbaa !5
  br label %38, !llvm.loop !11

75:                                               ; preds = %44
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr %3, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %3, align 4, !tbaa !5
  br label %32, !llvm.loop !12

79:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %268, %79
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = load i32, ptr @n, align 4, !tbaa !5
  %83 = icmp slt i32 %81, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80
  store i32 11, ptr %4, align 4
  br label %271

85:                                               ; preds = %80
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = icmp eq i32 %89, %94
  br i1 %95, label %96, label %267

96:                                               ; preds = %85
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !5
  %103 = add nsw i32 %102, 2
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !5
  %107 = icmp eq i32 %101, %106
  br i1 %107, label %108, label %184

108:                                              ; preds = %96
  %109 = call i32 @puts(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %121, %108
  %111 = load i32, ptr %7, align 4, !tbaa !5
  %112 = load i32, ptr @n, align 4, !tbaa !5
  %113 = icmp slt i32 %111, %112
  br i1 %113, label %115, label %114

114:                                              ; preds = %110
  store i32 14, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %124

115:                                              ; preds = %110
  %116 = load i32, ptr %7, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %119)
  br label %121

121:                                              ; preds = %115
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %7, align 4, !tbaa !5
  br label %110, !llvm.loop !13

124:                                              ; preds = %114
  %125 = load i32, ptr @n, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %126
  %128 = load i32, ptr %127, align 4, !tbaa !5
  %129 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %128)
  %130 = load i32, ptr %6, align 4, !tbaa !5
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %131
  %133 = load i32, ptr %6, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %135
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %132, ptr noundef nonnull align 4 dereferenceable(4) %136) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 1, ptr %8, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %148, %124
  %138 = load i32, ptr %8, align 4, !tbaa !5
  %139 = load i32, ptr @n, align 4, !tbaa !5
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 17, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %151

142:                                              ; preds = %137
  %143 = load i32, ptr %8, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %146)
  br label %148

148:                                              ; preds = %142
  %149 = load i32, ptr %8, align 4, !tbaa !5
  %150 = add nsw i32 %149, 1
  store i32 %150, ptr %8, align 4, !tbaa !5
  br label %137, !llvm.loop !14

151:                                              ; preds = %141
  %152 = load i32, ptr @n, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %153
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %155)
  %157 = load i32, ptr %6, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %158
  %160 = load i32, ptr %6, align 4, !tbaa !5
  %161 = add nsw i32 %160, 2
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %162
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %159, ptr noundef nonnull align 4 dereferenceable(4) %163) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 1, ptr %9, align 4, !tbaa !5
  br label %164

164:                                              ; preds = %175, %151
  %165 = load i32, ptr %9, align 4, !tbaa !5
  %166 = load i32, ptr @n, align 4, !tbaa !5
  %167 = icmp slt i32 %165, %166
  br i1 %167, label %169, label %168

168:                                              ; preds = %164
  store i32 20, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %178

169:                                              ; preds = %164
  %170 = load i32, ptr %9, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %171
  %173 = load i32, ptr %172, align 4, !tbaa !5
  %174 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %173)
  br label %175

175:                                              ; preds = %169
  %176 = load i32, ptr %9, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %9, align 4, !tbaa !5
  br label %164, !llvm.loop !15

178:                                              ; preds = %168
  %179 = load i32, ptr @n, align 4, !tbaa !5
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !5
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %182)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %271

184:                                              ; preds = %96
  %185 = load i32, ptr @pos1, align 4, !tbaa !5
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %187, label %263

187:                                              ; preds = %184
  %188 = call i32 @puts(ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %200, %187
  %190 = load i32, ptr %10, align 4, !tbaa !5
  %191 = load i32, ptr @n, align 4, !tbaa !5
  %192 = icmp slt i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 23, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %203

194:                                              ; preds = %189
  %195 = load i32, ptr %10, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %196
  %198 = load i32, ptr %197, align 4, !tbaa !5
  %199 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %198)
  br label %200

200:                                              ; preds = %194
  %201 = load i32, ptr %10, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %10, align 4, !tbaa !5
  br label %189, !llvm.loop !16

203:                                              ; preds = %193
  %204 = load i32, ptr @n, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %205
  %207 = load i32, ptr %206, align 4, !tbaa !5
  %208 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %207)
  %209 = load i32, ptr %6, align 4, !tbaa !5
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %210
  %212 = load i32, ptr %6, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %214
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %211, ptr noundef nonnull align 4 dereferenceable(4) %215) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 1, ptr %11, align 4, !tbaa !5
  br label %216

216:                                              ; preds = %227, %203
  %217 = load i32, ptr %11, align 4, !tbaa !5
  %218 = load i32, ptr @n, align 4, !tbaa !5
  %219 = icmp slt i32 %217, %218
  br i1 %219, label %221, label %220

220:                                              ; preds = %216
  store i32 26, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %230

221:                                              ; preds = %216
  %222 = load i32, ptr %11, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !5
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %225)
  br label %227

227:                                              ; preds = %221
  %228 = load i32, ptr %11, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %11, align 4, !tbaa !5
  br label %216, !llvm.loop !17

230:                                              ; preds = %220
  %231 = load i32, ptr @n, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !5
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %234)
  %236 = load i32, ptr @pos1, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %237
  %239 = load i32, ptr @pos1, align 4, !tbaa !5
  %240 = add nsw i32 %239, 1
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %241
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %238, ptr noundef nonnull align 4 dereferenceable(4) %242) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 1, ptr %12, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %254, %230
  %244 = load i32, ptr %12, align 4, !tbaa !5
  %245 = load i32, ptr @n, align 4, !tbaa !5
  %246 = icmp slt i32 %244, %245
  br i1 %246, label %248, label %247

247:                                              ; preds = %243
  store i32 29, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %257

248:                                              ; preds = %243
  %249 = load i32, ptr %12, align 4, !tbaa !5
  %250 = sext i32 %249 to i64
  %251 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %250
  %252 = load i32, ptr %251, align 4, !tbaa !5
  %253 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %252)
  br label %254

254:                                              ; preds = %248
  %255 = load i32, ptr %12, align 4, !tbaa !5
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %12, align 4, !tbaa !5
  br label %243, !llvm.loop !18

257:                                              ; preds = %247
  %258 = load i32, ptr @n, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %259
  %261 = load i32, ptr %260, align 4, !tbaa !5
  %262 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %261)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %4, align 4
  br label %271

263:                                              ; preds = %184
  %264 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %264, ptr @pos1, align 4, !tbaa !5
  br label %265

265:                                              ; preds = %263
  br label %266

266:                                              ; preds = %265
  br label %267

267:                                              ; preds = %266, %85
  br label %268

268:                                              ; preds = %267
  %269 = load i32, ptr %6, align 4, !tbaa !5
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %6, align 4, !tbaa !5
  br label %80, !llvm.loop !19

271:                                              ; preds = %257, %178, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %272 = load i32, ptr %4, align 4
  switch i32 %272, label %277 [
    i32 11, label %273
    i32 1, label %275
  ]

273:                                              ; preds = %271
  %274 = call i32 @puts(ptr noundef @.str.4)
  store i32 0, ptr %1, align 4
  br label %275

275:                                              ; preds = %273, %271
  %276 = load i32, ptr %1, align 4
  ret i32 %276

277:                                              ; preds = %271
  unreachable
}

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

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

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

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

declare i32 @puts(ptr noundef) #1

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@n = external dso_local global i32, align 4
@a = external dso_local global [2010 x i32], align 16
@no = external dso_local global [2010 x i32], align 16
@pos1 = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @n, align 4, !tbaa !5
  %.not86 = icmp slt i32 %2, 1
  br i1 %.not86, label %._crit_edge97, label %.lr.ph

.preheader73:                                     ; preds = %.lr.ph
  %3 = icmp sgt i32 %8, 1
  br i1 %3, label %.preheader72, label %._crit_edge97

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %4 = getelementptr inbounds i32, ptr @a, i64 %indvars.iv
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4)
  %6 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv
  %7 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %7, ptr %6, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %8 = load i32, ptr @n, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %.not.not = icmp slt i64 %indvars.iv, %9
  br i1 %.not.not, label %.lr.ph, label %.preheader73, !llvm.loop !9

.preheader72:                                     ; preds = %.preheader73, %._crit_edge
  %10 = phi i32 [ %12, %._crit_edge ], [ %8, %.preheader73 ]
  %.05791 = phi i32 [ %13, %._crit_edge ], [ 1, %.preheader73 ]
  %.not6888.not = icmp sgt i32 %10, %.05791
  br i1 %.not6888.not, label %.lr.ph90, label %._crit_edge

.preheader:                                       ; preds = %._crit_edge
  %11 = icmp sgt i32 %12, 1
  br i1 %11, label %.lr.ph96.preheader, label %._crit_edge97

.lr.ph96.preheader:                               ; preds = %.preheader
  %pos1.promoted = load i32, ptr @pos1, align 4, !tbaa !5
  %wide.trip.count = zext nneg i32 %12 to i64
  %.pre168 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  br label %.lr.ph96

._crit_edge:                                      ; preds = %25, %.preheader72
  %12 = phi i32 [ %10, %.preheader72 ], [ %26, %25 ]
  %13 = add nuw nsw i32 %.05791, 1
  %14 = icmp slt i32 %13, %12
  br i1 %14, label %.preheader72, label %.preheader, !llvm.loop !11

.lr.ph90:                                         ; preds = %.preheader72, %25
  %15 = phi i32 [ %26, %25 ], [ %10, %.preheader72 ]
  %16 = phi i32 [ %27, %25 ], [ %10, %.preheader72 ]
  %indvars.iv144 = phi i64 [ %indvars.iv.next145, %25 ], [ 1, %.preheader72 ]
  %17 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %indvars.iv144
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %indvars.iv.next145 = add nuw nsw i64 %indvars.iv144, 1
  %19 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %indvars.iv.next145
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp sgt i32 %18, %20
  br i1 %21, label %22, label %25

22:                                               ; preds = %.lr.ph90
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19) #3
  %23 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv144
  %24 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv.next145
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %23, ptr noundef nonnull align 4 dereferenceable(4) %24) #3
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %25

25:                                               ; preds = %.lr.ph90, %22
  %26 = phi i32 [ %15, %.lr.ph90 ], [ %.pre, %22 ]
  %27 = phi i32 [ %16, %.lr.ph90 ], [ %.pre, %22 ]
  %28 = sub nsw i32 %27, %.05791
  %29 = sext i32 %28 to i64
  %.not68.not = icmp slt i64 %indvars.iv144, %29
  br i1 %.not68.not, label %.lr.ph90, label %._crit_edge, !llvm.loop !12

.lr.ph96:                                         ; preds = %.lr.ph96.preheader, %123
  %30 = phi i32 [ %.pre168, %.lr.ph96.preheader ], [ %32, %123 ]
  %indvars.iv147 = phi i64 [ 1, %.lr.ph96.preheader ], [ %indvars.iv.next148, %123 ]
  %.0549394 = phi i32 [ %pos1.promoted, %.lr.ph96.preheader ], [ %.05492, %123 ]
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %31 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %indvars.iv.next148
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp eq i32 %30, %32
  br i1 %33, label %34, label %123

34:                                               ; preds = %.lr.ph96
  %35 = add nuw nsw i64 %indvars.iv147, 2
  %36 = getelementptr inbounds [2010 x i32], ptr @a, i64 0, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = icmp eq i32 %30, %37
  br i1 %38, label %39, label %77

39:                                               ; preds = %34
  %40 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  %41 = load i32, ptr @n, align 4, !tbaa !5
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %.lr.ph115, label %.._crit_edge116_crit_edge

.._crit_edge116_crit_edge:                        ; preds = %39
  %.pre169 = sext i32 %41 to i64
  br label %._crit_edge116

._crit_edge116:                                   ; preds = %.lr.ph115, %.._crit_edge116_crit_edge
  %.pre-phi = phi i64 [ %.pre169, %.._crit_edge116_crit_edge ], [ %54, %.lr.ph115 ]
  %43 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %44)
  %46 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv147
  %47 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv.next148
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %47) #3
  %48 = load i32, ptr @n, align 4, !tbaa !5
  %49 = icmp sgt i32 %48, 1
  br i1 %49, label %.lr.ph120, label %._crit_edge116.._crit_edge121_crit_edge

._crit_edge116.._crit_edge121_crit_edge:          ; preds = %._crit_edge116
  %.pre170 = sext i32 %48 to i64
  br label %._crit_edge121

.lr.ph115:                                        ; preds = %39, %.lr.ph115
  %indvars.iv159 = phi i64 [ %indvars.iv.next160, %.lr.ph115 ], [ 1, %39 ]
  %50 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv159
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %51)
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = icmp slt i64 %indvars.iv.next160, %54
  br i1 %55, label %.lr.ph115, label %._crit_edge116, !llvm.loop !13

._crit_edge121:                                   ; preds = %.lr.ph120, %._crit_edge116.._crit_edge121_crit_edge
  %.pre-phi171 = phi i64 [ %.pre170, %._crit_edge116.._crit_edge121_crit_edge ], [ %66, %.lr.ph120 ]
  %56 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi171
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %57)
  %59 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %35
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %46, ptr noundef nonnull align 4 dereferenceable(4) %59) #3
  %60 = load i32, ptr @n, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 1
  br i1 %61, label %.lr.ph125, label %._crit_edge121.._crit_edge126_crit_edge

._crit_edge121.._crit_edge126_crit_edge:          ; preds = %._crit_edge121
  %.pre172 = sext i32 %60 to i64
  br label %._crit_edge126

.lr.ph120:                                        ; preds = %._crit_edge116, %.lr.ph120
  %indvars.iv162 = phi i64 [ %indvars.iv.next163, %.lr.ph120 ], [ 1, %._crit_edge116 ]
  %62 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv162
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %63)
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %65 = load i32, ptr @n, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = icmp slt i64 %indvars.iv.next163, %66
  br i1 %67, label %.lr.ph120, label %._crit_edge121, !llvm.loop !14

._crit_edge126:                                   ; preds = %.lr.ph125, %._crit_edge121.._crit_edge126_crit_edge
  %.pre-phi173 = phi i64 [ %.pre172, %._crit_edge121.._crit_edge126_crit_edge ], [ %75, %.lr.ph125 ]
  %68 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi173
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %69)
  br label %.thread

.lr.ph125:                                        ; preds = %._crit_edge121, %.lr.ph125
  %indvars.iv165 = phi i64 [ %indvars.iv.next166, %.lr.ph125 ], [ 1, %._crit_edge121 ]
  %71 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv165
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %72)
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %74 = load i32, ptr @n, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = icmp slt i64 %indvars.iv.next166, %75
  br i1 %76, label %.lr.ph125, label %._crit_edge126, !llvm.loop !15

77:                                               ; preds = %34
  %.not67 = icmp eq i32 %.0549394, 0
  br i1 %.not67, label %121, label %78

78:                                               ; preds = %77
  %79 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 1
  br i1 %81, label %.lr.ph100, label %.._crit_edge101_crit_edge

.._crit_edge101_crit_edge:                        ; preds = %78
  %.pre174 = sext i32 %80 to i64
  br label %._crit_edge101

._crit_edge101:                                   ; preds = %.lr.ph100, %.._crit_edge101_crit_edge
  %.pre-phi175 = phi i64 [ %.pre174, %.._crit_edge101_crit_edge ], [ %93, %.lr.ph100 ]
  %82 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi175
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %83)
  %85 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv147
  %86 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv.next148
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %85, ptr noundef nonnull align 4 dereferenceable(4) %86) #3
  %87 = load i32, ptr @n, align 4, !tbaa !5
  %88 = icmp sgt i32 %87, 1
  br i1 %88, label %.lr.ph105, label %._crit_edge101.._crit_edge106_crit_edge

._crit_edge101.._crit_edge106_crit_edge:          ; preds = %._crit_edge101
  %.pre176 = sext i32 %87 to i64
  br label %._crit_edge106

.lr.ph100:                                        ; preds = %78, %.lr.ph100
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph100 ], [ 1, %78 ]
  %89 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv150
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %90)
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %92 = load i32, ptr @n, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = icmp slt i64 %indvars.iv.next151, %93
  br i1 %94, label %.lr.ph100, label %._crit_edge101, !llvm.loop !16

._crit_edge106:                                   ; preds = %.lr.ph105, %._crit_edge101.._crit_edge106_crit_edge
  %.pre-phi177 = phi i64 [ %.pre176, %._crit_edge101.._crit_edge106_crit_edge ], [ %110, %.lr.ph105 ]
  %95 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi177
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %96)
  %98 = load i32, ptr @pos1, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %99
  %101 = add nsw i32 %98, 1
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %102
  tail call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %100, ptr noundef nonnull align 4 dereferenceable(4) %103) #3
  %104 = load i32, ptr @n, align 4, !tbaa !5
  %105 = icmp sgt i32 %104, 1
  br i1 %105, label %.lr.ph110, label %._crit_edge106.._crit_edge111_crit_edge

._crit_edge106.._crit_edge111_crit_edge:          ; preds = %._crit_edge106
  %.pre178 = sext i32 %104 to i64
  br label %._crit_edge111

.lr.ph105:                                        ; preds = %._crit_edge101, %.lr.ph105
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %.lr.ph105 ], [ 1, %._crit_edge101 ]
  %106 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv153
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %107)
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = icmp slt i64 %indvars.iv.next154, %110
  br i1 %111, label %.lr.ph105, label %._crit_edge106, !llvm.loop !17

._crit_edge111:                                   ; preds = %.lr.ph110, %._crit_edge106.._crit_edge111_crit_edge
  %.pre-phi179 = phi i64 [ %.pre178, %._crit_edge106.._crit_edge111_crit_edge ], [ %119, %.lr.ph110 ]
  %112 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %.pre-phi179
  %113 = load i32, ptr %112, align 4, !tbaa !5
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %113)
  br label %.thread

.lr.ph110:                                        ; preds = %._crit_edge106, %.lr.ph110
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %.lr.ph110 ], [ 1, %._crit_edge106 ]
  %115 = getelementptr inbounds [2010 x i32], ptr @no, i64 0, i64 %indvars.iv156
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %116)
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %118 = load i32, ptr @n, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = icmp slt i64 %indvars.iv.next157, %119
  br i1 %120, label %.lr.ph110, label %._crit_edge111, !llvm.loop !18

121:                                              ; preds = %77
  %122 = trunc nuw nsw i64 %indvars.iv147 to i32
  store i32 %122, ptr @pos1, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %.lr.ph96, %121
  %.05492 = phi i32 [ %.0549394, %.lr.ph96 ], [ %122, %121 ]
  %exitcond.not = icmp eq i64 %indvars.iv.next148, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge97, label %.lr.ph96, !llvm.loop !19

._crit_edge97:                                    ; preds = %123, %0, %.preheader73, %.preheader
  %124 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %.thread

.thread:                                          ; preds = %._crit_edge111, %._crit_edge126, %._crit_edge97
  ret i32 0
}

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

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

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

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

attributes #0 = { mustprogress norecurse nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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}
!19 = distinct !{!19, !10}


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