; LLVM IR from tangjz/acm-icpc :: self_training/2015-02-09 (A)

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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@num = external dso_local global [101 x i32], align 16
@cnt = external dso_local global [101 x i32], align 16
@ans = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@out = external dso_local global [101 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7isprimei(i32 noundef) #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5issqui(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6iscubei(i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6isquadi(i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8issummuli(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8ismulmuli(i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6isfactii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5ismulii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8isothsquii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9isothcubeii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9isothquadii(i32 noundef, i32 noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11isothsummulii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11isothmulmulii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %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
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %251, %0
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = load i32, ptr @t, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %16, label %15

15:                                               ; preds = %11
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %254

16:                                               ; preds = %11
  %17 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %28, %16
  %19 = load i32, ptr %4, align 4, !tbaa !5
  %20 = load i32, ptr @n, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %18
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = sext i32 %24 to i64
  %26 = getelementptr inbounds i32, ptr @num, i64 %25
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %26)
  br label %28

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

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

32:                                               ; preds = %178, %31
  %33 = load i32, ptr %5, 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 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  br label %181

37:                                               ; preds = %32
  %38 = load i32, ptr %5, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = call noundef zeroext i1 @_Z7isprimei(i32 noundef %41)
  %43 = zext i1 %42 to i32
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = call noundef zeroext i1 @_Z5issqui(i32 noundef %47)
  %49 = zext i1 %48 to i32
  %50 = add nsw i32 %43, %49
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = call noundef zeroext i1 @_Z6iscubei(i32 noundef %54)
  %56 = zext i1 %55 to i32
  %57 = add nsw i32 %50, %56
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %59
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = call noundef zeroext i1 @_Z6isquadi(i32 noundef %61)
  %63 = zext i1 %62 to i32
  %64 = add nsw i32 %57, %63
  %65 = load i32, ptr %5, align 4, !tbaa !5
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %66
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = call noundef zeroext i1 @_Z8issummuli(i32 noundef %68)
  %70 = zext i1 %69 to i32
  %71 = add nsw i32 %64, %70
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = call noundef zeroext i1 @_Z8ismulmuli(i32 noundef %75)
  %77 = zext i1 %76 to i32
  %78 = add nsw i32 %71, %77
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %80
  store i32 %78, ptr %81, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %82

82:                                               ; preds = %174, %37
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %84 = load i32, ptr @n, align 4, !tbaa !5
  %85 = icmp slt i32 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %177

87:                                               ; preds = %82
  %88 = load i32, ptr %5, align 4, !tbaa !5
  %89 = load i32, ptr %6, align 4, !tbaa !5
  %90 = icmp ne i32 %88, %89
  br i1 %90, label %91, label %173

91:                                               ; preds = %87
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = call noundef zeroext i1 @_Z6isfactii(i32 noundef %95, i32 noundef %99)
  %101 = zext i1 %100 to i32
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = load i32, ptr %6, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = call noundef zeroext i1 @_Z5ismulii(i32 noundef %105, i32 noundef %109)
  %111 = zext i1 %110 to i32
  %112 = add nsw i32 %101, %111
  %113 = load i32, ptr %5, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %118
  %120 = load i32, ptr %119, align 4, !tbaa !5
  %121 = call noundef zeroext i1 @_Z8isothsquii(i32 noundef %116, i32 noundef %120)
  %122 = zext i1 %121 to i32
  %123 = add nsw i32 %112, %122
  %124 = load i32, ptr %5, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !5
  %132 = call noundef zeroext i1 @_Z9isothcubeii(i32 noundef %127, i32 noundef %131)
  %133 = zext i1 %132 to i32
  %134 = add nsw i32 %123, %133
  %135 = load i32, ptr %5, align 4, !tbaa !5
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %136
  %138 = load i32, ptr %137, align 4, !tbaa !5
  %139 = load i32, ptr %6, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %140
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = call noundef zeroext i1 @_Z9isothquadii(i32 noundef %138, i32 noundef %142)
  %144 = zext i1 %143 to i32
  %145 = add nsw i32 %134, %144
  %146 = load i32, ptr %5, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %147
  %149 = load i32, ptr %148, align 4, !tbaa !5
  %150 = load i32, ptr %6, align 4, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = call noundef zeroext i1 @_Z11isothsummulii(i32 noundef %149, i32 noundef %153)
  %155 = zext i1 %154 to i32
  %156 = add nsw i32 %145, %155
  %157 = load i32, ptr %5, align 4, !tbaa !5
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %158
  %160 = load i32, ptr %159, align 4, !tbaa !5
  %161 = load i32, ptr %6, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %162
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = call noundef zeroext i1 @_Z11isothmulmulii(i32 noundef %160, i32 noundef %164)
  %166 = zext i1 %165 to i32
  %167 = add nsw i32 %156, %166
  %168 = load i32, ptr %5, align 4, !tbaa !5
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = add nsw i32 %171, %167
  store i32 %172, ptr %170, align 4, !tbaa !5
  br label %173

173:                                              ; preds = %91, %87
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %6, align 4, !tbaa !5
  %176 = add nsw i32 %175, 1
  store i32 %176, ptr %6, align 4, !tbaa !5
  br label %82, !llvm.loop !11

177:                                              ; preds = %86
  br label %178

178:                                              ; preds = %177
  %179 = load i32, ptr %5, align 4, !tbaa !5
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %5, align 4, !tbaa !5
  br label %32, !llvm.loop !12

181:                                              ; preds = %36
  %182 = load i32, ptr @cnt, align 16, !tbaa !5
  store i32 %182, ptr @ans, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %201, %181
  %184 = load i32, ptr %7, align 4, !tbaa !5
  %185 = load i32, ptr @n, align 4, !tbaa !5
  %186 = icmp slt i32 %184, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %183
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %204

188:                                              ; preds = %183
  %189 = load i32, ptr @ans, align 4, !tbaa !5
  %190 = load i32, ptr %7, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %191
  %193 = load i32, ptr %192, align 4, !tbaa !5
  %194 = icmp slt i32 %189, %193
  br i1 %194, label %195, label %200

195:                                              ; preds = %188
  %196 = load i32, ptr %7, align 4, !tbaa !5
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %197
  %199 = load i32, ptr %198, align 4, !tbaa !5
  store i32 %199, ptr @ans, align 4, !tbaa !5
  br label %200

200:                                              ; preds = %195, %188
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %7, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %7, align 4, !tbaa !5
  br label %183, !llvm.loop !13

204:                                              ; preds = %187
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %227, %204
  %206 = load i32, ptr %8, align 4, !tbaa !5
  %207 = load i32, ptr @n, align 4, !tbaa !5
  %208 = icmp slt i32 %206, %207
  br i1 %208, label %210, label %209

209:                                              ; preds = %205
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %230

210:                                              ; preds = %205
  %211 = load i32, ptr @ans, align 4, !tbaa !5
  %212 = load i32, ptr %8, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = icmp eq i32 %211, %215
  br i1 %216, label %217, label %226

217:                                              ; preds = %210
  %218 = load i32, ptr %8, align 4, !tbaa !5
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !5
  %222 = load i32, ptr @tot, align 4, !tbaa !5
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr @tot, align 4, !tbaa !5
  %224 = sext i32 %222 to i64
  %225 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %224
  store i32 %221, ptr %225, align 4, !tbaa !5
  br label %226

226:                                              ; preds = %217, %210
  br label %227

227:                                              ; preds = %226
  %228 = load i32, ptr %8, align 4, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr %8, align 4, !tbaa !5
  br label %205, !llvm.loop !14

230:                                              ; preds = %209
  %231 = load i32, ptr @tot, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr @out, i64 %232
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @out, ptr noundef %233)
  %234 = load i32, ptr %2, align 4, !tbaa !5
  %235 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %234)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %236

236:                                              ; preds = %247, %230
  %237 = load i32, ptr %9, align 4, !tbaa !5
  %238 = load i32, ptr @tot, align 4, !tbaa !5
  %239 = icmp slt i32 %237, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  store i32 20, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %250

241:                                              ; preds = %236
  %242 = load i32, ptr %9, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %243
  %245 = load i32, ptr %244, align 4, !tbaa !5
  %246 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %245)
  br label %247

247:                                              ; preds = %241
  %248 = load i32, ptr %9, align 4, !tbaa !5
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %9, align 4, !tbaa !5
  br label %236, !llvm.loop !15

250:                                              ; preds = %240
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %2, align 4, !tbaa !5
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %2, align 4, !tbaa !5
  br label %11, !llvm.loop !16

254:                                              ; preds = %15
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #5

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

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


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

@t = external dso_local global i32, align 4
@n = external dso_local global i32, align 4
@num = external dso_local global [101 x i32], align 16
@cnt = external dso_local local_unnamed_addr global [101 x i32], align 16
@ans = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@out = external dso_local global [101 x i32], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z7isprimei(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5issqui(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6iscubei(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z6isquadi(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8issummuli(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z8ismulmuli(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z6isfactii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z5ismulii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z8isothsquii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9isothcubeii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z9isothquadii(i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11isothsummulii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z11isothmulmulii(i32 noundef, i32 noundef) local_unnamed_addr #1

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

._crit_edge75:                                    ; preds = %._crit_edge70, %0
  ret i32 0

.lr.ph74:                                         ; preds = %0, %._crit_edge70
  %.05072 = phi i32 [ %161, %._crit_edge70 ], [ 1, %0 ]
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge62.thread

.preheader:                                       ; preds = %.lr.ph
  %6 = icmp sgt i32 %9, 0
  br i1 %6, label %.lr.ph57, label %._crit_edge62.thread

.lr.ph:                                           ; preds = %.lr.ph74, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph74 ]
  %7 = getelementptr inbounds i32, ptr @num, i64 %indvars.iv
  %8 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %7)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %9 = load i32, ptr @n, align 4, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = icmp slt i64 %indvars.iv.next, %10
  br i1 %11, label %.lr.ph, label %.preheader, !llvm.loop !9

._crit_edge62.thread:                             ; preds = %.lr.ph74, %.preheader
  %12 = load i32, ptr @cnt, align 16, !tbaa !5
  store i32 %12, ptr @ans, align 4, !tbaa !5
  store i32 0, ptr @tot, align 4, !tbaa !5
  br label %._crit_edge66

._crit_edge58:                                    ; preds = %._crit_edge
  %13 = load i32, ptr @cnt, align 16, !tbaa !5
  store i32 %13, ptr @ans, align 4, !tbaa !5
  %14 = icmp sgt i32 %45, 1
  br i1 %14, label %.lr.ph61.preheader, label %._crit_edge62

.lr.ph61.preheader:                               ; preds = %._crit_edge58
  %wide.trip.count = zext nneg i32 %45 to i64
  %15 = add nsw i64 %wide.trip.count, -1
  %16 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %15, 3
  %17 = icmp ult i64 %16, 3
  br i1 %17, label %._crit_edge62.loopexit.unr-lcssa, label %.lr.ph61.preheader.new

.lr.ph61.preheader.new:                           ; preds = %.lr.ph61.preheader
  %unroll_iter = and i64 %15, -4
  br label %.lr.ph61

.lr.ph57:                                         ; preds = %.preheader, %._crit_edge
  %indvars.iv81 = phi i64 [ %indvars.iv.next82, %._crit_edge ], [ 0, %.preheader ]
  %18 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %indvars.iv81
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = tail call noundef zeroext i1 @_Z7isprimei(i32 noundef %19)
  %21 = zext i1 %20 to i32
  %22 = load i32, ptr %18, align 4, !tbaa !5
  %23 = tail call noundef zeroext i1 @_Z5issqui(i32 noundef %22)
  %24 = zext i1 %23 to i32
  %25 = add nuw nsw i32 %24, %21
  %26 = load i32, ptr %18, align 4, !tbaa !5
  %27 = tail call noundef zeroext i1 @_Z6iscubei(i32 noundef %26)
  %28 = zext i1 %27 to i32
  %29 = add nuw nsw i32 %25, %28
  %30 = load i32, ptr %18, align 4, !tbaa !5
  %31 = tail call noundef zeroext i1 @_Z6isquadi(i32 noundef %30)
  %32 = zext i1 %31 to i32
  %33 = add nuw nsw i32 %29, %32
  %34 = load i32, ptr %18, align 4, !tbaa !5
  %35 = tail call noundef zeroext i1 @_Z8issummuli(i32 noundef %34)
  %36 = zext i1 %35 to i32
  %37 = add nuw nsw i32 %33, %36
  %38 = load i32, ptr %18, align 4, !tbaa !5
  %39 = tail call noundef zeroext i1 @_Z8ismulmuli(i32 noundef %38)
  %40 = zext i1 %39 to i32
  %41 = add nuw nsw i32 %37, %40
  %42 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv81
  store i32 %41, ptr %42, align 4, !tbaa !5
  %43 = load i32, ptr @n, align 4, !tbaa !5
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %.lr.ph55, label %.lr.ph57.._crit_edge_crit_edge

.lr.ph57.._crit_edge_crit_edge:                   ; preds = %.lr.ph57
  %.pre95 = sext i32 %43 to i64
  br label %._crit_edge

._crit_edge:                                      ; preds = %86, %.lr.ph57.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre95, %.lr.ph57.._crit_edge_crit_edge ], [ %88, %86 ]
  %45 = phi i32 [ %43, %.lr.ph57.._crit_edge_crit_edge ], [ %87, %86 ]
  %indvars.iv.next82 = add nuw nsw i64 %indvars.iv81, 1
  %46 = icmp slt i64 %indvars.iv.next82, %.pre-phi
  br i1 %46, label %.lr.ph57, label %._crit_edge58, !llvm.loop !11

.lr.ph55:                                         ; preds = %.lr.ph57, %86
  %47 = phi i32 [ %87, %86 ], [ %43, %.lr.ph57 ]
  %indvars.iv78 = phi i64 [ %indvars.iv.next79, %86 ], [ 0, %.lr.ph57 ]
  %.not52 = icmp eq i64 %indvars.iv81, %indvars.iv78
  br i1 %.not52, label %86, label %48

48:                                               ; preds = %.lr.ph55
  %49 = load i32, ptr %18, align 4, !tbaa !5
  %50 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %indvars.iv78
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = tail call noundef zeroext i1 @_Z6isfactii(i32 noundef %49, i32 noundef %51)
  %53 = zext i1 %52 to i32
  %54 = load i32, ptr %18, align 4, !tbaa !5
  %55 = load i32, ptr %50, align 4, !tbaa !5
  %56 = tail call noundef zeroext i1 @_Z5ismulii(i32 noundef %54, i32 noundef %55)
  %57 = zext i1 %56 to i32
  %58 = add nuw nsw i32 %57, %53
  %59 = load i32, ptr %18, align 4, !tbaa !5
  %60 = load i32, ptr %50, align 4, !tbaa !5
  %61 = tail call noundef zeroext i1 @_Z8isothsquii(i32 noundef %59, i32 noundef %60)
  %62 = zext i1 %61 to i32
  %63 = add nuw nsw i32 %58, %62
  %64 = load i32, ptr %18, align 4, !tbaa !5
  %65 = load i32, ptr %50, align 4, !tbaa !5
  %66 = tail call noundef zeroext i1 @_Z9isothcubeii(i32 noundef %64, i32 noundef %65)
  %67 = zext i1 %66 to i32
  %68 = add nuw nsw i32 %63, %67
  %69 = load i32, ptr %18, align 4, !tbaa !5
  %70 = load i32, ptr %50, align 4, !tbaa !5
  %71 = tail call noundef zeroext i1 @_Z9isothquadii(i32 noundef %69, i32 noundef %70)
  %72 = zext i1 %71 to i32
  %73 = add nuw nsw i32 %68, %72
  %74 = load i32, ptr %18, align 4, !tbaa !5
  %75 = load i32, ptr %50, align 4, !tbaa !5
  %76 = tail call noundef zeroext i1 @_Z11isothsummulii(i32 noundef %74, i32 noundef %75)
  %77 = zext i1 %76 to i32
  %78 = add nuw nsw i32 %73, %77
  %79 = load i32, ptr %18, align 4, !tbaa !5
  %80 = load i32, ptr %50, align 4, !tbaa !5
  %81 = tail call noundef zeroext i1 @_Z11isothmulmulii(i32 noundef %79, i32 noundef %80)
  %82 = zext i1 %81 to i32
  %83 = add nuw nsw i32 %78, %82
  %84 = load i32, ptr %42, align 4, !tbaa !5
  %85 = add nsw i32 %83, %84
  store i32 %85, ptr %42, align 4, !tbaa !5
  %.pre = load i32, ptr @n, align 4, !tbaa !5
  br label %86

86:                                               ; preds = %.lr.ph55, %48
  %87 = phi i32 [ %47, %.lr.ph55 ], [ %.pre, %48 ]
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %88 = sext i32 %87 to i64
  %89 = icmp slt i64 %indvars.iv.next79, %88
  br i1 %89, label %.lr.ph55, label %._crit_edge, !llvm.loop !12

._crit_edge62.loopexit.unr-lcssa:                 ; preds = %120, %.lr.ph61.preheader
  %.lcssa112.ph = phi i32 [ poison, %.lr.ph61.preheader ], [ %121, %120 ]
  %indvars.iv84.unr = phi i64 [ 1, %.lr.ph61.preheader ], [ %indvars.iv.next85.3, %120 ]
  %.unr = phi i32 [ %13, %.lr.ph61.preheader ], [ %121, %120 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge62, label %.lr.ph61.epil

.lr.ph61.epil:                                    ; preds = %._crit_edge62.loopexit.unr-lcssa, %95
  %indvars.iv84.epil = phi i64 [ %indvars.iv.next85.epil, %95 ], [ %indvars.iv84.unr, %._crit_edge62.loopexit.unr-lcssa ]
  %90 = phi i32 [ %96, %95 ], [ %.unr, %._crit_edge62.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %95 ], [ 0, %._crit_edge62.loopexit.unr-lcssa ]
  %91 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv84.epil
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = icmp slt i32 %90, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %.lr.ph61.epil
  store i32 %92, ptr @ans, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %94, %.lr.ph61.epil
  %96 = phi i32 [ %90, %.lr.ph61.epil ], [ %92, %94 ]
  %indvars.iv.next85.epil = add nuw nsw i64 %indvars.iv84.epil, 1
  %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_edge62, label %.lr.ph61.epil, !llvm.loop !13

._crit_edge62:                                    ; preds = %._crit_edge62.loopexit.unr-lcssa, %95, %._crit_edge58
  %97 = phi i32 [ %13, %._crit_edge58 ], [ %.lcssa112.ph, %._crit_edge62.loopexit.unr-lcssa ], [ %96, %95 ]
  store i32 0, ptr @tot, align 4, !tbaa !5
  %98 = icmp sgt i32 %45, 0
  br i1 %98, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %._crit_edge62
  %wide.trip.count90 = zext nneg i32 %45 to i64
  %xtraiter115 = and i64 %wide.trip.count90, 1
  %99 = icmp eq i32 %45, 1
  br i1 %99, label %._crit_edge66.loopexit.unr-lcssa, label %.lr.ph65.new

.lr.ph65.new:                                     ; preds = %.lr.ph65
  %unroll_iter120 = and i64 %wide.trip.count90, 2147483646
  br label %137

.lr.ph61:                                         ; preds = %120, %.lr.ph61.preheader.new
  %indvars.iv84 = phi i64 [ 1, %.lr.ph61.preheader.new ], [ %indvars.iv.next85.3, %120 ]
  %100 = phi i32 [ %13, %.lr.ph61.preheader.new ], [ %121, %120 ]
  %niter = phi i64 [ 0, %.lr.ph61.preheader.new ], [ %niter.next.3, %120 ]
  %101 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv84
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %104, label %.lr.ph61.1

104:                                              ; preds = %.lr.ph61
  store i32 %102, ptr @ans, align 4, !tbaa !5
  br label %.lr.ph61.1

.lr.ph61.1:                                       ; preds = %.lr.ph61, %104
  %105 = phi i32 [ %100, %.lr.ph61 ], [ %102, %104 ]
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %106 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next85
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = icmp slt i32 %105, %107
  br i1 %108, label %109, label %.lr.ph61.2

109:                                              ; preds = %.lr.ph61.1
  store i32 %107, ptr @ans, align 4, !tbaa !5
  br label %.lr.ph61.2

.lr.ph61.2:                                       ; preds = %109, %.lr.ph61.1
  %110 = phi i32 [ %105, %.lr.ph61.1 ], [ %107, %109 ]
  %indvars.iv.next85.1 = add nuw nsw i64 %indvars.iv84, 2
  %111 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next85.1
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp slt i32 %110, %112
  br i1 %113, label %114, label %.lr.ph61.3

114:                                              ; preds = %.lr.ph61.2
  store i32 %112, ptr @ans, align 4, !tbaa !5
  br label %.lr.ph61.3

.lr.ph61.3:                                       ; preds = %114, %.lr.ph61.2
  %115 = phi i32 [ %110, %.lr.ph61.2 ], [ %112, %114 ]
  %indvars.iv.next85.2 = add nuw nsw i64 %indvars.iv84, 3
  %116 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next85.2
  %117 = load i32, ptr %116, align 4, !tbaa !5
  %118 = icmp slt i32 %115, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %.lr.ph61.3
  store i32 %117, ptr @ans, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %119, %.lr.ph61.3
  %121 = phi i32 [ %115, %.lr.ph61.3 ], [ %117, %119 ]
  %indvars.iv.next85.3 = add nuw nsw i64 %indvars.iv84, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge62.loopexit.unr-lcssa, label %.lr.ph61, !llvm.loop !15

._crit_edge66.loopexit.unr-lcssa:                 ; preds = %159, %.lr.ph65
  %.lcssa113.ph = phi i32 [ poison, %.lr.ph65 ], [ %160, %159 ]
  %indvars.iv87.unr = phi i64 [ 0, %.lr.ph65 ], [ %indvars.iv.next88.1, %159 ]
  %.unr117 = phi i32 [ 0, %.lr.ph65 ], [ %160, %159 ]
  %lcmp.mod118.not = icmp eq i64 %xtraiter115, 0
  br i1 %lcmp.mod118.not, label %._crit_edge66, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge66.loopexit.unr-lcssa
  %122 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv87.unr
  %123 = load i32, ptr %122, align 4, !tbaa !5
  %124 = icmp eq i32 %97, %123
  br i1 %124, label %125, label %._crit_edge66

125:                                              ; preds = %.epil.preheader
  %126 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %indvars.iv87.unr
  %127 = load i32, ptr %126, align 4, !tbaa !5
  %128 = add nsw i32 %.unr117, 1
  store i32 %128, ptr @tot, align 4, !tbaa !5
  %129 = sext i32 %.unr117 to i64
  %130 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !5
  br label %._crit_edge66

._crit_edge66:                                    ; preds = %._crit_edge66.loopexit.unr-lcssa, %125, %.epil.preheader, %._crit_edge62.thread, %._crit_edge62
  %131 = phi i32 [ 0, %._crit_edge62 ], [ 0, %._crit_edge62.thread ], [ %.lcssa113.ph, %._crit_edge66.loopexit.unr-lcssa ], [ %.unr117, %.epil.preheader ], [ %128, %125 ]
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds i32, ptr @out, i64 %132
  tail call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @out, ptr noundef nonnull %133)
  %134 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.05072)
  %135 = load i32, ptr @tot, align 4, !tbaa !5
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %.lr.ph69, label %._crit_edge70

137:                                              ; preds = %159, %.lr.ph65.new
  %indvars.iv87 = phi i64 [ 0, %.lr.ph65.new ], [ %indvars.iv.next88.1, %159 ]
  %138 = phi i32 [ 0, %.lr.ph65.new ], [ %160, %159 ]
  %niter121 = phi i64 [ 0, %.lr.ph65.new ], [ %niter121.next.1, %159 ]
  %139 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv87
  %140 = load i32, ptr %139, align 8, !tbaa !5
  %141 = icmp eq i32 %97, %140
  br i1 %141, label %142, label %148

142:                                              ; preds = %137
  %143 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %indvars.iv87
  %144 = load i32, ptr %143, align 8, !tbaa !5
  %145 = add nsw i32 %138, 1
  store i32 %145, ptr @tot, align 4, !tbaa !5
  %146 = sext i32 %138 to i64
  %147 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %146
  store i32 %144, ptr %147, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %137, %142
  %149 = phi i32 [ %138, %137 ], [ %145, %142 ]
  %indvars.iv.next88 = or disjoint i64 %indvars.iv87, 1
  %150 = getelementptr inbounds [101 x i32], ptr @cnt, i64 0, i64 %indvars.iv.next88
  %151 = load i32, ptr %150, align 4, !tbaa !5
  %152 = icmp eq i32 %97, %151
  br i1 %152, label %153, label %159

153:                                              ; preds = %148
  %154 = getelementptr inbounds [101 x i32], ptr @num, i64 0, i64 %indvars.iv.next88
  %155 = load i32, ptr %154, align 4, !tbaa !5
  %156 = add nsw i32 %149, 1
  store i32 %156, ptr @tot, align 4, !tbaa !5
  %157 = sext i32 %149 to i64
  %158 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %157
  store i32 %155, ptr %158, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %153, %148
  %160 = phi i32 [ %149, %148 ], [ %156, %153 ]
  %indvars.iv.next88.1 = add nuw nsw i64 %indvars.iv87, 2
  %niter121.next.1 = add i64 %niter121, 2
  %niter121.ncmp.1 = icmp eq i64 %niter121.next.1, %unroll_iter120
  br i1 %niter121.ncmp.1, label %._crit_edge66.loopexit.unr-lcssa, label %137, !llvm.loop !16

._crit_edge70:                                    ; preds = %.lr.ph69, %._crit_edge66
  %161 = add nuw nsw i32 %.05072, 1
  %162 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.05072, %162
  br i1 %.not.not, label %.lr.ph74, label %._crit_edge75, !llvm.loop !17

.lr.ph69:                                         ; preds = %._crit_edge66, %.lr.ph69
  %indvars.iv92 = phi i64 [ %indvars.iv.next93, %.lr.ph69 ], [ 0, %._crit_edge66 ]
  %163 = getelementptr inbounds [101 x i32], ptr @out, i64 0, i64 %indvars.iv92
  %164 = load i32, ptr %163, align 4, !tbaa !5
  %165 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %164)
  %indvars.iv.next93 = add nuw nsw i64 %indvars.iv92, 1
  %166 = load i32, ptr @tot, align 4, !tbaa !5
  %167 = sext i32 %166 to i64
  %168 = icmp slt i64 %indvars.iv.next93, %167
  br i1 %168, label %.lr.ph69, label %._crit_edge70, !llvm.loop !18
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #4

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

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

!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, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}


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