; LLVM IR from ahampriyanshu/algo-ds-101 :: Algorithms/Hashing/Amicable/Amicable_Numbers. (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 [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1

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

14:                                               ; preds = %29, %0
  %15 = load i32, ptr %2, align 4, !tbaa !5
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = sdiv i32 %16, 2
  %18 = icmp sle i32 %15, %17
  br i1 %18, label %19, label %32

19:                                               ; preds = %14
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %21 = load i32, ptr %2, align 4, !tbaa !5
  %22 = srem i32 %20, %21
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %28

24:                                               ; preds = %19
  %25 = load i32, ptr %2, align 4, !tbaa !5
  %26 = load i32, ptr %5, align 4, !tbaa !5
  %27 = add nsw i32 %26, %25
  store i32 %27, ptr %5, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %24, %19
  br label %29

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

32:                                               ; preds = %14
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = load i32, ptr %4, align 4, !tbaa !5
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %32
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = load i32, ptr %4, align 4, !tbaa !5
  %39 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %37, i32 noundef %38)
  br label %44

40:                                               ; preds = %32
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = load i32, ptr %4, align 4, !tbaa !5
  %43 = call i32 (ptr, ...) @printf(ptr noundef @.str.4, i32 noundef %41, i32 noundef %42)
  br label %44

44:                                               ; preds = %40, %36
  %45 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 220, ptr %2, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %102, %44
  %47 = load i32, ptr %2, align 4, !tbaa !5
  %48 = icmp slt i32 %47, 100000
  br i1 %48, label %49, label %105

49:                                               ; preds = %46
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %65, %49
  %51 = load i32, ptr %10, align 4, !tbaa !5
  %52 = load i32, ptr %2, align 4, !tbaa !5
  %53 = sdiv i32 %52, 2
  %54 = icmp sle i32 %51, %53
  br i1 %54, label %55, label %68

55:                                               ; preds = %50
  %56 = load i32, ptr %2, align 4, !tbaa !5
  %57 = load i32, ptr %10, align 4, !tbaa !5
  %58 = srem i32 %56, %57
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %64

60:                                               ; preds = %55
  %61 = load i32, ptr %10, align 4, !tbaa !5
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = add nsw i32 %62, %61
  store i32 %63, ptr %6, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %60, %55
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %10, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %10, align 4, !tbaa !5
  br label %50, !llvm.loop !11

68:                                               ; preds = %50
  store i32 1, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %69

69:                                               ; preds = %83, %68
  %70 = load i32, ptr %8, align 4, !tbaa !5
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sdiv i32 %71, 2
  %73 = icmp sle i32 %70, %72
  br i1 %73, label %74, label %86

74:                                               ; preds = %69
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !5
  %77 = srem i32 %75, %76
  %78 = icmp eq i32 %77, 0
  br i1 %78, label %79, label %83

79:                                               ; preds = %74
  %80 = load i32, ptr %8, align 4, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = add nsw i32 %81, %80
  store i32 %82, ptr %7, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %79, %74
  %84 = load i32, ptr %8, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %8, align 4, !tbaa !5
  br label %69, !llvm.loop !12

86:                                               ; preds = %69
  %87 = load i32, ptr %2, align 4, !tbaa !5
  %88 = load i32, ptr %7, align 4, !tbaa !5
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %101

90:                                               ; preds = %86
  %91 = load i32, ptr %6, align 4, !tbaa !5
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = icmp ne i32 %91, %92
  br i1 %93, label %94, label %100

94:                                               ; preds = %90
  %95 = load i32, ptr %6, align 4, !tbaa !5
  %96 = load i32, ptr %7, align 4, !tbaa !5
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i32 noundef %95, i32 noundef %96)
  %98 = load i32, ptr %2, align 4, !tbaa !5
  %99 = add nsw i32 %98, 500
  store i32 %99, ptr %2, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %94, %90
  br label %101

101:                                              ; preds = %100, %86
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %2, align 4, !tbaa !5
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %2, align 4, !tbaa !5
  br label %46, !llvm.loop !13

105:                                              ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  ret i32 0
}

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

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

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

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

attributes #0 = { 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !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"

@.str = external hidden unnamed_addr constant [70 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  %3 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %4 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %.not45 = icmp slt i32 %6, -1
  br i1 %.not45, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %0
  %7 = sdiv i32 %6, 2
  %.off = add i32 %6, 1
  %8 = icmp ult i32 %.off, 3
  br i1 %8, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %9 = add nsw i32 %7, 1
  %unroll_iter = and i32 %9, -2
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph, %.lr.ph.preheader.new
  %.02947 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %17, %.lr.ph ]
  %.03546 = phi i32 [ 0, %.lr.ph.preheader.new ], [ %spec.select.1, %.lr.ph ]
  %niter = phi i32 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %.lr.ph ]
  %10 = srem i32 %6, %.02947
  %11 = icmp eq i32 %10, 0
  %12 = select i1 %11, i32 %.02947, i32 0
  %spec.select = add nuw nsw i32 %12, %.03546
  %13 = or disjoint i32 %.02947, 1
  %14 = srem i32 %6, %13
  %15 = icmp eq i32 %14, 0
  %16 = select i1 %15, i32 %13, i32 0
  %spec.select.1 = add nuw nsw i32 %16, %spec.select
  %17 = add nuw nsw i32 %.02947, 2
  %niter.next.1 = add i32 %niter, 2
  %niter.ncmp.1 = icmp eq i32 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph, !llvm.loop !9

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph, %.lr.ph.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %spec.select.1, %.lr.ph ]
  %.02947.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %17, %.lr.ph ]
  %.03546.unr = phi i32 [ 0, %.lr.ph.preheader ], [ %spec.select.1, %.lr.ph ]
  %18 = and i32 %7, 1
  %lcmp.mod.not.not = icmp eq i32 %18, 0
  br i1 %lcmp.mod.not.not, label %.lr.ph.epil, label %._crit_edge

.lr.ph.epil:                                      ; preds = %._crit_edge.loopexit.unr-lcssa
  %19 = srem i32 %6, %.02947.unr
  %20 = icmp eq i32 %19, 0
  %21 = select i1 %20, i32 %.02947.unr, i32 0
  %spec.select.epil = add nuw nsw i32 %21, %.03546.unr
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %._crit_edge.loopexit.unr-lcssa, %0
  %.035.lcssa = phi i32 [ 0, %0 ], [ %spec.select.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %spec.select.epil, %.lr.ph.epil ]
  %22 = load i32, ptr %2, align 4, !tbaa !5
  %23 = icmp eq i32 %.035.lcssa, %22
  br i1 %23, label %24, label %26

24:                                               ; preds = %._crit_edge
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %6, i32 noundef %.035.lcssa)
  br label %28

26:                                               ; preds = %._crit_edge
  %27 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4, i32 noundef %6, i32 noundef %22)
  br label %28

28:                                               ; preds = %26, %24
  %29 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %.preheader44

.preheader44:                                     ; preds = %28, %._crit_edge58.thread
  %.160 = phi i32 [ 220, %28 ], [ %62, %._crit_edge58.thread ]
  %.not3949 = icmp slt i32 %.160, 2
  br i1 %.not3949, label %._crit_edge58.thread, label %.lr.ph52.preheader

.lr.ph52.preheader:                               ; preds = %.preheader44
  %30 = lshr i32 %.160, 1
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %.preheader.unr-lcssa, label %.lr.ph52.preheader.new

.lr.ph52.preheader.new:                           ; preds = %.lr.ph52.preheader
  %unroll_iter74 = and i32 %30, 1073741822
  br label %.lr.ph52

.preheader.unr-lcssa:                             ; preds = %.lr.ph52, %.lr.ph52.preheader
  %spec.select42.lcssa.ph = phi i32 [ poison, %.lr.ph52.preheader ], [ %spec.select42.1, %.lr.ph52 ]
  %.051.unr = phi i32 [ 1, %.lr.ph52.preheader ], [ %45, %.lr.ph52 ]
  %.03350.unr = phi i32 [ 0, %.lr.ph52.preheader ], [ %spec.select42.1, %.lr.ph52 ]
  %32 = and i32 %.160, 2
  %lcmp.mod72.not = icmp eq i32 %32, 0
  br i1 %lcmp.mod72.not, label %.preheader, label %.lr.ph52.epil

.lr.ph52.epil:                                    ; preds = %.preheader.unr-lcssa
  %33 = urem i32 %.160, %.051.unr
  %34 = icmp eq i32 %33, 0
  %35 = select i1 %34, i32 %.051.unr, i32 0
  %spec.select42.epil = add nuw nsw i32 %35, %.03350.unr
  br label %.preheader

.preheader:                                       ; preds = %.preheader.unr-lcssa, %.lr.ph52.epil
  %spec.select42.lcssa = phi i32 [ %spec.select42.lcssa.ph, %.preheader.unr-lcssa ], [ %spec.select42.epil, %.lr.ph52.epil ]
  %.not4054 = icmp ult i32 %spec.select42.lcssa, 2
  br i1 %.not4054, label %._crit_edge58, label %.lr.ph57.preheader

.lr.ph57.preheader:                               ; preds = %.preheader
  %36 = lshr i32 %spec.select42.lcssa, 1
  %37 = icmp eq i32 %36, 1
  br i1 %37, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57.preheader.new

.lr.ph57.preheader.new:                           ; preds = %.lr.ph57.preheader
  %unroll_iter79 = and i32 %36, 2147483646
  br label %.lr.ph57

.lr.ph52:                                         ; preds = %.lr.ph52, %.lr.ph52.preheader.new
  %.051 = phi i32 [ 1, %.lr.ph52.preheader.new ], [ %45, %.lr.ph52 ]
  %.03350 = phi i32 [ 0, %.lr.ph52.preheader.new ], [ %spec.select42.1, %.lr.ph52 ]
  %niter75 = phi i32 [ 0, %.lr.ph52.preheader.new ], [ %niter75.next.1, %.lr.ph52 ]
  %38 = urem i32 %.160, %.051
  %39 = icmp eq i32 %38, 0
  %40 = select i1 %39, i32 %.051, i32 0
  %spec.select42 = add nuw nsw i32 %40, %.03350
  %41 = add nuw nsw i32 %.051, 1
  %42 = urem i32 %.160, %41
  %43 = icmp eq i32 %42, 0
  %44 = select i1 %43, i32 %41, i32 0
  %spec.select42.1 = add nuw nsw i32 %44, %spec.select42
  %45 = add nuw nsw i32 %.051, 2
  %niter75.next.1 = add i32 %niter75, 2
  %niter75.ncmp.1 = icmp eq i32 %niter75.next.1, %unroll_iter74
  br i1 %niter75.ncmp.1, label %.preheader.unr-lcssa, label %.lr.ph52, !llvm.loop !11

.lr.ph57:                                         ; preds = %.lr.ph57, %.lr.ph57.preheader.new
  %.03056 = phi i32 [ 1, %.lr.ph57.preheader.new ], [ %53, %.lr.ph57 ]
  %.03155 = phi i32 [ 0, %.lr.ph57.preheader.new ], [ %spec.select43.1, %.lr.ph57 ]
  %niter80 = phi i32 [ 0, %.lr.ph57.preheader.new ], [ %niter80.next.1, %.lr.ph57 ]
  %46 = urem i32 %spec.select42.lcssa, %.03056
  %47 = icmp eq i32 %46, 0
  %48 = select i1 %47, i32 %.03056, i32 0
  %spec.select43 = add nuw nsw i32 %48, %.03155
  %49 = add nuw i32 %.03056, 1
  %50 = urem i32 %spec.select42.lcssa, %49
  %51 = icmp eq i32 %50, 0
  %52 = select i1 %51, i32 %49, i32 0
  %spec.select43.1 = add nuw nsw i32 %52, %spec.select43
  %53 = add nuw i32 %.03056, 2
  %niter80.next.1 = add i32 %niter80, 2
  %niter80.ncmp.1 = icmp eq i32 %niter80.next.1, %unroll_iter79
  br i1 %niter80.ncmp.1, label %._crit_edge58.loopexit.unr-lcssa, label %.lr.ph57, !llvm.loop !12

._crit_edge58.loopexit.unr-lcssa:                 ; preds = %.lr.ph57, %.lr.ph57.preheader
  %spec.select43.lcssa.ph = phi i32 [ poison, %.lr.ph57.preheader ], [ %spec.select43.1, %.lr.ph57 ]
  %.03056.unr = phi i32 [ 1, %.lr.ph57.preheader ], [ %53, %.lr.ph57 ]
  %.03155.unr = phi i32 [ 0, %.lr.ph57.preheader ], [ %spec.select43.1, %.lr.ph57 ]
  %54 = and i32 %spec.select42.lcssa, 2
  %lcmp.mod77.not = icmp eq i32 %54, 0
  br i1 %lcmp.mod77.not, label %._crit_edge58, label %.lr.ph57.epil

.lr.ph57.epil:                                    ; preds = %._crit_edge58.loopexit.unr-lcssa
  %55 = urem i32 %spec.select42.lcssa, %.03056.unr
  %56 = icmp eq i32 %55, 0
  %57 = select i1 %56, i32 %.03056.unr, i32 0
  %spec.select43.epil = add nuw nsw i32 %57, %.03155.unr
  br label %._crit_edge58

._crit_edge58:                                    ; preds = %.lr.ph57.epil, %._crit_edge58.loopexit.unr-lcssa, %.preheader
  %.031.lcssa = phi i32 [ 0, %.preheader ], [ %spec.select43.lcssa.ph, %._crit_edge58.loopexit.unr-lcssa ], [ %spec.select43.epil, %.lr.ph57.epil ]
  %58 = icmp ne i32 %.160, %.031.lcssa
  %.not41 = icmp eq i32 %spec.select42.lcssa, %.031.lcssa
  %or.cond = or i1 %58, %.not41
  br i1 %or.cond, label %._crit_edge58.thread, label %59

59:                                               ; preds = %._crit_edge58
  %60 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i32 noundef %spec.select42.lcssa, i32 noundef %.160)
  %61 = add nuw nsw i32 %.160, 500
  br label %._crit_edge58.thread

._crit_edge58.thread:                             ; preds = %.preheader44, %._crit_edge58, %59
  %.2 = phi i32 [ %61, %59 ], [ %.160, %._crit_edge58 ], [ %.160, %.preheader44 ]
  %62 = add nsw i32 %.2, 1
  %63 = icmp slt i32 %.2, 99999
  br i1 %63, label %.preheader44, label %64, !llvm.loop !13

64:                                               ; preds = %._crit_edge58.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4, 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 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; 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

attributes #0 = { nofree 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/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: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass