; LLVM IR from DionysiosB/CodeForces :: 1763A-AbsoluteMaximization (main)

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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca [11 x i8], align 1
  %5 = alloca [11 x i8], align 1
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %14

14:                                               ; preds = %82, %0
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = add nsw i64 %15, -1
  store i64 %16, ptr %2, align 8, !tbaa !5
  %17 = icmp ne i64 %15, 0
  br i1 %17, label %18, label %85

18:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %19 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 11, ptr %4) #4
  call void @llvm.memset.p0.i64(ptr align 1 %4, i8 0, i64 11, i1 false)
  call void @llvm.lifetime.start.p0(i64 11, ptr %5) #4
  call void @llvm.memset.p0.i64(ptr align 1 %5, i8 0, i64 11, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %53, %18
  %21 = load i64, ptr %6, align 8, !tbaa !5
  %22 = load i64, ptr %3, align 8, !tbaa !5
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 4, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %56

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %26 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %49, %25
  %28 = load i64, ptr %9, align 8, !tbaa !5
  %29 = icmp sle i64 %28, 10
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %52

31:                                               ; preds = %27
  %32 = load i64, ptr %8, align 8, !tbaa !5
  %33 = srem i64 %32, 2
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %38

35:                                               ; preds = %31
  %36 = load i64, ptr %9, align 8, !tbaa !5
  %37 = getelementptr inbounds [11 x i8], ptr %4, i64 0, i64 %36
  store i8 1, ptr %37, align 1, !tbaa !9
  br label %46

38:                                               ; preds = %31
  %39 = load i64, ptr %8, align 8, !tbaa !5
  %40 = srem i64 %39, 2
  %41 = icmp eq i64 %40, 0
  br i1 %41, label %42, label %45

42:                                               ; preds = %38
  %43 = load i64, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds [11 x i8], ptr %5, i64 0, i64 %43
  store i8 1, ptr %44, align 1, !tbaa !9
  br label %45

45:                                               ; preds = %42, %38
  br label %46

46:                                               ; preds = %45, %35
  %47 = load i64, ptr %8, align 8, !tbaa !5
  %48 = sdiv i64 %47, 2
  store i64 %48, ptr %8, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %46
  %50 = load i64, ptr %9, align 8, !tbaa !5
  %51 = add nsw i64 %50, 1
  store i64 %51, ptr %9, align 8, !tbaa !5
  br label %27, !llvm.loop !11

52:                                               ; preds = %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %53

53:                                               ; preds = %52
  %54 = load i64, ptr %6, align 8, !tbaa !5
  %55 = add nsw i64 %54, 1
  store i64 %55, ptr %6, align 8, !tbaa !5
  br label %20, !llvm.loop !13

56:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 1, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %77, %56
  %58 = load i64, ptr %12, align 8, !tbaa !5
  %59 = icmp sle i64 %58, 10
  br i1 %59, label %61, label %60

60:                                               ; preds = %57
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %82

61:                                               ; preds = %57
  %62 = load i64, ptr %11, align 8, !tbaa !5
  %63 = load i64, ptr %12, align 8, !tbaa !5
  %64 = getelementptr inbounds [11 x i8], ptr %4, i64 0, i64 %63
  %65 = load i8, ptr %64, align 1, !tbaa !9, !range !14, !noundef !15
  %66 = trunc i8 %65 to i1
  %67 = zext i1 %66 to i64
  %68 = mul nsw i64 %62, %67
  %69 = load i64, ptr %12, align 8, !tbaa !5
  %70 = getelementptr inbounds [11 x i8], ptr %5, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !9, !range !14, !noundef !15
  %72 = trunc i8 %71 to i1
  %73 = zext i1 %72 to i64
  %74 = mul nsw i64 %68, %73
  %75 = load i64, ptr %10, align 8, !tbaa !5
  %76 = add nsw i64 %75, %74
  store i64 %76, ptr %10, align 8, !tbaa !5
  br label %77

77:                                               ; preds = %61
  %78 = load i64, ptr %11, align 8, !tbaa !5
  %79 = mul nsw i64 %78, 2
  store i64 %79, ptr %11, align 8, !tbaa !5
  %80 = load i64, ptr %12, align 8, !tbaa !5
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %12, align 8, !tbaa !5
  br label %57, !llvm.loop !16

82:                                               ; preds = %60
  %83 = load i64, ptr %10, align 8, !tbaa !5
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %83)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 11, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 11, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %14, !llvm.loop !17

85:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  %86 = load i32, ptr %1, align 4
  ret i32 %86
}

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

@.str = external hidden unnamed_addr constant [4 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  %4 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %5 = load i64, ptr %1, align 8, !tbaa !5
  %6 = add nsw i64 %5, -1
  store i64 %6, ptr %1, align 8, !tbaa !5
  %.not25 = icmp eq i64 %5, 0
  br i1 %.not25, label %._crit_edge, label %.lr.ph26

.lr.ph26:                                         ; preds = %0, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %8 = load i64, ptr %2, align 8, !tbaa !5
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %.lr.ph, %.lr.ph26
  %.sroa.028.1 = phi i8 [ 0, %.lr.ph26 ], [ %spec.select, %.lr.ph ]
  %.sroa.529.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.529.3, %.lr.ph ]
  %.sroa.730.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.730.3, %.lr.ph ]
  %.sroa.931.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.931.3, %.lr.ph ]
  %.sroa.1132.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.1132.3, %.lr.ph ]
  %.sroa.1333.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.1333.3, %.lr.ph ]
  %.sroa.1534.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.1534.3, %.lr.ph ]
  %.sroa.1735.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.1735.3, %.lr.ph ]
  %.sroa.1936.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.1936.3, %.lr.ph ]
  %.sroa.2137.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.2137.3, %.lr.ph ]
  %.sroa.2338.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.2338.3, %.lr.ph ]
  %.sroa.0.1 = phi i8 [ 0, %.lr.ph26 ], [ %spec.select39, %.lr.ph ]
  %.sroa.5.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.5.3, %.lr.ph ]
  %.sroa.7.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.7.3, %.lr.ph ]
  %.sroa.9.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.9.3, %.lr.ph ]
  %.sroa.11.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.11.3, %.lr.ph ]
  %.sroa.13.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.13.3, %.lr.ph ]
  %.sroa.15.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.15.3, %.lr.ph ]
  %.sroa.17.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.17.3, %.lr.ph ]
  %.sroa.19.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.19.3, %.lr.ph ]
  %.sroa.21.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.21.3, %.lr.ph ]
  %.sroa.23.1 = phi i8 [ 0, %.lr.ph26 ], [ %.sroa.23.3, %.lr.ph ]
  %10 = zext nneg i8 %.sroa.028.1 to i64
  %11 = zext nneg i8 %.sroa.0.1 to i64
  %12 = mul nuw nsw i64 %10, %11
  %13 = zext nneg i8 %.sroa.529.1 to i64
  %14 = shl nuw nsw i64 %13, 1
  %15 = zext nneg i8 %.sroa.5.1 to i64
  %16 = mul nuw nsw i64 %14, %15
  %17 = add nuw nsw i64 %16, %12
  %18 = zext nneg i8 %.sroa.730.1 to i64
  %19 = shl nuw nsw i64 %18, 2
  %20 = zext nneg i8 %.sroa.7.1 to i64
  %21 = mul nuw nsw i64 %19, %20
  %22 = add nuw nsw i64 %21, %17
  %23 = zext nneg i8 %.sroa.931.1 to i64
  %24 = shl nuw nsw i64 %23, 3
  %25 = zext nneg i8 %.sroa.9.1 to i64
  %26 = mul nuw nsw i64 %24, %25
  %27 = add nuw nsw i64 %26, %22
  %28 = zext nneg i8 %.sroa.1132.1 to i64
  %29 = shl nuw nsw i64 %28, 4
  %30 = zext nneg i8 %.sroa.11.1 to i64
  %31 = mul nuw nsw i64 %29, %30
  %32 = add nuw nsw i64 %31, %27
  %33 = zext nneg i8 %.sroa.1333.1 to i64
  %34 = shl nuw nsw i64 %33, 5
  %35 = zext nneg i8 %.sroa.13.1 to i64
  %36 = mul nuw nsw i64 %34, %35
  %37 = add nuw nsw i64 %36, %32
  %38 = zext nneg i8 %.sroa.1534.1 to i64
  %39 = shl nuw nsw i64 %38, 6
  %40 = zext nneg i8 %.sroa.15.1 to i64
  %41 = mul nuw nsw i64 %39, %40
  %42 = add nuw nsw i64 %41, %37
  %43 = zext nneg i8 %.sroa.1735.1 to i64
  %44 = shl nuw nsw i64 %43, 7
  %45 = zext nneg i8 %.sroa.17.1 to i64
  %46 = mul nuw nsw i64 %44, %45
  %47 = add nuw nsw i64 %46, %42
  %48 = zext nneg i8 %.sroa.1936.1 to i64
  %49 = shl nuw nsw i64 %48, 8
  %50 = zext nneg i8 %.sroa.19.1 to i64
  %51 = mul nuw nsw i64 %49, %50
  %52 = add nuw nsw i64 %51, %47
  %53 = zext nneg i8 %.sroa.2137.1 to i64
  %54 = shl nuw nsw i64 %53, 9
  %55 = zext nneg i8 %.sroa.21.1 to i64
  %56 = mul nuw nsw i64 %54, %55
  %57 = add nuw nsw i64 %56, %52
  %58 = zext nneg i8 %.sroa.2338.1 to i64
  %59 = shl nuw nsw i64 %58, 10
  %60 = zext nneg i8 %.sroa.23.1 to i64
  %61 = mul nuw nsw i64 %59, %60
  %62 = add nuw nsw i64 %61, %57
  %63 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %62)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  %64 = load i64, ptr %1, align 8, !tbaa !5
  %65 = add nsw i64 %64, -1
  store i64 %65, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %64, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph26, !llvm.loop !9

.lr.ph:                                           ; preds = %.lr.ph26, %.lr.ph
  %.sroa.028.2 = phi i8 [ %spec.select, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.529.2 = phi i8 [ %.sroa.529.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.730.2 = phi i8 [ %.sroa.730.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.931.2 = phi i8 [ %.sroa.931.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.1132.2 = phi i8 [ %.sroa.1132.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.1333.2 = phi i8 [ %.sroa.1333.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.1534.2 = phi i8 [ %.sroa.1534.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.1735.2 = phi i8 [ %.sroa.1735.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.1936.2 = phi i8 [ %.sroa.1936.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.2137.2 = phi i8 [ %.sroa.2137.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.2338.2 = phi i8 [ %.sroa.2338.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.0.2 = phi i8 [ %spec.select39, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.5.2 = phi i8 [ %.sroa.5.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.7.2 = phi i8 [ %.sroa.7.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.9.2 = phi i8 [ %.sroa.9.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.11.2 = phi i8 [ %.sroa.11.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.13.2 = phi i8 [ %.sroa.13.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.15.2 = phi i8 [ %.sroa.15.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.17.2 = phi i8 [ %.sroa.17.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.19.2 = phi i8 [ %.sroa.19.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.21.2 = phi i8 [ %.sroa.21.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.sroa.23.2 = phi i8 [ %.sroa.23.3, %.lr.ph ], [ 0, %.lr.ph26 ]
  %.01821 = phi i64 [ %88, %.lr.ph ], [ 0, %.lr.ph26 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %66 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %.promoted = load i64, ptr %3, align 8, !tbaa !5
  %67 = and i64 %.promoted, 1
  %.not19 = icmp eq i64 %67, 0
  %spec.select = select i1 %.not19, i8 %.sroa.028.2, i8 1
  %spec.select39 = select i1 %.not19, i8 1, i8 %.sroa.0.2
  %68 = sdiv i64 %.promoted, 2
  %69 = and i64 %68, 1
  %.not19.1 = icmp eq i64 %69, 0
  %.sroa.529.3 = select i1 %.not19.1, i8 %.sroa.529.2, i8 1
  %.sroa.5.3 = select i1 %.not19.1, i8 1, i8 %.sroa.5.2
  %70 = sdiv i64 %.promoted, 4
  %71 = and i64 %70, 1
  %.not19.2 = icmp eq i64 %71, 0
  %.sroa.730.3 = select i1 %.not19.2, i8 %.sroa.730.2, i8 1
  %.sroa.7.3 = select i1 %.not19.2, i8 1, i8 %.sroa.7.2
  %72 = sdiv i64 %.promoted, 8
  %73 = and i64 %72, 1
  %.not19.3 = icmp eq i64 %73, 0
  %.sroa.931.3 = select i1 %.not19.3, i8 %.sroa.931.2, i8 1
  %.sroa.9.3 = select i1 %.not19.3, i8 1, i8 %.sroa.9.2
  %74 = sdiv i64 %.promoted, 16
  %75 = and i64 %74, 1
  %.not19.4 = icmp eq i64 %75, 0
  %.sroa.1132.3 = select i1 %.not19.4, i8 %.sroa.1132.2, i8 1
  %.sroa.11.3 = select i1 %.not19.4, i8 1, i8 %.sroa.11.2
  %76 = sdiv i64 %.promoted, 32
  %77 = and i64 %76, 1
  %.not19.5 = icmp eq i64 %77, 0
  %.sroa.1333.3 = select i1 %.not19.5, i8 %.sroa.1333.2, i8 1
  %.sroa.13.3 = select i1 %.not19.5, i8 1, i8 %.sroa.13.2
  %78 = sdiv i64 %.promoted, 64
  %79 = and i64 %78, 1
  %.not19.6 = icmp eq i64 %79, 0
  %.sroa.1534.3 = select i1 %.not19.6, i8 %.sroa.1534.2, i8 1
  %.sroa.15.3 = select i1 %.not19.6, i8 1, i8 %.sroa.15.2
  %80 = sdiv i64 %.promoted, 128
  %81 = and i64 %80, 1
  %.not19.7 = icmp eq i64 %81, 0
  %.sroa.1735.3 = select i1 %.not19.7, i8 %.sroa.1735.2, i8 1
  %.sroa.17.3 = select i1 %.not19.7, i8 1, i8 %.sroa.17.2
  %82 = sdiv i64 %.promoted, 256
  %83 = and i64 %82, 1
  %.not19.8 = icmp eq i64 %83, 0
  %.sroa.1936.3 = select i1 %.not19.8, i8 %.sroa.1936.2, i8 1
  %.sroa.19.3 = select i1 %.not19.8, i8 1, i8 %.sroa.19.2
  %84 = sdiv i64 %.promoted, 512
  %85 = and i64 %84, 1
  %.not19.9 = icmp eq i64 %85, 0
  %.sroa.2137.3 = select i1 %.not19.9, i8 %.sroa.2137.2, i8 1
  %.sroa.21.3 = select i1 %.not19.9, i8 1, i8 %.sroa.21.2
  %86 = sdiv i64 %.promoted, 1024
  %87 = and i64 %86, 1
  %.not19.10 = icmp eq i64 %87, 0
  %.sroa.2338.3 = select i1 %.not19.10, i8 %.sroa.2338.2, i8 1
  %.sroa.23.3 = select i1 %.not19.10, i8 1, i8 %.sroa.23.2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  %88 = add nuw nsw i64 %.01821, 1
  %89 = load i64, ptr %2, align 8, !tbaa !5
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %.lr.ph, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %.preheader, %0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  ret i32 0
}

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"long", !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}


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