; LLVM IR from tangjz/acm-icpc :: lydsy (2898)

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZZ4mainE3las = external hidden global i64, align 8
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 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 i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca [31 x i8], align 16
  %10 = alloca [31 x i8], align 16
  %11 = alloca %"class.std::vector", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store i64 0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store i64 0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  store i64 1, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 1, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 31, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 31, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %27 = invoke i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
          to label %28 unwind label %36

28:                                               ; preds = %0
  br label %29

29:                                               ; preds = %69, %28
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 9, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %43, %30
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = load i32, ptr %7, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %46

36:                                               ; preds = %322, %0
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %12, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %13, align 4
  br label %328

40:                                               ; preds = %31
  %41 = load i64, ptr %14, align 8, !tbaa !5
  %42 = mul nsw i64 %41, 10
  store i64 %42, ptr %14, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %40
  %44 = load i32, ptr %15, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %15, align 4, !tbaa !9
  br label %31, !llvm.loop !11

46:                                               ; preds = %35
  %47 = load i64, ptr %3, align 8, !tbaa !5
  %48 = load i64, ptr %14, align 8, !tbaa !5
  %49 = load i32, ptr %7, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = mul nsw i64 %48, %50
  %52 = add nsw i64 %47, %51
  %53 = load i64, ptr %2, align 8, !tbaa !5
  %54 = icmp sge i64 %52, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %46
  store i32 3, ptr %16, align 4
  br label %67

56:                                               ; preds = %46
  %57 = load i64, ptr %14, align 8, !tbaa !5
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %7, align 4, !tbaa !9
  %60 = sext i32 %58 to i64
  %61 = mul nsw i64 %57, %60
  %62 = load i64, ptr %3, align 8, !tbaa !5
  %63 = add nsw i64 %62, %61
  store i64 %63, ptr %3, align 8, !tbaa !5
  %64 = load i64, ptr %14, align 8, !tbaa !5
  %65 = load i64, ptr %5, align 8, !tbaa !5
  %66 = add nsw i64 %65, %64
  store i64 %66, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %16, align 4
  br label %67

67:                                               ; preds = %56, %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %68 = load i32, ptr %16, align 4
  switch i32 %68, label %334 [
    i32 0, label %69
    i32 3, label %70
  ]

69:                                               ; preds = %67
  br label %29, !llvm.loop !13

70:                                               ; preds = %67
  br label %71

71:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %72 = load i64, ptr %2, align 8, !tbaa !5
  %73 = sub nsw i64 %72, 1
  %74 = load i64, ptr %3, align 8, !tbaa !5
  %75 = sub nsw i64 %73, %74
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = sdiv i64 %75, %77
  store i64 %78, ptr %17, align 8, !tbaa !5
  %79 = load i64, ptr %17, align 8, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = mul nsw i64 %79, %81
  %83 = load i64, ptr %3, align 8, !tbaa !5
  %84 = add nsw i64 %83, %82
  store i64 %84, ptr %3, align 8, !tbaa !5
  %85 = load i64, ptr %17, align 8, !tbaa !5
  %86 = load i64, ptr %5, align 8, !tbaa !5
  %87 = add nsw i64 %86, %85
  store i64 %87, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds [31 x i8], ptr %9, i64 0, i64 0
  %89 = load i64, ptr %5, align 8, !tbaa !5
  %90 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %88, ptr noundef @.str, i64 noundef %89) #7
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = icmp eq i32 %90, %91
  br i1 %92, label %93, label %94

93:                                               ; preds = %71
  br label %96

94:                                               ; preds = %71
  call void @__assert_fail(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 23, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

95:                                               ; No predecessors!
  br label %96

96:                                               ; preds = %95, %93
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %166, %98
  br label %100

100:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store i64 1, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %109, %100
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %112

106:                                              ; preds = %101
  %107 = load i64, ptr %18, align 8, !tbaa !5
  %108 = mul nsw i64 %107, 10
  store i64 %108, ptr %18, align 8, !tbaa !5
  br label %109

109:                                              ; preds = %106
  %110 = load i32, ptr %20, align 4, !tbaa !9
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %20, align 4, !tbaa !9
  br label %101, !llvm.loop !14

112:                                              ; preds = %105
  %113 = load i64, ptr %18, align 8, !tbaa !5
  %114 = sub nsw i64 %113, 1
  %115 = sitofp i64 %114 to x86_fp80
  %116 = call x86_fp80 @sqrtl(x86_fp80 noundef %115) #7
  %117 = fptosi x86_fp80 %116 to i64
  store i64 %117, ptr %19, align 8, !tbaa !5
  br label %118

118:                                              ; preds = %125, %112
  %119 = load i64, ptr %19, align 8, !tbaa !5
  %120 = load i64, ptr %19, align 8, !tbaa !5
  %121 = mul nsw i64 %119, %120
  %122 = load i64, ptr %18, align 8, !tbaa !5
  %123 = icmp slt i64 %121, %122
  br i1 %123, label %124, label %128

124:                                              ; preds = %118
  br label %125

125:                                              ; preds = %124
  %126 = load i64, ptr %19, align 8, !tbaa !5
  %127 = add nsw i64 %126, 1
  store i64 %127, ptr %19, align 8, !tbaa !5
  br label %118, !llvm.loop !15

128:                                              ; preds = %118
  br label %129

129:                                              ; preds = %136, %128
  %130 = load i64, ptr %19, align 8, !tbaa !5
  %131 = load i64, ptr %19, align 8, !tbaa !5
  %132 = mul nsw i64 %130, %131
  %133 = load i64, ptr %18, align 8, !tbaa !5
  %134 = icmp sge i64 %132, %133
  br i1 %134, label %135, label %139

135:                                              ; preds = %129
  br label %136

136:                                              ; preds = %135
  %137 = load i64, ptr %19, align 8, !tbaa !5
  %138 = add nsw i64 %137, -1
  store i64 %138, ptr %19, align 8, !tbaa !5
  br label %129, !llvm.loop !16

139:                                              ; preds = %129
  %140 = load i64, ptr %19, align 8, !tbaa !5
  %141 = load i64, ptr @_ZZ4mainE3las, align 8, !tbaa !5
  %142 = sub nsw i64 %140, %141
  store i64 %142, ptr %18, align 8, !tbaa !5
  %143 = load i64, ptr %19, align 8, !tbaa !5
  store i64 %143, ptr @_ZZ4mainE3las, align 8, !tbaa !5
  %144 = load i64, ptr %4, align 8, !tbaa !5
  %145 = load i64, ptr %18, align 8, !tbaa !5
  %146 = load i32, ptr %8, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = mul nsw i64 %145, %147
  %149 = add nsw i64 %144, %148
  %150 = load i64, ptr %2, align 8, !tbaa !5
  %151 = icmp sge i64 %149, %150
  br i1 %151, label %152, label %153

152:                                              ; preds = %139
  store i32 10, ptr %16, align 4
  br label %164

153:                                              ; preds = %139
  %154 = load i64, ptr %18, align 8, !tbaa !5
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr %8, align 4, !tbaa !9
  %157 = sext i32 %155 to i64
  %158 = mul nsw i64 %154, %157
  %159 = load i64, ptr %4, align 8, !tbaa !5
  %160 = add nsw i64 %159, %158
  store i64 %160, ptr %4, align 8, !tbaa !5
  %161 = load i64, ptr %18, align 8, !tbaa !5
  %162 = load i64, ptr %6, align 8, !tbaa !5
  %163 = add nsw i64 %162, %161
  store i64 %163, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %16, align 4
  br label %164

164:                                              ; preds = %153, %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  %165 = load i32, ptr %16, align 4
  switch i32 %165, label %334 [
    i32 0, label %166
    i32 10, label %167
  ]

166:                                              ; preds = %164
  br label %99, !llvm.loop !17

167:                                              ; preds = %164
  br label %168

168:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %169 = load i64, ptr %2, align 8, !tbaa !5
  %170 = sub nsw i64 %169, 1
  %171 = load i64, ptr %4, align 8, !tbaa !5
  %172 = sub nsw i64 %170, %171
  %173 = load i32, ptr %8, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = sdiv i64 %172, %174
  store i64 %175, ptr %21, align 8, !tbaa !5
  %176 = load i64, ptr %21, align 8, !tbaa !5
  %177 = load i32, ptr %8, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = mul nsw i64 %176, %178
  %180 = load i64, ptr %4, align 8, !tbaa !5
  %181 = add nsw i64 %180, %179
  store i64 %181, ptr %4, align 8, !tbaa !5
  %182 = load i64, ptr %21, align 8, !tbaa !5
  %183 = load i64, ptr %6, align 8, !tbaa !5
  %184 = add nsw i64 %183, %182
  store i64 %184, ptr %6, align 8, !tbaa !5
  %185 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  %186 = load i64, ptr %6, align 8, !tbaa !5
  %187 = load i64, ptr %6, align 8, !tbaa !5
  %188 = mul nsw i64 %186, %187
  %189 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %185, ptr noundef @.str, i64 noundef %188) #7
  %190 = load i32, ptr %8, align 4, !tbaa !9
  %191 = icmp eq i32 %189, %190
  br i1 %191, label %192, label %193

192:                                              ; preds = %168
  br label %195

193:                                              ; preds = %168
  call void @__assert_fail(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 44, ptr noundef @__PRETTY_FUNCTION__.main) #8
  unreachable

194:                                              ; No predecessors!
  br label %195

195:                                              ; preds = %194, %192
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %196

196:                                              ; preds = %195
  br label %197

197:                                              ; preds = %196
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %318, %197
  br label %199

199:                                              ; preds = %209, %198
  %200 = load i64, ptr %3, align 8, !tbaa !5
  %201 = load i32, ptr %7, align 4, !tbaa !9
  %202 = sext i32 %201 to i64
  %203 = add nsw i64 %200, %202
  %204 = load i64, ptr %2, align 8, !tbaa !5
  %205 = load i32, ptr %22, align 4, !tbaa !9
  %206 = sext i32 %205 to i64
  %207 = add nsw i64 %204, %206
  %208 = icmp slt i64 %203, %207
  br i1 %208, label %209, label %218

209:                                              ; preds = %199
  %210 = load i32, ptr %7, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = load i64, ptr %3, align 8, !tbaa !5
  %213 = add nsw i64 %212, %211
  store i64 %213, ptr %3, align 8, !tbaa !5
  %214 = getelementptr inbounds [31 x i8], ptr %9, i64 0, i64 0
  %215 = load i64, ptr %5, align 8, !tbaa !5
  %216 = add nsw i64 %215, 1
  store i64 %216, ptr %5, align 8, !tbaa !5
  %217 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %214, ptr noundef @.str, i64 noundef %216) #7
  store i32 %217, ptr %7, align 4, !tbaa !9
  br label %199, !llvm.loop !18

218:                                              ; preds = %199
  br label %219

219:                                              ; preds = %229, %218
  %220 = load i64, ptr %4, align 8, !tbaa !5
  %221 = load i32, ptr %8, align 4, !tbaa !9
  %222 = sext i32 %221 to i64
  %223 = add nsw i64 %220, %222
  %224 = load i64, ptr %2, align 8, !tbaa !5
  %225 = load i32, ptr %22, align 4, !tbaa !9
  %226 = sext i32 %225 to i64
  %227 = add nsw i64 %224, %226
  %228 = icmp slt i64 %223, %227
  br i1 %228, label %229, label %241

229:                                              ; preds = %219
  %230 = load i32, ptr %8, align 4, !tbaa !9
  %231 = sext i32 %230 to i64
  %232 = load i64, ptr %4, align 8, !tbaa !5
  %233 = add nsw i64 %232, %231
  store i64 %233, ptr %4, align 8, !tbaa !5
  %234 = load i64, ptr %6, align 8, !tbaa !5
  %235 = add nsw i64 %234, 1
  store i64 %235, ptr %6, align 8, !tbaa !5
  %236 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 0
  %237 = load i64, ptr %6, align 8, !tbaa !5
  %238 = load i64, ptr %6, align 8, !tbaa !5
  %239 = mul nsw i64 %237, %238
  %240 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %236, ptr noundef @.str, i64 noundef %239) #7
  store i32 %240, ptr %8, align 4, !tbaa !9
  br label %219, !llvm.loop !19

241:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %242 = load i64, ptr %2, align 8, !tbaa !5
  %243 = load i32, ptr %22, align 4, !tbaa !9
  %244 = sext i32 %243 to i64
  %245 = add nsw i64 %242, %244
  %246 = load i64, ptr %3, align 8, !tbaa !5
  %247 = sub nsw i64 %245, %246
  %248 = sub nsw i64 %247, 1
  %249 = getelementptr inbounds [31 x i8], ptr %9, i64 0, i64 %248
  %250 = load i8, ptr %249, align 1, !tbaa !20
  %251 = sext i8 %250 to i32
  %252 = sub nsw i32 %251, 48
  store i32 %252, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %253 = load i64, ptr %2, align 8, !tbaa !5
  %254 = load i32, ptr %22, align 4, !tbaa !9
  %255 = sext i32 %254 to i64
  %256 = add nsw i64 %253, %255
  %257 = load i64, ptr %4, align 8, !tbaa !5
  %258 = sub nsw i64 %256, %257
  %259 = sub nsw i64 %258, 1
  %260 = getelementptr inbounds [31 x i8], ptr %10, i64 0, i64 %259
  %261 = load i8, ptr %260, align 1, !tbaa !20
  %262 = sext i8 %261 to i32
  %263 = sub nsw i32 %262, 48
  store i32 %263, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %264 = load i32, ptr %23, align 4, !tbaa !9
  %265 = load i32, ptr %24, align 4, !tbaa !9
  %266 = add nsw i32 %264, %265
  store i32 %266, ptr %25, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 4 dereferenceable(4) %25)
          to label %267 unwind label %283

267:                                              ; preds = %241
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %268 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %269 = trunc i64 %268 to i32
  %270 = sub nsw i32 %269, 1
  store i32 %270, ptr %26, align 4, !tbaa !9
  br label %271

271:                                              ; preds = %303, %267
  %272 = load i32, ptr %26, align 4, !tbaa !9
  %273 = icmp sge i32 %272, 0
  br i1 %273, label %274, label %280

274:                                              ; preds = %271
  %275 = load i32, ptr %26, align 4, !tbaa !9
  %276 = sext i32 %275 to i64
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %276) #7
  %278 = load i32, ptr %277, align 4, !tbaa !9
  %279 = icmp sge i32 %278, 10
  br label %280

280:                                              ; preds = %274, %271
  %281 = phi i1 [ false, %271 ], [ %279, %274 ]
  br i1 %281, label %287, label %282

282:                                              ; preds = %280
  store i32 29, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %306

283:                                              ; preds = %241
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %12, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %328

287:                                              ; preds = %280
  %288 = load i32, ptr %26, align 4, !tbaa !9
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %289) #7
  %291 = load i32, ptr %290, align 4, !tbaa !9
  %292 = sub nsw i32 %291, 10
  store i32 %292, ptr %290, align 4, !tbaa !9
  %293 = load i32, ptr %26, align 4, !tbaa !9
  %294 = icmp ne i32 %293, 0
  br i1 %294, label %295, label %302

295:                                              ; preds = %287
  %296 = load i32, ptr %26, align 4, !tbaa !9
  %297 = sub nsw i32 %296, 1
  %298 = sext i32 %297 to i64
  %299 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %298) #7
  %300 = load i32, ptr %299, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %299, align 4, !tbaa !9
  br label %302

302:                                              ; preds = %295, %287
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %26, align 4, !tbaa !9
  %305 = add nsw i32 %304, -1
  store i32 %305, ptr %26, align 4, !tbaa !9
  br label %271, !llvm.loop !21

306:                                              ; preds = %282
  %307 = load i32, ptr %22, align 4, !tbaa !9
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %314

309:                                              ; preds = %306
  %310 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %311 = load i32, ptr %310, align 4, !tbaa !9
  %312 = icmp slt i32 %311, 9
  br i1 %312, label %313, label %314

313:                                              ; preds = %309
  store i32 22, ptr %16, align 4
  br label %315

314:                                              ; preds = %309, %306
  store i32 0, ptr %16, align 4
  br label %315

315:                                              ; preds = %314, %313
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  %316 = load i32, ptr %16, align 4
  switch i32 %316, label %321 [
    i32 0, label %317
  ]

317:                                              ; preds = %315
  br label %318

318:                                              ; preds = %317
  %319 = load i32, ptr %22, align 4, !tbaa !9
  %320 = add nsw i32 %319, 1
  store i32 %320, ptr %22, align 4, !tbaa !9
  br label %198, !llvm.loop !22

321:                                              ; preds = %315
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %322

322:                                              ; preds = %321
  %323 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  %324 = load i32, ptr %323, align 4, !tbaa !9
  %325 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %324)
          to label %326 unwind label %36

326:                                              ; preds = %322
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  %327 = load i32, ptr %1, align 4
  ret i32 %327

328:                                              ; preds = %283, %36
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #7
  br label %329

329:                                              ; preds = %328
  %330 = load ptr, ptr %12, align 8
  %331 = load i32, ptr %13, align 4
  %332 = insertvalue { ptr, i32 } poison, ptr %330, 0
  %333 = insertvalue { ptr, i32 } %332, i32 %331, 1
  resume { ptr, i32 } %333

334:                                              ; preds = %164, %67
  unreachable
}

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

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

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

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: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 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) #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 = { 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 = { "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 "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 = { noreturn 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 #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !12}
!22 = distinct !{!22, !12}


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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [64 x i8], align 1
@__PRETTY_FUNCTION__.main = external hidden unnamed_addr constant [11 x i8], align 1
@_ZZ4mainE3las = external hidden local_unnamed_addr global i64, align 8
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [4 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 [31 x i8], align 16
  %3 = alloca [31 x i8], align 16
  %4 = alloca %"class.std::vector", align 8
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 31, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 31, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = load i64, ptr %1, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %16, %0
  %indvar = phi i64 [ %indvar.next, %16 ], [ 0, %0 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %16 ], [ 1, %0 ]
  %.097 = phi i64 [ %17, %16 ], [ 1, %0 ]
  %.087 = phi i64 [ %14, %16 ], [ 0, %0 ]
  %9 = icmp ugt i64 %indvars.iv, 1
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %8
  %10 = add i64 %indvar, -1
  %xtraiter = and i64 %indvar, 7
  %11 = icmp ult i64 %10, 7
  br i1 %11, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %indvar, -8
  br label %.lr.ph

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %.lcssa226.ph = phi i64 [ poison, %.lr.ph.preheader ], [ %15, %.lr.ph ]
  %.0105153.unr = phi i64 [ 9, %.lr.ph.preheader ], [ %15, %.lr.ph ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil
  %.0105153.epil = phi i64 [ %12, %.lr.ph.epil ], [ %.0105153.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %12 = mul nuw nsw i64 %.0105153.epil, 10
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge, label %.lr.ph.epil, !llvm.loop !9

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph.epil, %8
  %.0105.lcssa = phi i64 [ 9, %8 ], [ %.lcssa226.ph, %._crit_edge.loopexit.unr-lcssa ], [ %12, %.lr.ph.epil ]
  %13 = mul nuw nsw i64 %.0105.lcssa, %indvars.iv
  %14 = add nuw nsw i64 %13, %.087
  %.not = icmp slt i64 %14, %7
  br i1 %.not, label %16, label %18

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.0105153 = phi i64 [ 9, %.lr.ph.preheader.new ], [ %15, %.lr.ph ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.7, %.lr.ph ]
  %15 = mul nuw i64 %.0105153, 100000000
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !11

16:                                               ; preds = %._crit_edge
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %17 = add nuw nsw i64 %.0105.lcssa, %.097
  %indvar.next = add i64 %indvar, 1
  br label %8

18:                                               ; preds = %._crit_edge
  %19 = trunc nuw nsw i64 %indvars.iv to i32
  %20 = xor i64 %.087, -1
  %21 = add i64 %7, %20
  %22 = sdiv i64 %21, %indvars.iv
  %23 = mul nsw i64 %22, %indvars.iv
  %24 = add nsw i64 %23, %.087
  %25 = add nsw i64 %22, %.097
  %26 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %25) #7
  %27 = icmp eq i32 %26, %19
  br i1 %27, label %.preheader149, label %28

28:                                               ; preds = %18
  call void @__assert_fail(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 23, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

.preheader149:                                    ; preds = %18, %49
  %indvar228 = phi i64 [ %indvar.next229, %49 ], [ 0, %18 ]
  %indvars.iv188 = phi i64 [ %indvars.iv.next189, %49 ], [ 1, %18 ]
  %.0106 = phi i64 [ %50, %49 ], [ 1, %18 ]
  %.089 = phi i64 [ %47, %49 ], [ 0, %18 ]
  %xtraiter230 = and i64 %indvars.iv188, 7
  %29 = icmp ult i64 %indvar228, 7
  br i1 %29, label %.unr-lcssa, label %.preheader149.new

.preheader149.new:                                ; preds = %.preheader149
  %unroll_iter234 = and i64 %indvars.iv188, 9223372036854775800
  br label %35

.unr-lcssa:                                       ; preds = %35, %.preheader149
  %.lcssa224.ph = phi i64 [ poison, %.preheader149 ], [ %36, %35 ]
  %.096155.unr = phi i64 [ 1, %.preheader149 ], [ %36, %35 ]
  %lcmp.mod232.not = icmp eq i64 %xtraiter230, 0
  br i1 %lcmp.mod232.not, label %.epilog-lcssa, label %.epil.preheader

.epil.preheader:                                  ; preds = %.unr-lcssa, %.epil.preheader
  %.096155.epil = phi i64 [ %30, %.epil.preheader ], [ %.096155.unr, %.unr-lcssa ]
  %epil.iter231 = phi i64 [ %epil.iter231.next, %.epil.preheader ], [ 0, %.unr-lcssa ]
  %30 = mul nuw nsw i64 %.096155.epil, 10
  %epil.iter231.next = add i64 %epil.iter231, 1
  %epil.iter231.cmp.not = icmp eq i64 %epil.iter231.next, %xtraiter230
  br i1 %epil.iter231.cmp.not, label %.epilog-lcssa, label %.epil.preheader, !llvm.loop !13

.epilog-lcssa:                                    ; preds = %.epil.preheader, %.unr-lcssa
  %.lcssa224 = phi i64 [ %.lcssa224.ph, %.unr-lcssa ], [ %30, %.epil.preheader ]
  %31 = add nsw i64 %.lcssa224, -1
  %32 = sitofp i64 %31 to x86_fp80
  %33 = call x86_fp80 @sqrtl(x86_fp80 noundef %32) #7
  %34 = fptosi x86_fp80 %33 to i64
  br label %37

35:                                               ; preds = %35, %.preheader149.new
  %.096155 = phi i64 [ 1, %.preheader149.new ], [ %36, %35 ]
  %niter235 = phi i64 [ 0, %.preheader149.new ], [ %niter235.next.7, %35 ]
  %36 = mul nuw i64 %.096155, 100000000
  %niter235.next.7 = add i64 %niter235, 8
  %niter235.ncmp.7 = icmp eq i64 %niter235.next.7, %unroll_iter234
  br i1 %niter235.ncmp.7, label %.unr-lcssa, label %35, !llvm.loop !14

37:                                               ; preds = %37, %.epilog-lcssa
  %.094 = phi i64 [ %34, %.epilog-lcssa ], [ %40, %37 ]
  %38 = mul nsw i64 %.094, %.094
  %39 = icmp ult i64 %38, %.lcssa224
  %40 = add nsw i64 %.094, 1
  br i1 %39, label %37, label %.preheader148, !llvm.loop !15

.preheader148:                                    ; preds = %37, %.preheader148
  %.195 = phi i64 [ %42, %.preheader148 ], [ %.094, %37 ]
  %41 = mul nsw i64 %.195, %.195
  %.not123 = icmp ult i64 %41, %.lcssa224
  %42 = add nsw i64 %.195, -1
  br i1 %.not123, label %43, label %.preheader148, !llvm.loop !16

43:                                               ; preds = %.preheader148
  %44 = load i64, ptr @_ZZ4mainE3las, align 8, !tbaa !5
  %45 = sub nsw i64 %.195, %44
  store i64 %.195, ptr @_ZZ4mainE3las, align 8, !tbaa !5
  %46 = mul nsw i64 %45, %indvars.iv188
  %47 = add nsw i64 %46, %.089
  %48 = load i64, ptr %1, align 8, !tbaa !5
  %.not124 = icmp slt i64 %47, %48
  br i1 %.not124, label %49, label %51

49:                                               ; preds = %43
  %indvars.iv.next189 = add nuw nsw i64 %indvars.iv188, 1
  %50 = add nsw i64 %45, %.0106
  %indvar.next229 = add i64 %indvar228, 1
  br label %.preheader149

51:                                               ; preds = %43
  %52 = trunc nuw nsw i64 %indvars.iv188 to i32
  %53 = xor i64 %.089, -1
  %54 = add i64 %48, %53
  %55 = and i64 %indvars.iv188, 4294967295
  %56 = sdiv i64 %54, %55
  %57 = add nsw i64 %56, %.0106
  %58 = mul nsw i64 %57, %57
  %59 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %58) #7
  %60 = icmp eq i32 %59, %52
  br i1 %60, label %62, label %61

61:                                               ; preds = %51
  call void @__assert_fail(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 44, ptr noundef nonnull @__PRETTY_FUNCTION__.main) #8
  unreachable

62:                                               ; preds = %51
  %63 = mul nsw i64 %56, %55
  %64 = add nsw i64 %63, %.089
  br label %65

65:                                               ; preds = %.critedge130, %62
  %indvars.iv194 = phi i64 [ %indvars.iv.next195, %.critedge130 ], [ 0, %62 ]
  %.2116 = phi i32 [ %.3117.lcssa, %.critedge130 ], [ %52, %62 ]
  %.2112 = phi i32 [ %.3113.lcssa, %.critedge130 ], [ %19, %62 ]
  %.2108 = phi i64 [ %.3109.lcssa, %.critedge130 ], [ %57, %62 ]
  %.299 = phi i64 [ %.3100.lcssa, %.critedge130 ], [ %25, %62 ]
  %.291 = phi i64 [ %.392.lcssa, %.critedge130 ], [ %64, %62 ]
  %.2 = phi i64 [ %.3.lcssa, %.critedge130 ], [ %24, %62 ]
  %66 = sext i32 %.2112 to i64
  %67 = add nsw i64 %.2, %66
  %68 = load i64, ptr %1, align 8, !tbaa !5
  %69 = add nsw i64 %68, %indvars.iv194
  %70 = icmp slt i64 %67, %69
  br i1 %70, label %.lr.ph159, label %.preheader

.preheader:                                       ; preds = %.lr.ph159, %65
  %.pre-phi = phi i64 [ %69, %65 ], [ %80, %.lr.ph159 ]
  %.3113.lcssa = phi i32 [ %.2112, %65 ], [ %76, %.lr.ph159 ]
  %.3100.lcssa = phi i64 [ %.299, %65 ], [ %75, %.lr.ph159 ]
  %.3.lcssa = phi i64 [ %.2, %65 ], [ %74, %.lr.ph159 ]
  %71 = sext i32 %.2116 to i64
  %72 = add nsw i64 %.291, %71
  %73 = icmp slt i64 %72, %.pre-phi
  br i1 %73, label %.lr.ph165, label %._crit_edge166

.lr.ph159:                                        ; preds = %65, %.lr.ph159
  %74 = phi i64 [ %78, %.lr.ph159 ], [ %67, %65 ]
  %.3100157 = phi i64 [ %75, %.lr.ph159 ], [ %.299, %65 ]
  %75 = add nsw i64 %.3100157, 1
  %76 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %2, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %75) #7
  %77 = sext i32 %76 to i64
  %78 = add nsw i64 %74, %77
  %79 = load i64, ptr %1, align 8, !tbaa !5
  %80 = add nsw i64 %79, %indvars.iv194
  %81 = icmp slt i64 %78, %80
  br i1 %81, label %.lr.ph159, label %.preheader, !llvm.loop !17

.lr.ph165:                                        ; preds = %.preheader, %.lr.ph165
  %82 = phi i64 [ %87, %.lr.ph165 ], [ %72, %.preheader ]
  %.3109164 = phi i64 [ %83, %.lr.ph165 ], [ %.2108, %.preheader ]
  %83 = add nsw i64 %.3109164, 1
  %84 = mul nsw i64 %83, %83
  %85 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %3, ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %84) #7
  %86 = sext i32 %85 to i64
  %87 = add nsw i64 %82, %86
  %88 = load i64, ptr %1, align 8, !tbaa !5
  %89 = add nsw i64 %88, %indvars.iv194
  %90 = icmp slt i64 %87, %89
  br i1 %90, label %.lr.ph165, label %._crit_edge166, !llvm.loop !18

._crit_edge166:                                   ; preds = %.lr.ph165, %.preheader
  %.3117.lcssa = phi i32 [ %.2116, %.preheader ], [ %85, %.lr.ph165 ]
  %.3109.lcssa = phi i64 [ %.2108, %.preheader ], [ %83, %.lr.ph165 ]
  %.392.lcssa = phi i64 [ %.291, %.preheader ], [ %82, %.lr.ph165 ]
  %.lcssa150 = phi i64 [ %.pre-phi, %.preheader ], [ %89, %.lr.ph165 ]
  %91 = xor i64 %.3.lcssa, -1
  %92 = add i64 %.lcssa150, %91
  %93 = getelementptr inbounds [31 x i8], ptr %2, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !19
  %95 = sext i8 %94 to i32
  %96 = xor i64 %.392.lcssa, -1
  %97 = add i64 %.lcssa150, %96
  %98 = getelementptr inbounds [31 x i8], ptr %3, i64 0, i64 %97
  %99 = load i8, ptr %98, align 1, !tbaa !19
  %100 = sext i8 %99 to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  %101 = add nsw i32 %95, -96
  %102 = add nsw i32 %101, %100
  store i32 %102, ptr %5, align 4, !tbaa !20
  invoke void @_ZNSt6vectorIiSaIiEE9push_backEOi(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 4 dereferenceable(4) %5)
          to label %103 unwind label %111

103:                                              ; preds = %._crit_edge166
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  %104 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %105 = trunc i64 %104 to i32
  %106 = icmp sgt i32 %105, 0
  br i1 %106, label %.lr.ph175.preheader, label %.critedge

.lr.ph175.preheader:                              ; preds = %103
  %107 = and i64 %104, 2147483647
  br label %.lr.ph175

.lr.ph175:                                        ; preds = %.lr.ph175.preheader, %117
  %indvars.iv191 = phi i64 [ %107, %.lr.ph175.preheader ], [ %indvars.iv.next192, %117 ]
  %indvars.iv.next192 = add nsw i64 %indvars.iv191, -1
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next192) #7
  %109 = load i32, ptr %108, align 4, !tbaa !20
  %110 = icmp sgt i32 %109, 9
  br i1 %110, label %113, label %.critedge

.critedge:                                        ; preds = %113, %.lr.ph175, %117, %103
  %.not125 = icmp eq i64 %indvars.iv194, 0
  br i1 %.not125, label %.critedge130, label %123

111:                                              ; preds = %._crit_edge166
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  resume { ptr, i32 } %112

113:                                              ; preds = %.lr.ph175
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv.next192) #7
  %115 = load i32, ptr %114, align 4, !tbaa !20
  %116 = add nsw i32 %115, -10
  store i32 %116, ptr %114, align 4, !tbaa !20
  %.not126 = icmp eq i64 %indvars.iv.next192, 0
  br i1 %.not126, label %.critedge, label %117

117:                                              ; preds = %113
  %118 = add nsw i64 %indvars.iv191, -2
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %118) #7
  %120 = load i32, ptr %119, align 4, !tbaa !20
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %119, align 4, !tbaa !20
  %122 = icmp ugt i64 %indvars.iv191, 1
  br i1 %122, label %.lr.ph175, label %.critedge, !llvm.loop !22

123:                                              ; preds = %.critedge
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %125 = load i32, ptr %124, align 4, !tbaa !20
  %126 = icmp slt i32 %125, 9
  br i1 %126, label %127, label %.critedge130

.critedge130:                                     ; preds = %123, %.critedge
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  br label %65, !llvm.loop !23

127:                                              ; preds = %123
  %128 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  %129 = load i32, ptr %128, align 4, !tbaa !20
  %130 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %129)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 31, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

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

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: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #5

; 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 #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 #2 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 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 = { 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 = { 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 #4 = { noreturn 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { noreturn 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.unroll.disable"}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = distinct !{!22, !12}
!23 = distinct !{!23, !12}


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