; LLVM IR from VastoLorde95/Competitive-Programming :: SPOJ/Random/ASCDFIB (asc)

; 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
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@MOD = external dso_local global i32, align 4
@fib = external dso_local global [1100001 x i32], align 16
@s = external dso_local global [100000 x i32], align 16
@i = external dso_local global i32, align 4
@j = external dso_local global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 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
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #3
  store i32 0, ptr getelementptr inbounds ([1100001 x i32], ptr @fib, i64 0, i64 1), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds ([1100001 x i32], ptr @fib, i64 0, i64 2), align 8, !tbaa !5
  store i32 3, ptr @i, align 4, !tbaa !5
  br label %3

3:                                                ; preds = %23, %0
  %4 = load i32, ptr @i, align 4, !tbaa !5
  %5 = icmp sle i32 %4, 1100000
  br i1 %5, label %6, label %26

6:                                                ; preds = %3
  %7 = load i32, ptr @i, align 4, !tbaa !5
  %8 = sub nsw i32 %7, 1
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = load i32, ptr @i, align 4, !tbaa !5
  %13 = sub nsw i32 %12, 2
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %14
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = add nsw i32 %11, %16
  %18 = load i32, ptr @MOD, align 4, !tbaa !5
  %19 = srem i32 %17, %18
  %20 = load i32, ptr @i, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %21
  store i32 %19, ptr %22, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %6
  %24 = load i32, ptr @i, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr @i, align 4, !tbaa !5
  br label %3, !llvm.loop !9

26:                                               ; preds = %3
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  store i32 1, ptr @j, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %109, %26
  %29 = load i32, ptr @j, align 4, !tbaa !5
  %30 = load i32, ptr @t, align 4, !tbaa !5
  %31 = icmp sle i32 %29, %30
  br i1 %31, label %32, label %112

32:                                               ; preds = %28
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %41, %32
  %34 = load i32, ptr @i, align 4, !tbaa !5
  %35 = load i32, ptr @MOD, align 4, !tbaa !5
  %36 = icmp slt i32 %34, %35
  br i1 %36, label %37, label %44

37:                                               ; preds = %33
  %38 = load i32, ptr @i, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %39
  store i32 0, ptr %40, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %37
  %42 = load i32, ptr @i, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr @i, align 4, !tbaa !5
  br label %33, !llvm.loop !11

44:                                               ; preds = %33
  %45 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @a, ptr noundef @b)
  %46 = load i32, ptr @a, align 4, !tbaa !5
  store i32 %46, ptr @i, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %62, %44
  %48 = load i32, ptr @i, align 4, !tbaa !5
  %49 = load i32, ptr @a, align 4, !tbaa !5
  %50 = load i32, ptr @b, align 4, !tbaa !5
  %51 = add nsw i32 %49, %50
  %52 = icmp sle i32 %48, %51
  br i1 %52, label %53, label %65

53:                                               ; preds = %47
  %54 = load i32, ptr @i, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100000 x i32], ptr @s, 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 = %53
  %63 = load i32, ptr @i, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr @i, align 4, !tbaa !5
  br label %47, !llvm.loop !12

65:                                               ; preds = %47
  %66 = load i32, ptr @j, align 4, !tbaa !5
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %66)
  %68 = load i32, ptr @b, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr @b, align 4, !tbaa !5
  %70 = load i32, ptr @b, align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 100
  br i1 %71, label %72, label %73

72:                                               ; preds = %65
  store i32 100, ptr @b, align 4, !tbaa !5
  br label %73

73:                                               ; preds = %72, %65
  store i32 0, ptr @i, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %104, %73
  %75 = load i32, ptr @i, align 4, !tbaa !5
  %76 = icmp slt i32 %75, 100000
  br i1 %76, label %77, label %80

77:                                               ; preds = %74
  %78 = load i32, ptr @b, align 4, !tbaa !5
  %79 = icmp ne i32 %78, 0
  br label %80

80:                                               ; preds = %77, %74
  %81 = phi i1 [ false, %74 ], [ %79, %77 ]
  br i1 %81, label %82, label %107

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %94, %82
  %84 = load i32, ptr @i, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !5
  %88 = icmp sgt i32 %87, 0
  br i1 %88, label %89, label %92

89:                                               ; preds = %83
  %90 = load i32, ptr @b, align 4, !tbaa !5
  %91 = icmp ne i32 %90, 0
  br label %92

92:                                               ; preds = %89, %83
  %93 = phi i1 [ false, %83 ], [ %91, %89 ]
  br i1 %93, label %94, label %104

94:                                               ; preds = %92
  %95 = load i32, ptr @i, align 4, !tbaa !5
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %95)
  %97 = load i32, ptr @i, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = add nsw i32 %100, -1
  store i32 %101, ptr %99, align 4, !tbaa !5
  %102 = load i32, ptr @b, align 4, !tbaa !5
  %103 = add nsw i32 %102, -1
  store i32 %103, ptr @b, align 4, !tbaa !5
  br label %83, !llvm.loop !13

104:                                              ; preds = %92
  %105 = load i32, ptr @i, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr @i, align 4, !tbaa !5
  br label %74, !llvm.loop !14

107:                                              ; preds = %80
  %108 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  br label %109

109:                                              ; preds = %107
  %110 = load i32, ptr @j, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr @j, align 4, !tbaa !5
  br label %28, !llvm.loop !15

112:                                              ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #3
  %113 = load i32, ptr %1, align 4
  ret i32 %113
}

; 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

declare i32 @printf(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 = { 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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}


; 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
@a = external dso_local global i32, align 4
@b = external dso_local global i32, align 4
@MOD = external dso_local local_unnamed_addr global i32, align 4
@fib = external dso_local local_unnamed_addr global [1100001 x i32], align 16
@s = external dso_local local_unnamed_addr global [100000 x i32], align 16
@i = external dso_local local_unnamed_addr global i32, align 4
@j = external dso_local local_unnamed_addr global i32, align 4
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  store i32 0, ptr getelementptr inbounds (i8, ptr @fib, i64 4), align 4, !tbaa !5
  store i32 1, ptr getelementptr inbounds (i8, ptr @fib, i64 8), align 8, !tbaa !5
  %1 = load i32, ptr @MOD, align 4, !tbaa !5
  br label %2

2:                                                ; preds = %2, %0
  %3 = phi i32 [ 1, %0 ], [ %14, %2 ]
  %indvars.iv = phi i64 [ 3, %0 ], [ %indvars.iv.next.1, %2 ]
  %4 = add nsw i64 %indvars.iv, -2
  %5 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = add nsw i32 %6, %3
  %8 = srem i32 %7, %1
  %9 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv
  store i32 %8, ptr %9, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %10 = add nsw i64 %indvars.iv, -1
  %11 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %10
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = add nsw i32 %12, %8
  %14 = srem i32 %13, %1
  %15 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv.next
  store i32 %14, ptr %15, align 4, !tbaa !5
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 1100001
  br i1 %exitcond.not.1, label %16, label %2, !llvm.loop !9

16:                                               ; preds = %2
  store i32 1100001, ptr @i, align 4, !tbaa !5
  %17 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  store i32 1, ptr @j, align 4, !tbaa !5
  %18 = load i32, ptr @t, align 4, !tbaa !5
  %.not21 = icmp slt i32 %18, 1
  br i1 %.not21, label %._crit_edge22, label %.preheader8

.preheader8:                                      ; preds = %16, %._crit_edge20
  %19 = load i32, ptr @MOD, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 0
  br i1 %20, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader8
  %21 = zext nneg i32 %19 to i64
  %22 = shl nuw nsw i64 %21, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 16 @s, i8 0, i64 %22, i1 false), !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %.preheader8
  %storemerge4.lcssa = phi i32 [ 0, %.preheader8 ], [ %19, %.lr.ph.preheader ]
  store i32 %storemerge4.lcssa, ptr @i, align 4, !tbaa !5
  %23 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @a, ptr noundef nonnull @b)
  %24 = load i32, ptr @a, align 4, !tbaa !5
  %25 = load i32, ptr @b, align 4, !tbaa !5
  %.not611 = icmp slt i32 %25, 0
  br i1 %.not611, label %._crit_edge15, label %.lr.ph14.preheader

.lr.ph14.preheader:                               ; preds = %._crit_edge
  %26 = add i32 %25, %24
  %27 = sext i32 %24 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %24, i32 %26)
  %28 = add i32 %smax, 1
  %29 = sub i32 %28, %24
  %30 = sub i32 %smax, %24
  %xtraiter = and i32 %29, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph14.prol.loopexit, label %.lr.ph14.prol

.lr.ph14.prol:                                    ; preds = %.lr.ph14.preheader, %.lr.ph14.prol
  %indvars.iv33.prol = phi i64 [ %indvars.iv.next34.prol, %.lr.ph14.prol ], [ %27, %.lr.ph14.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph14.prol ], [ 0, %.lr.ph14.preheader ]
  %31 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv33.prol
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100000 x i32], ptr @s, 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
  %indvars.iv.next34.prol = add nsw i64 %indvars.iv33.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph14.prol.loopexit, label %.lr.ph14.prol, !llvm.loop !11

.lr.ph14.prol.loopexit:                           ; preds = %.lr.ph14.prol, %.lr.ph14.preheader
  %indvars.iv33.unr = phi i64 [ %27, %.lr.ph14.preheader ], [ %indvars.iv.next34.prol, %.lr.ph14.prol ]
  %37 = icmp ult i32 %30, 3
  br i1 %37, label %._crit_edge15, label %.lr.ph14

.lr.ph14:                                         ; preds = %.lr.ph14.prol.loopexit, %.lr.ph14
  %indvars.iv33 = phi i64 [ %indvars.iv.next34.3, %.lr.ph14 ], [ %indvars.iv33.unr, %.lr.ph14.prol.loopexit ]
  %38 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv33
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %41, align 4, !tbaa !5
  %indvars.iv.next34 = add nsw i64 %indvars.iv33, 1
  %44 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv.next34
  %45 = load i32, ptr %44, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %46
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %47, align 4, !tbaa !5
  %indvars.iv.next34.1 = add nsw i64 %indvars.iv33, 2
  %50 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv.next34.1
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %52
  %54 = load i32, ptr %53, align 4, !tbaa !5
  %55 = add nsw i32 %54, 1
  store i32 %55, ptr %53, align 4, !tbaa !5
  %indvars.iv.next34.2 = add nsw i64 %indvars.iv33, 3
  %56 = getelementptr inbounds [1100001 x i32], ptr @fib, i64 0, i64 %indvars.iv.next34.2
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [100000 x i32], ptr @s, 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
  %indvars.iv.next34.3 = add nsw i64 %indvars.iv33, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next34.3 to i32
  %exitcond36.not.3 = icmp eq i32 %28, %lftr.wideiv.3
  br i1 %exitcond36.not.3, label %._crit_edge15, label %.lr.ph14, !llvm.loop !13

._crit_edge15:                                    ; preds = %.lr.ph14.prol.loopexit, %.lr.ph14, %._crit_edge
  %storemerge5.lcssa = phi i32 [ %24, %._crit_edge ], [ %28, %.lr.ph14 ], [ %28, %.lr.ph14.prol.loopexit ]
  store i32 %storemerge5.lcssa, ptr @i, align 4, !tbaa !5
  %62 = load i32, ptr @j, align 4, !tbaa !5
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %62)
  %64 = load i32, ptr @b, align 4, !tbaa !5
  %65 = tail call i32 @llvm.smin.i32(i32 %64, i32 99)
  %spec.store.select = add nsw i32 %65, 1
  store i32 %spec.store.select, ptr @b, align 4
  store i32 0, ptr @i, align 4, !tbaa !5
  %.not23 = icmp eq i32 %spec.store.select, 0
  br i1 %.not23, label %._crit_edge20, label %.preheader

.preheader:                                       ; preds = %._crit_edge15, %._crit_edge18
  %66 = phi i32 [ %86, %._crit_edge18 ], [ %spec.store.select, %._crit_edge15 ]
  %67 = phi i32 [ %87, %._crit_edge18 ], [ 0, %._crit_edge15 ]
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = icmp sgt i32 %70, 0
  %72 = icmp ne i32 %66, 0
  %73 = select i1 %71, i1 %72, i1 false
  br i1 %73, label %.lr.ph17, label %._crit_edge18

.lr.ph17:                                         ; preds = %.preheader, %.lr.ph17
  %74 = phi i32 [ %76, %.lr.ph17 ], [ %67, %.preheader ]
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef %74)
  %76 = load i32, ptr @i, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100000 x i32], ptr @s, i64 0, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = add nsw i32 %79, -1
  store i32 %80, ptr %78, align 4, !tbaa !5
  %81 = load i32, ptr @b, align 4, !tbaa !5
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr @b, align 4, !tbaa !5
  %83 = icmp sgt i32 %79, 1
  %84 = icmp ne i32 %82, 0
  %85 = select i1 %83, i1 %84, i1 false
  br i1 %85, label %.lr.ph17, label %._crit_edge18, !llvm.loop !14

._crit_edge18:                                    ; preds = %.lr.ph17, %.preheader
  %86 = phi i32 [ %66, %.preheader ], [ %82, %.lr.ph17 ]
  %.lcssa = phi i32 [ %67, %.preheader ], [ %76, %.lr.ph17 ]
  %87 = add nsw i32 %.lcssa, 1
  store i32 %87, ptr @i, align 4, !tbaa !5
  %88 = icmp slt i32 %.lcssa, 99999
  %89 = icmp ne i32 %86, 0
  %90 = select i1 %88, i1 %89, i1 false
  br i1 %90, label %.preheader, label %._crit_edge20, !llvm.loop !15

._crit_edge20:                                    ; preds = %._crit_edge18, %._crit_edge15
  %91 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  %92 = load i32, ptr @j, align 4, !tbaa !5
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr @j, align 4, !tbaa !5
  %94 = load i32, ptr @t, align 4, !tbaa !5
  %.not.not = icmp slt i32 %92, %94
  br i1 %.not.not, label %.preheader8, label %._crit_edge22, !llvm.loop !16

._crit_edge22:                                    ; preds = %._crit_edge20, %16
  ret i32 0
}

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

; 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.smin.i32(i32, i32) #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 speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }

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


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