; LLVM IR from tangjz/acm-icpc :: buaa/oj3rd (1113)

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

@out = external dso_local global ptr, align 8
@n = external dso_local global i32, align 4
@now = external dso_local global [20 x i32], align 16
@seq = external dso_local global [150 x i32], align 16
@all = external dso_local global [40 x i32], align 16
@wan = external dso_local global [40 x i32], align 16
@fin = external dso_local global i32, align 4
@push = external dso_local global [150 x i32], align 16
@str = external dso_local global [150 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5transPc(ptr 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 @_Z5judgei(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
  br label %10

10:                                               ; preds = %188, %0
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @str)
  %12 = icmp ne i32 %11, -1
  br i1 %12, label %13, label %189

13:                                               ; preds = %10
  %14 = call noundef i32 @_Z5transPc(ptr noundef @str)
  store i32 %14, ptr @now, align 16, !tbaa !5
  %15 = load i32, ptr @now, align 16, !tbaa !5
  %16 = sext i32 %15 to i64
  %17 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = add nsw i32 %18, 1
  store i32 %19, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %38, %13
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 13
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %41

24:                                               ; preds = %20
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @str)
  %26 = call noundef i32 @_Z5transPc(ptr noundef @str)
  %27 = load i32, ptr %2, align 4, !tbaa !5
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [20 x i32], ptr @now, i64 0, i64 %28
  store i32 %26, ptr %29, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [20 x i32], ptr @now, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %34
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %24
  %39 = load i32, ptr %2, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !5
  br label %20, !llvm.loop !9

41:                                               ; preds = %23
  %42 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef @n)
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %62, %41
  %44 = load i32, ptr %3, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %65

48:                                               ; preds = %43
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @str)
  %50 = call noundef i32 @_Z5transPc(ptr noundef @str)
  %51 = load i32, ptr %3, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %52
  store i32 %50, ptr %53, align 4, !tbaa !5
  %54 = load i32, ptr %3, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %48
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %3, align 4, !tbaa !5
  br label %43, !llvm.loop !11

65:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  %66 = load i32, ptr @n, align 4, !tbaa !5
  store i32 %66, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  br label %67

67:                                               ; preds = %83, %65
  %68 = load i32, ptr %4, align 4, !tbaa !5
  %69 = load i32, ptr %5, align 4, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %71, label %84

71:                                               ; preds = %67
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = load i32, ptr %5, align 4, !tbaa !5
  %74 = add nsw i32 %72, %73
  %75 = ashr i32 %74, 1
  store i32 %75, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = call noundef zeroext i1 @_Z5judgei(i32 noundef %76)
  br i1 %77, label %78, label %80

78:                                               ; preds = %71
  %79 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %79, ptr %5, align 4, !tbaa !5
  br label %83

80:                                               ; preds = %71
  %81 = load i32, ptr %6, align 4, !tbaa !5
  %82 = add nsw i32 %81, 1
  store i32 %82, ptr %4, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %80, %78
  br label %67, !llvm.loop !12

84:                                               ; preds = %67
  %85 = load i32, ptr %4, align 4, !tbaa !5
  %86 = call noundef zeroext i1 @_Z5judgei(i32 noundef %85)
  store i32 0, ptr @push, align 16, !tbaa !5
  store i32 0, ptr @fin, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %121, %84
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 13
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %124

91:                                               ; preds = %87
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [20 x i32], ptr @now, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %96
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %100, label %111

100:                                              ; preds = %91
  %101 = load i32, ptr %7, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [20 x i32], ptr @now, i64 0, i64 %102
  %104 = load i32, ptr %103, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = add nsw i32 %107, -1
  store i32 %108, ptr %106, align 4, !tbaa !5
  %109 = load i32, ptr @fin, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr @fin, align 4, !tbaa !5
  br label %120

111:                                              ; preds = %91
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [20 x i32], ptr @now, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr @push, align 16, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr @push, align 16, !tbaa !5
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %118
  store i32 %115, ptr %119, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %111, %100
  br label %121

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

124:                                              ; preds = %90
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %125

125:                                              ; preds = %184, %124
  %126 = load i32, ptr %8, align 4, !tbaa !5
  %127 = load i32, ptr @n, align 4, !tbaa !5
  %128 = icmp slt i32 %126, %127
  br i1 %128, label %130, label %129

129:                                              ; preds = %125
  store i32 15, ptr %9, align 4
  br label %187

130:                                              ; preds = %125
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %135
  %137 = load i32, ptr %136, align 4, !tbaa !5
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %150

139:                                              ; preds = %130
  %140 = load i32, ptr %8, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %141
  %143 = load i32, ptr %142, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %144
  %146 = load i32, ptr %145, align 4, !tbaa !5
  %147 = add nsw i32 %146, -1
  store i32 %147, ptr %145, align 4, !tbaa !5
  %148 = load i32, ptr @fin, align 4, !tbaa !5
  %149 = add nsw i32 %148, 1
  store i32 %149, ptr @fin, align 4, !tbaa !5
  br label %159

150:                                              ; preds = %130
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %152
  %154 = load i32, ptr %153, align 4, !tbaa !5
  %155 = load i32, ptr @push, align 16, !tbaa !5
  %156 = add nsw i32 %155, 1
  store i32 %156, ptr @push, align 16, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %157
  store i32 %154, ptr %158, align 4, !tbaa !5
  br label %159

159:                                              ; preds = %150, %139
  %160 = load i32, ptr @fin, align 4, !tbaa !5
  %161 = icmp eq i32 %160, 14
  br i1 %161, label %162, label %164

162:                                              ; preds = %159
  %163 = call i32 @puts(ptr noundef @.str.3)
  store i32 15, ptr %9, align 4
  br label %187

164:                                              ; preds = %159
  %165 = load i32, ptr @push, align 16, !tbaa !5
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %166
  %168 = load i32, ptr %167, align 4, !tbaa !5
  %169 = srem i32 %168, 9
  %170 = add nsw i32 %169, 1
  %171 = load ptr, ptr @out, align 8, !tbaa !14
  %172 = load i32, ptr @push, align 16, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %173
  %175 = load i32, ptr %174, align 4, !tbaa !5
  %176 = sdiv i32 %175, 9
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i8, ptr %171, i64 %177
  %179 = load i8, ptr %178, align 1, !tbaa !16
  %180 = sext i8 %179 to i32
  %181 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %170, i32 noundef %180)
  %182 = load i32, ptr @push, align 16, !tbaa !5
  %183 = add nsw i32 %182, -1
  store i32 %183, ptr @push, align 16, !tbaa !5
  br label %184

184:                                              ; preds = %164
  %185 = load i32, ptr %8, align 4, !tbaa !5
  %186 = add nsw i32 %185, 1
  store i32 %186, ptr %8, align 4, !tbaa !5
  br label %125, !llvm.loop !17

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

188:                                              ; preds = %187
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %10, !llvm.loop !18

189:                                              ; preds = %10
  ret i32 0
}

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

declare i32 @puts(ptr noundef) #4

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

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


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

@out = external dso_local local_unnamed_addr global ptr, align 8
@n = external dso_local global i32, align 4
@now = external dso_local local_unnamed_addr global [20 x i32], align 16
@seq = external dso_local local_unnamed_addr global [150 x i32], align 16
@all = external dso_local local_unnamed_addr global [40 x i32], align 16
@wan = external dso_local local_unnamed_addr global [40 x i32], align 16
@fin = external dso_local local_unnamed_addr global i32, align 4
@push = external dso_local local_unnamed_addr global [150 x i32], align 16
@str = external dso_local global [150 x i8], align 16
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5transPc(ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z5judgei(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.1, ptr noundef nonnull @str)
  %.not47 = icmp eq i32 %1, -1
  br i1 %.not47, label %._crit_edge50, label %.lr.ph49

.lr.ph49:                                         ; preds = %0, %.loopexit
  %2 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %2, ptr @now, align 16, !tbaa !5
  %3 = sext i32 %2 to i64
  %4 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %3
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %4, align 4, !tbaa !5
  %7 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %8 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %8, ptr getelementptr inbounds (i8, ptr @now, i64 4), align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %10, align 4, !tbaa !5
  %13 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %14 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %14, ptr getelementptr inbounds (i8, ptr @now, i64 8), align 8, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr %16, align 4, !tbaa !5
  %19 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %20 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %20, ptr getelementptr inbounds (i8, ptr @now, i64 12), align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %22, align 4, !tbaa !5
  %25 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %26 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %26, ptr getelementptr inbounds (i8, ptr @now, i64 16), align 16, !tbaa !5
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %28, align 4, !tbaa !5
  %31 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %32 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %32, ptr getelementptr inbounds (i8, ptr @now, i64 20), align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 4, !tbaa !5
  %37 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %38 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %38, ptr getelementptr inbounds (i8, ptr @now, i64 24), align 8, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !5
  %43 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %44 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %44, ptr getelementptr inbounds (i8, ptr @now, i64 28), align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !5
  %49 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %50 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %50, ptr getelementptr inbounds (i8, ptr @now, i64 32), align 16, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 4, !tbaa !5
  %55 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %56 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %56, ptr getelementptr inbounds (i8, ptr @now, i64 36), align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !5
  %61 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %62 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %62, ptr getelementptr inbounds (i8, ptr @now, i64 40), align 8, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !5
  %67 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %68 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %68, ptr getelementptr inbounds (i8, ptr @now, i64 44), align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !5
  %73 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %74 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  store i32 %74, ptr getelementptr inbounds (i8, ptr @now, i64 48), align 16, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !5
  %79 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull @n)
  %80 = load i32, ptr @n, align 4, !tbaa !5
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.lr.ph, label %._crit_edge

.preheader37:                                     ; preds = %.lr.ph
  %82 = icmp sgt i32 %90, 0
  br i1 %82, label %.lr.ph42, label %._crit_edge

.lr.ph:                                           ; preds = %.lr.ph49, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.lr.ph49 ]
  %83 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %84 = tail call noundef i32 @_Z5transPc(ptr noundef nonnull @str)
  %85 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %indvars.iv
  store i32 %84, ptr %85, align 4, !tbaa !5
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds [40 x i32], ptr @all, i64 0, i64 %86
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %87, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %90 = load i32, ptr @n, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = icmp slt i64 %indvars.iv.next, %91
  br i1 %92, label %.lr.ph, label %.preheader37, !llvm.loop !9

.lr.ph42:                                         ; preds = %.preheader37, %.lr.ph42
  %.02841 = phi i32 [ %.1, %.lr.ph42 ], [ %90, %.preheader37 ]
  %.02940 = phi i32 [ %.130, %.lr.ph42 ], [ 0, %.preheader37 ]
  %93 = add nuw nsw i32 %.02841, %.02940
  %94 = lshr i32 %93, 1
  %95 = tail call noundef zeroext i1 @_Z5judgei(i32 noundef %94)
  %96 = add nuw nsw i32 %94, 1
  %.130 = select i1 %95, i32 %.02940, i32 %96
  %.1 = select i1 %95, i32 %94, i32 %.02841
  %97 = icmp slt i32 %.130, %.1
  br i1 %97, label %.lr.ph42, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph42, %.lr.ph49, %.preheader37
  %.029.lcssa = phi i32 [ 0, %.preheader37 ], [ 0, %.lr.ph49 ], [ %.130, %.lr.ph42 ]
  %98 = tail call noundef zeroext i1 @_Z5judgei(i32 noundef %.029.lcssa)
  store i32 0, ptr @push, align 16, !tbaa !5
  store i32 0, ptr @fin, align 4, !tbaa !5
  %99 = load i32, ptr @now, align 16, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  %.not36 = icmp eq i32 %102, 0
  br i1 %.not36, label %105, label %103

103:                                              ; preds = %._crit_edge
  %104 = add nsw i32 %102, -1
  store i32 %104, ptr %101, align 4, !tbaa !5
  store i32 1, ptr @fin, align 4, !tbaa !5
  br label %106

105:                                              ; preds = %._crit_edge
  store i32 1, ptr @push, align 16, !tbaa !5
  store i32 %99, ptr getelementptr inbounds (i8, ptr @push, i64 4), align 4, !tbaa !5
  br label %106

106:                                              ; preds = %103, %105
  %107 = phi i32 [ 0, %103 ], [ 1, %105 ]
  %108 = phi i32 [ 1, %103 ], [ 0, %105 ]
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 4), align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %.not36.1 = icmp eq i32 %112, 0
  br i1 %.not36.1, label %116, label %113

113:                                              ; preds = %106
  %114 = add nsw i32 %112, -1
  store i32 %114, ptr %111, align 4, !tbaa !5
  %115 = add nuw nsw i32 %108, 1
  store i32 %115, ptr @fin, align 4, !tbaa !5
  br label %120

116:                                              ; preds = %106
  %117 = add nuw nsw i32 %107, 1
  store i32 %117, ptr @push, align 16, !tbaa !5
  %118 = zext nneg i32 %117 to i64
  %119 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %118
  store i32 %109, ptr %119, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %116, %113
  %121 = phi i32 [ %107, %113 ], [ %117, %116 ]
  %122 = phi i32 [ %115, %113 ], [ %108, %116 ]
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 8), align 8, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %.not36.2 = icmp eq i32 %126, 0
  br i1 %.not36.2, label %130, label %127

127:                                              ; preds = %120
  %128 = add nsw i32 %126, -1
  store i32 %128, ptr %125, align 4, !tbaa !5
  %129 = add nuw nsw i32 %122, 1
  store i32 %129, ptr @fin, align 4, !tbaa !5
  br label %134

130:                                              ; preds = %120
  %131 = add nuw nsw i32 %121, 1
  store i32 %131, ptr @push, align 16, !tbaa !5
  %132 = zext nneg i32 %131 to i64
  %133 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %132
  store i32 %123, ptr %133, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %130, %127
  %135 = phi i32 [ %129, %127 ], [ %122, %130 ]
  %136 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 12), align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !5
  %.not36.3 = icmp eq i32 %139, 0
  br i1 %.not36.3, label %143, label %140

140:                                              ; preds = %134
  %141 = add nsw i32 %139, -1
  store i32 %141, ptr %138, align 4, !tbaa !5
  %142 = add nuw nsw i32 %135, 1
  store i32 %142, ptr @fin, align 4, !tbaa !5
  br label %148

143:                                              ; preds = %134
  %144 = load i32, ptr @push, align 16, !tbaa !5
  %145 = add nsw i32 %144, 1
  store i32 %145, ptr @push, align 16, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %146
  store i32 %136, ptr %147, align 4, !tbaa !5
  br label %148

148:                                              ; preds = %143, %140
  %149 = phi i32 [ %142, %140 ], [ %135, %143 ]
  %150 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 16), align 16, !tbaa !5
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %.not36.4 = icmp eq i32 %153, 0
  br i1 %.not36.4, label %157, label %154

154:                                              ; preds = %148
  %155 = add nsw i32 %153, -1
  store i32 %155, ptr %152, align 4, !tbaa !5
  %156 = add nuw nsw i32 %149, 1
  store i32 %156, ptr @fin, align 4, !tbaa !5
  br label %162

157:                                              ; preds = %148
  %158 = load i32, ptr @push, align 16, !tbaa !5
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr @push, align 16, !tbaa !5
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %160
  store i32 %150, ptr %161, align 4, !tbaa !5
  br label %162

162:                                              ; preds = %157, %154
  %163 = phi i32 [ %156, %154 ], [ %149, %157 ]
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 20), align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %165
  %167 = load i32, ptr %166, align 4, !tbaa !5
  %.not36.5 = icmp eq i32 %167, 0
  br i1 %.not36.5, label %171, label %168

168:                                              ; preds = %162
  %169 = add nsw i32 %167, -1
  store i32 %169, ptr %166, align 4, !tbaa !5
  %170 = add nuw nsw i32 %163, 1
  store i32 %170, ptr @fin, align 4, !tbaa !5
  br label %176

171:                                              ; preds = %162
  %172 = load i32, ptr @push, align 16, !tbaa !5
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr @push, align 16, !tbaa !5
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %174
  store i32 %164, ptr %175, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %171, %168
  %177 = phi i32 [ %170, %168 ], [ %163, %171 ]
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 24), align 8, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %179
  %181 = load i32, ptr %180, align 4, !tbaa !5
  %.not36.6 = icmp eq i32 %181, 0
  br i1 %.not36.6, label %185, label %182

182:                                              ; preds = %176
  %183 = add nsw i32 %181, -1
  store i32 %183, ptr %180, align 4, !tbaa !5
  %184 = add nuw nsw i32 %177, 1
  store i32 %184, ptr @fin, align 4, !tbaa !5
  br label %190

185:                                              ; preds = %176
  %186 = load i32, ptr @push, align 16, !tbaa !5
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr @push, align 16, !tbaa !5
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %188
  store i32 %178, ptr %189, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %185, %182
  %191 = phi i32 [ %184, %182 ], [ %177, %185 ]
  %192 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 28), align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !5
  %.not36.7 = icmp eq i32 %195, 0
  br i1 %.not36.7, label %199, label %196

196:                                              ; preds = %190
  %197 = add nsw i32 %195, -1
  store i32 %197, ptr %194, align 4, !tbaa !5
  %198 = add nuw nsw i32 %191, 1
  store i32 %198, ptr @fin, align 4, !tbaa !5
  br label %204

199:                                              ; preds = %190
  %200 = load i32, ptr @push, align 16, !tbaa !5
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr @push, align 16, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %202
  store i32 %192, ptr %203, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %199, %196
  %205 = phi i32 [ %198, %196 ], [ %191, %199 ]
  %206 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 32), align 16, !tbaa !5
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %207
  %209 = load i32, ptr %208, align 4, !tbaa !5
  %.not36.8 = icmp eq i32 %209, 0
  br i1 %.not36.8, label %213, label %210

210:                                              ; preds = %204
  %211 = add nsw i32 %209, -1
  store i32 %211, ptr %208, align 4, !tbaa !5
  %212 = add nuw nsw i32 %205, 1
  store i32 %212, ptr @fin, align 4, !tbaa !5
  br label %218

213:                                              ; preds = %204
  %214 = load i32, ptr @push, align 16, !tbaa !5
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr @push, align 16, !tbaa !5
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %216
  store i32 %206, ptr %217, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %213, %210
  %219 = phi i32 [ %212, %210 ], [ %205, %213 ]
  %220 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 36), align 4, !tbaa !5
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %221
  %223 = load i32, ptr %222, align 4, !tbaa !5
  %.not36.9 = icmp eq i32 %223, 0
  br i1 %.not36.9, label %227, label %224

224:                                              ; preds = %218
  %225 = add nsw i32 %223, -1
  store i32 %225, ptr %222, align 4, !tbaa !5
  %226 = add nuw nsw i32 %219, 1
  store i32 %226, ptr @fin, align 4, !tbaa !5
  br label %232

227:                                              ; preds = %218
  %228 = load i32, ptr @push, align 16, !tbaa !5
  %229 = add nsw i32 %228, 1
  store i32 %229, ptr @push, align 16, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %230
  store i32 %220, ptr %231, align 4, !tbaa !5
  br label %232

232:                                              ; preds = %227, %224
  %233 = phi i32 [ %226, %224 ], [ %219, %227 ]
  %234 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 40), align 8, !tbaa !5
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %235
  %237 = load i32, ptr %236, align 4, !tbaa !5
  %.not36.10 = icmp eq i32 %237, 0
  br i1 %.not36.10, label %241, label %238

238:                                              ; preds = %232
  %239 = add nsw i32 %237, -1
  store i32 %239, ptr %236, align 4, !tbaa !5
  %240 = add nuw nsw i32 %233, 1
  store i32 %240, ptr @fin, align 4, !tbaa !5
  br label %246

241:                                              ; preds = %232
  %242 = load i32, ptr @push, align 16, !tbaa !5
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr @push, align 16, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %244
  store i32 %234, ptr %245, align 4, !tbaa !5
  br label %246

246:                                              ; preds = %241, %238
  %247 = phi i32 [ %240, %238 ], [ %233, %241 ]
  %248 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 44), align 4, !tbaa !5
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %249
  %251 = load i32, ptr %250, align 4, !tbaa !5
  %.not36.11 = icmp eq i32 %251, 0
  br i1 %.not36.11, label %255, label %252

252:                                              ; preds = %246
  %253 = add nsw i32 %251, -1
  store i32 %253, ptr %250, align 4, !tbaa !5
  %254 = add nuw nsw i32 %247, 1
  store i32 %254, ptr @fin, align 4, !tbaa !5
  br label %260

255:                                              ; preds = %246
  %256 = load i32, ptr @push, align 16, !tbaa !5
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr @push, align 16, !tbaa !5
  %258 = sext i32 %257 to i64
  %259 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %258
  store i32 %248, ptr %259, align 4, !tbaa !5
  br label %260

260:                                              ; preds = %255, %252
  %261 = phi i32 [ %254, %252 ], [ %247, %255 ]
  %262 = load i32, ptr getelementptr inbounds (i8, ptr @now, i64 48), align 16, !tbaa !5
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %263
  %265 = load i32, ptr %264, align 4, !tbaa !5
  %.not36.12 = icmp eq i32 %265, 0
  br i1 %.not36.12, label %269, label %266

266:                                              ; preds = %260
  %267 = add nsw i32 %265, -1
  store i32 %267, ptr %264, align 4, !tbaa !5
  %268 = add nuw nsw i32 %261, 1
  store i32 %268, ptr @fin, align 4, !tbaa !5
  br label %.preheader

269:                                              ; preds = %260
  %270 = load i32, ptr @push, align 16, !tbaa !5
  %271 = add nsw i32 %270, 1
  store i32 %271, ptr @push, align 16, !tbaa !5
  %272 = sext i32 %271 to i64
  %273 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %272
  store i32 %262, ptr %273, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %269, %266
  %274 = load i32, ptr @n, align 4, !tbaa !5
  %275 = icmp sgt i32 %274, 0
  br i1 %275, label %.lr.ph46, label %.loopexit

.lr.ph46:                                         ; preds = %.preheader, %295
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %295 ], [ 0, %.preheader ]
  %276 = getelementptr inbounds [150 x i32], ptr @seq, i64 0, i64 %indvars.iv57
  %277 = load i32, ptr %276, align 4, !tbaa !5
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds [40 x i32], ptr @wan, i64 0, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !5
  %.not35 = icmp eq i32 %280, 0
  br i1 %.not35, label %285, label %281

281:                                              ; preds = %.lr.ph46
  %282 = add nsw i32 %280, -1
  store i32 %282, ptr %279, align 4, !tbaa !5
  %283 = load i32, ptr @fin, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr @fin, align 4, !tbaa !5
  br label %290

285:                                              ; preds = %.lr.ph46
  %286 = load i32, ptr @push, align 16, !tbaa !5
  %287 = add nsw i32 %286, 1
  store i32 %287, ptr @push, align 16, !tbaa !5
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %288
  store i32 %277, ptr %289, align 4, !tbaa !5
  %.pr = load i32, ptr @fin, align 4, !tbaa !5
  br label %290

290:                                              ; preds = %285, %281
  %291 = phi i32 [ %.pr, %285 ], [ %284, %281 ]
  %292 = icmp eq i32 %291, 14
  br i1 %292, label %293, label %295

293:                                              ; preds = %290
  %294 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %.loopexit

295:                                              ; preds = %290
  %296 = load i32, ptr @push, align 16, !tbaa !5
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds [150 x i32], ptr @push, i64 0, i64 %297
  %299 = load i32, ptr %298, align 4, !tbaa !5
  %300 = srem i32 %299, 9
  %301 = add nsw i32 %300, 1
  %302 = load ptr, ptr @out, align 8, !tbaa !12
  %303 = sdiv i32 %299, 9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds i8, ptr %302, i64 %304
  %306 = load i8, ptr %305, align 1, !tbaa !14
  %307 = sext i8 %306 to i32
  %308 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %301, i32 noundef %307)
  %309 = load i32, ptr @push, align 16, !tbaa !5
  %310 = add nsw i32 %309, -1
  store i32 %310, ptr @push, align 16, !tbaa !5
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %311 = load i32, ptr @n, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = icmp slt i64 %indvars.iv.next58, %312
  br i1 %313, label %.lr.ph46, label %.loopexit, !llvm.loop !15

.loopexit:                                        ; preds = %295, %.preheader, %293
  %314 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @str)
  %.not = icmp eq i32 %314, -1
  br i1 %.not, label %._crit_edge50, label %.lr.ph49, !llvm.loop !16

._crit_edge50:                                    ; preds = %.loopexit, %0
  ret i32 0
}

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

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

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

attributes #0 = { 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 #1 = { 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 #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" }

!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 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}


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