; LLVM IR from tangjz/acm-icpc :: codechef/SEPT18 (XORIER)

; 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
@seq = external dso_local global [2 x [100001 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %9

9:                                                ; preds = %137, %0
  %10 = load i32, ptr @t, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr @t, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %140

13:                                               ; preds = %9
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  store i32 0, ptr getelementptr inbounds ([2 x [100001 x i32]], ptr @seq, i64 0, i64 1), align 4, !tbaa !5
  store i32 0, ptr @seq, align 16, !tbaa !5
  br label %15

15:                                               ; preds = %19, %13
  %16 = load i32, ptr @n, align 4, !tbaa !5
  %17 = add nsw i32 %16, -1
  store i32 %17, ptr @n, align 4, !tbaa !5
  %18 = icmp ne i32 %16, 0
  br i1 %18, label %19, label %35

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = and i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %24
  %26 = load i32, ptr %2, align 4, !tbaa !5
  %27 = and i32 %26, 1
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %28
  %30 = getelementptr inbounds [100001 x i32], ptr %29, i64 0, i64 0
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %30, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100001 x i32], ptr %25, i64 0, i64 %33
  store i32 %21, ptr %34, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %15, !llvm.loop !9

35:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 0, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %134, %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 2
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %36
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %42
  %44 = getelementptr inbounds [100001 x i32], ptr %43, i64 0, i64 0
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = load i32, ptr %4, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %48
  %50 = getelementptr inbounds [100001 x i32], ptr %49, i64 0, i64 0
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = sub nsw i64 %52, 1
  %54 = mul nsw i64 %46, %53
  %55 = sdiv i64 %54, 2
  %56 = load i64, ptr %3, align 8, !tbaa !11
  %57 = add nsw i64 %56, %55
  store i64 %57, ptr %3, align 8, !tbaa !11
  %58 = load i32, ptr %4, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %59
  %61 = getelementptr inbounds [100001 x i32], ptr %60, i64 0, i64 0
  %62 = getelementptr inbounds i32, ptr %61, i64 1
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %64
  %66 = getelementptr inbounds [100001 x i32], ptr %65, i64 0, i64 0
  %67 = load i32, ptr %4, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %68
  %70 = getelementptr inbounds [100001 x i32], ptr %69, i64 0, i64 0
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i32, ptr %66, i64 %72
  %74 = getelementptr inbounds i32, ptr %73, i64 1
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef %62, ptr noundef %74)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 1, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %131, %40
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = load i32, ptr %4, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %78
  %80 = getelementptr inbounds [100001 x i32], ptr %79, i64 0, i64 0
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = icmp sle i32 %76, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %75
  store i32 9, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %133

84:                                               ; preds = %75
  br label %85

85:                                               ; preds = %114, %84
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = load i32, ptr %4, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %88
  %90 = getelementptr inbounds [100001 x i32], ptr %89, i64 0, i64 0
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = icmp sle i32 %86, %91
  br i1 %92, label %93, label %111

93:                                               ; preds = %85
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %95
  %97 = load i32, ptr %6, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100001 x i32], ptr %96, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = ashr i32 %100, 2
  %102 = load i32, ptr %4, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %103
  %105 = load i32, ptr %7, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100001 x i32], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = ashr i32 %108, 2
  %110 = icmp eq i32 %101, %109
  br label %111

111:                                              ; preds = %93, %85
  %112 = phi i1 [ false, %85 ], [ %110, %93 ]
  br i1 %112, label %113, label %117

113:                                              ; preds = %111
  br label %114

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

117:                                              ; preds = %111
  %118 = load i32, ptr %7, align 4, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = sub nsw i32 %118, %119
  %121 = sext i32 %120 to i64
  %122 = load i32, ptr %7, align 4, !tbaa !5
  %123 = load i32, ptr %6, align 4, !tbaa !5
  %124 = sub nsw i32 %122, %123
  %125 = sext i32 %124 to i64
  %126 = sub nsw i64 %125, 1
  %127 = mul nsw i64 %121, %126
  %128 = sdiv i64 %127, 2
  %129 = load i64, ptr %3, align 8, !tbaa !11
  %130 = sub nsw i64 %129, %128
  store i64 %130, ptr %3, align 8, !tbaa !11
  br label %131

131:                                              ; preds = %117
  %132 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %132, ptr %6, align 4, !tbaa !5
  br label %75, !llvm.loop !14

133:                                              ; preds = %83
  br label %134

134:                                              ; preds = %133
  %135 = load i32, ptr %4, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %4, align 4, !tbaa !5
  br label %36, !llvm.loop !15

137:                                              ; preds = %39
  %138 = load i64, ptr %3, align 8, !tbaa !11
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %138)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %9, !llvm.loop !16

140:                                              ; preds = %9
  ret i32 0
}

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

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

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

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!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
@seq = external dso_local global [2 x [100001 x i32]], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %3 = load i32, ptr @t, align 4, !tbaa !5
  %4 = add nsw i32 %3, -1
  store i32 %4, ptr @t, align 4, !tbaa !5
  %.not39 = icmp eq i32 %3, 0
  br i1 %.not39, label %._crit_edge42, label %.lr.ph41

.lr.ph41:                                         ; preds = %0, %._crit_edge.1
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  store i32 0, ptr getelementptr inbounds (i8, ptr @seq, i64 400004), align 4, !tbaa !5
  store i32 0, ptr @seq, align 16, !tbaa !5
  %6 = load i32, ptr @n, align 4, !tbaa !5
  %7 = add nsw i32 %6, -1
  store i32 %7, ptr @n, align 4, !tbaa !5
  %.not2832 = icmp eq i32 %6, 0
  br i1 %.not2832, label %.preheader31, label %.lr.ph

.preheader31.loopexit:                            ; preds = %.lr.ph
  %.pre = load i32, ptr @seq, align 16, !tbaa !5
  br label %.preheader31

.preheader31:                                     ; preds = %.preheader31.loopexit, %.lr.ph41
  %8 = phi i32 [ %.pre, %.preheader31.loopexit ], [ 0, %.lr.ph41 ]
  %9 = sext i32 %8 to i64
  %10 = add nsw i64 %9, -1
  %11 = mul nsw i64 %10, %9
  %12 = sdiv i64 %11, 2
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @seq, i64 4), i64 %9
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @seq, i64 4), ptr noundef nonnull %gep)
  %13 = load i32, ptr @seq, align 16, !tbaa !5
  %.not2934 = icmp slt i32 %13, 1
  br i1 %.not2934, label %._crit_edge, label %.preheader.preheader

.lr.ph:                                           ; preds = %.lr.ph41, %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %15 = load i32, ptr %1, align 4, !tbaa !5
  %16 = and i32 %15, 1
  %17 = zext nneg i32 %16 to i64
  %18 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 %17, i64 %21
  store i32 %15, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  %23 = load i32, ptr @n, align 4, !tbaa !5
  %24 = add nsw i32 %23, -1
  store i32 %24, ptr @n, align 4, !tbaa !5
  %.not28 = icmp eq i32 %23, 0
  br i1 %.not28, label %.preheader31.loopexit, label %.lr.ph, !llvm.loop !9

.preheader.preheader:                             ; preds = %.preheader31
  %25 = zext nneg i32 %13 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %.036 = phi i32 [ %.1.lcssa, %.critedge ], [ 1, %.preheader.preheader ]
  %.12735 = phi i64 [ %66, %.critedge ], [ %12, %.preheader.preheader ]
  %26 = sext i32 %.036 to i64
  %27 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %smax = call i32 @llvm.smax.i32(i32 %.036, i32 %13)
  %29 = add nuw i32 %smax, 1
  br label %56

._crit_edge:                                      ; preds = %.critedge, %.preheader31
  %.127.lcssa = phi i64 [ %12, %.preheader31 ], [ %66, %.critedge ]
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 400004), align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = add nsw i64 %31, -1
  %33 = mul nsw i64 %32, %31
  %34 = sdiv i64 %33, 2
  %35 = add nsw i64 %34, %.127.lcssa
  %gep52 = getelementptr i32, ptr getelementptr inbounds (i8, ptr @seq, i64 400008), i64 %31
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @seq, i64 400008), ptr noundef nonnull %gep52)
  %36 = load i32, ptr getelementptr inbounds (i8, ptr @seq, i64 400004), align 4, !tbaa !5
  %.not2934.1 = icmp slt i32 %36, 1
  br i1 %.not2934.1, label %._crit_edge.1, label %.preheader.preheader.1

.preheader.preheader.1:                           ; preds = %._crit_edge
  %37 = zext nneg i32 %36 to i64
  br label %.preheader.1

.preheader.1:                                     ; preds = %.critedge.1, %.preheader.preheader.1
  %.036.1 = phi i32 [ %.1.lcssa.1, %.critedge.1 ], [ 1, %.preheader.preheader.1 ]
  %.12735.1 = phi i64 [ %52, %.critedge.1 ], [ %35, %.preheader.preheader.1 ]
  %38 = sext i32 %.036.1 to i64
  %39 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 1, i64 %38
  %40 = load i32, ptr %39, align 4, !tbaa !5
  %smax.1 = call i32 @llvm.smax.i32(i32 %.036.1, i32 %36)
  %41 = add nuw i32 %smax.1, 1
  br label %42

42:                                               ; preds = %46, %.preheader.1
  %indvars.iv.1 = phi i64 [ %38, %.preheader.1 ], [ %indvars.iv.next.1, %46 ]
  %43 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 1, i64 %indvars.iv.1
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %.unshifted.1 = xor i32 %44, %40
  %45 = icmp ult i32 %.unshifted.1, 4
  br i1 %45, label %46, label %.critedge.1.split.loop.exit50

46:                                               ; preds = %42
  %indvars.iv.next.1 = add nsw i64 %indvars.iv.1, 1
  %.not30.not.1 = icmp slt i64 %indvars.iv.1, %37
  br i1 %.not30.not.1, label %42, label %.critedge.1, !llvm.loop !11

.critedge.1.split.loop.exit50:                    ; preds = %42
  %47 = trunc nsw i64 %indvars.iv.1 to i32
  br label %.critedge.1

.critedge.1:                                      ; preds = %46, %.critedge.1.split.loop.exit50
  %.1.lcssa.1 = phi i32 [ %47, %.critedge.1.split.loop.exit50 ], [ %41, %46 ]
  %48 = sub nsw i32 %.1.lcssa.1, %.036.1
  %49 = sext i32 %48 to i64
  %50 = add nsw i64 %49, -1
  %51 = mul nsw i64 %50, %49
  %.neg.1 = sdiv i64 %51, -2
  %52 = add i64 %.neg.1, %.12735.1
  %.not29.1 = icmp sgt i32 %.1.lcssa.1, %36
  br i1 %.not29.1, label %._crit_edge.1, label %.preheader.1, !llvm.loop !12

._crit_edge.1:                                    ; preds = %.critedge.1, %._crit_edge
  %.127.lcssa.1 = phi i64 [ %35, %._crit_edge ], [ %52, %.critedge.1 ]
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.127.lcssa.1)
  %54 = load i32, ptr @t, align 4, !tbaa !5
  %55 = add nsw i32 %54, -1
  store i32 %55, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %54, 0
  br i1 %.not, label %._crit_edge42, label %.lr.ph41, !llvm.loop !13

56:                                               ; preds = %.preheader, %60
  %indvars.iv = phi i64 [ %26, %.preheader ], [ %indvars.iv.next, %60 ]
  %57 = getelementptr inbounds [2 x [100001 x i32]], ptr @seq, i64 0, i64 0, i64 %indvars.iv
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %.unshifted = xor i32 %58, %28
  %59 = icmp ult i32 %.unshifted, 4
  br i1 %59, label %60, label %.critedge.split.loop.exit48

60:                                               ; preds = %56
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %.not30.not = icmp slt i64 %indvars.iv, %25
  br i1 %.not30.not, label %56, label %.critedge, !llvm.loop !11

.critedge.split.loop.exit48:                      ; preds = %56
  %61 = trunc nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %60, %.critedge.split.loop.exit48
  %.1.lcssa = phi i32 [ %61, %.critedge.split.loop.exit48 ], [ %29, %60 ]
  %62 = sub nsw i32 %.1.lcssa, %.036
  %63 = sext i32 %62 to i64
  %64 = add nsw i64 %63, -1
  %65 = mul nsw i64 %64, %63
  %.neg = sdiv i64 %65, -2
  %66 = add i64 %.neg, %.12735
  %.not29 = icmp sgt i32 %.1.lcssa, %13
  br i1 %.not29, label %._crit_edge, label %.preheader, !llvm.loop !12

._crit_edge42:                                    ; preds = %._crit_edge.1, %0
  ret i32 0
}

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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


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