; LLVM IR from tangjz/acm-icpc :: projecteuler (233)

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

@tot = external dso_local global i32, align 4
@pr = external dso_local global [5000001 x i32], align 16
@d = external dso_local global [5000001 x i32], align 16
@seq = external dso_local global [3 x i32], align 4
@lim = external dso_local global i64, align 8
@s = external dso_local global [5000001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3dfsix(i32 noundef, i64 noundef) #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  store i64 1, ptr getelementptr inbounds ([5000001 x i64], ptr @s, i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 2, ptr %2, align 4, !tbaa !9
  br label %9

9:                                                ; preds = %130, %0
  %10 = load i32, ptr %2, align 4, !tbaa !9
  %11 = icmp slt i32 %10, 5000001
  br i1 %11, label %13, label %12

12:                                               ; preds = %9
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %133

13:                                               ; preds = %9
  %14 = load i32, ptr %2, align 4, !tbaa !9
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %28, label %19

19:                                               ; preds = %13
  %20 = load i32, ptr %2, align 4, !tbaa !9
  %21 = load i32, ptr %2, align 4, !tbaa !9
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %22
  store i32 %20, ptr %23, align 4, !tbaa !9
  %24 = load i32, ptr @tot, align 4, !tbaa !9
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr @tot, align 4, !tbaa !9
  %26 = sext i32 %24 to i64
  %27 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %26
  store i32 %20, ptr %27, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %19, %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  br label %29

29:                                               ; preds = %57, %28
  %30 = load i32, ptr %2, align 4, !tbaa !9
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = mul nsw i32 %30, %34
  store i32 %35, ptr %5, align 4, !tbaa !9
  %36 = icmp slt i32 %35, 5000001
  br i1 %36, label %38, label %37

37:                                               ; preds = %29
  store i32 5, ptr %3, align 4
  br label %60

38:                                               ; preds = %29
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %44
  store i32 %42, ptr %45, align 4, !tbaa !9
  %46 = load i32, ptr %2, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !9
  %50 = load i32, ptr %4, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = icmp eq i32 %49, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %38
  store i32 5, ptr %3, align 4
  br label %60

56:                                               ; preds = %38
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %4, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %4, align 4, !tbaa !9
  br label %29, !llvm.loop !11

60:                                               ; preds = %55, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 1, ptr %6, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %62 = load i32, ptr %2, align 4, !tbaa !9
  store i32 %62, ptr %7, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %108, %61
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = icmp sgt i32 %64, 1
  br i1 %65, label %66, label %88

66:                                               ; preds = %63
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 2
  br i1 %71, label %79, label %72

72:                                               ; preds = %66
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = and i32 %76, 3
  %78 = icmp eq i32 %77, 3
  br label %79

79:                                               ; preds = %72, %66
  %80 = phi i1 [ true, %66 ], [ %78, %72 ]
  %81 = zext i1 %80 to i32
  %82 = load i8, ptr %6, align 1, !tbaa !13, !range !15, !noundef !16
  %83 = trunc i8 %82 to i1
  %84 = zext i1 %83 to i32
  %85 = and i32 %84, %81
  %86 = icmp ne i32 %85, 0
  %87 = zext i1 %86 to i8
  store i8 %87, ptr %6, align 1, !tbaa !13
  br label %88

88:                                               ; preds = %79, %63
  %89 = phi i1 [ false, %63 ], [ %86, %79 ]
  br i1 %89, label %91, label %90

90:                                               ; preds = %88
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %112

91:                                               ; preds = %88
  br label %92

92:                                               ; preds = %91
  %93 = load i32, ptr %7, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %98, label %103

98:                                               ; preds = %92
  %99 = load i32, ptr %7, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !9
  br label %108

103:                                              ; preds = %92
  %104 = load i32, ptr %7, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %103, %98
  %109 = phi i32 [ %102, %98 ], [ %107, %103 ]
  %110 = load i32, ptr %7, align 4, !tbaa !9
  %111 = sdiv i32 %110, %109
  store i32 %111, ptr %7, align 4, !tbaa !9
  br label %63, !llvm.loop !17

112:                                              ; preds = %90
  %113 = load i32, ptr %2, align 4, !tbaa !9
  %114 = sub nsw i32 %113, 1
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [5000001 x i64], ptr @s, i64 0, i64 %115
  %117 = load i64, ptr %116, align 8, !tbaa !5
  %118 = load i8, ptr %6, align 1, !tbaa !13, !range !15, !noundef !16
  %119 = trunc i8 %118 to i1
  br i1 %119, label %120, label %122

120:                                              ; preds = %112
  %121 = load i32, ptr %2, align 4, !tbaa !9
  br label %123

122:                                              ; preds = %112
  br label %123

123:                                              ; preds = %122, %120
  %124 = phi i32 [ %121, %120 ], [ 0, %122 ]
  %125 = sext i32 %124 to i64
  %126 = add nsw i64 %117, %125
  %127 = load i32, ptr %2, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds [5000001 x i64], ptr @s, i64 0, i64 %128
  store i64 %126, ptr %129, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  br label %130

130:                                              ; preds = %123
  %131 = load i32, ptr %2, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %2, align 4, !tbaa !9
  br label %9, !llvm.loop !18

133:                                              ; preds = %12
  br label %134

134:                                              ; preds = %137, %133
  %135 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @lim)
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %155

137:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 0, ptr %8, align 8, !tbaa !5
  store i32 52, ptr @seq, align 4, !tbaa !9
  %138 = call noundef i64 @_Z3dfsix(i32 noundef 0, i64 noundef 1)
  %139 = load i64, ptr %8, align 8, !tbaa !5
  %140 = add nsw i64 %139, %138
  store i64 %140, ptr %8, align 8, !tbaa !5
  store i32 1, ptr @seq, align 4, !tbaa !9
  store i32 17, ptr getelementptr inbounds ([3 x i32], ptr @seq, i64 0, i64 1), align 4, !tbaa !9
  %141 = call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %142 = load i64, ptr %8, align 8, !tbaa !5
  %143 = add nsw i64 %142, %141
  store i64 %143, ptr %8, align 8, !tbaa !5
  store i32 2, ptr @seq, align 4, !tbaa !9
  store i32 10, ptr getelementptr inbounds ([3 x i32], ptr @seq, i64 0, i64 1), align 4, !tbaa !9
  %144 = call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %145 = load i64, ptr %8, align 8, !tbaa !5
  %146 = add nsw i64 %145, %144
  store i64 %146, ptr %8, align 8, !tbaa !5
  store i32 3, ptr @seq, align 4, !tbaa !9
  store i32 7, ptr getelementptr inbounds ([3 x i32], ptr @seq, i64 0, i64 1), align 4, !tbaa !9
  %147 = call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %148 = load i64, ptr %8, align 8, !tbaa !5
  %149 = add nsw i64 %148, %147
  store i64 %149, ptr %8, align 8, !tbaa !5
  store i32 1, ptr @seq, align 4, !tbaa !9
  store i32 2, ptr getelementptr inbounds ([3 x i32], ptr @seq, i64 0, i64 1), align 4, !tbaa !9
  store i32 3, ptr getelementptr inbounds ([3 x i32], ptr @seq, i64 0, i64 2), align 4, !tbaa !9
  %150 = call noundef i64 @_Z3dfsix(i32 noundef 2, i64 noundef 1)
  %151 = load i64, ptr %8, align 8, !tbaa !5
  %152 = add nsw i64 %151, %150
  store i64 %152, ptr %8, align 8, !tbaa !5
  %153 = load i64, ptr %8, align 8, !tbaa !5
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %153)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %134, !llvm.loop !19

155:                                              ; preds = %134
  ret i32 0
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !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"

@tot = external dso_local local_unnamed_addr global i32, align 4
@pr = external dso_local local_unnamed_addr global [5000001 x i32], align 16
@d = external dso_local local_unnamed_addr global [5000001 x i32], align 16
@seq = external dso_local local_unnamed_addr global [3 x i32], align 4
@lim = external dso_local global i64, align 8
@s = external dso_local local_unnamed_addr global [5000001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z3dfsix(i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  store i64 1, ptr getelementptr inbounds (i8, ptr @s, i64 8), align 8, !tbaa !5
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !9
  br label %3

.preheader:                                       ; preds = %.critedge
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @lim)
  %2 = icmp eq i32 %1, 1
  br i1 %2, label %.lr.ph46, label %._crit_edge47

3:                                                ; preds = %0, %.critedge
  %4 = phi i64 [ 1, %0 ], [ %35, %.critedge ]
  %indvars.iv49 = phi i64 [ 2, %0 ], [ %indvars.iv.next50, %.critedge ]
  %5 = phi i32 [ %tot.promoted, %0 ], [ %13, %.critedge ]
  %6 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %indvars.iv49
  %7 = load i32, ptr %6, align 4, !tbaa !9
  %.not = icmp eq i32 %7, 0
  %8 = trunc nuw nsw i64 %indvars.iv49 to i32
  br i1 %.not, label %9, label %._crit_edge52

9:                                                ; preds = %3
  store i32 %8, ptr %6, align 4, !tbaa !9
  %10 = add nsw i32 %5, 1
  store i32 %10, ptr @tot, align 4, !tbaa !9
  %11 = sext i32 %5 to i64
  %12 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %11
  store i32 %8, ptr %12, align 4, !tbaa !9
  br label %._crit_edge52

._crit_edge52:                                    ; preds = %3, %9
  %13 = phi i32 [ %10, %9 ], [ %5, %3 ]
  %14 = load i32, ptr @pr, align 16, !tbaa !9
  %15 = mul nsw i32 %14, %8
  %16 = icmp slt i32 %15, 5000001
  br i1 %16, label %.lr.ph, label %.lr.ph42.preheader

17:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = getelementptr inbounds [5000001 x i32], ptr @pr, i64 0, i64 %indvars.iv.next
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = mul nsw i32 %19, %8
  %21 = icmp slt i32 %20, 5000001
  br i1 %21, label %.lr.ph, label %.lr.ph42.preheader, !llvm.loop !11

.lr.ph:                                           ; preds = %._crit_edge52, %17
  %indvars.iv = phi i64 [ %indvars.iv.next, %17 ], [ 0, %._crit_edge52 ]
  %22 = phi i32 [ %20, %17 ], [ %15, %._crit_edge52 ]
  %23 = phi i32 [ %19, %17 ], [ %14, %._crit_edge52 ]
  %24 = sext i32 %22 to i64
  %25 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %24
  store i32 %23, ptr %25, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp eq i32 %26, %23
  br i1 %27, label %.lr.ph42.preheader, label %17

.lr.ph42.preheader:                               ; preds = %.lr.ph, %17, %._crit_edge52
  br label %.lr.ph42

.lr.ph42:                                         ; preds = %.lr.ph42.preheader, %37
  %.03140 = phi i32 [ %38, %37 ], [ %8, %.lr.ph42.preheader ]
  %28 = zext nneg i32 %.03140 to i64
  %29 = getelementptr inbounds [5000001 x i32], ptr @d, i64 0, i64 %28
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = icmp eq i32 %30, 2
  %32 = and i32 %30, 3
  %33 = icmp eq i32 %32, 3
  %34 = or i1 %31, %33
  br i1 %34, label %37, label %.critedge

.critedge:                                        ; preds = %.lr.ph42, %37
  %.ph = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv49, %37 ]
  %35 = add nuw nsw i64 %4, %.ph
  %36 = getelementptr inbounds [5000001 x i64], ptr @s, i64 0, i64 %indvars.iv49
  store i64 %35, ptr %36, align 8, !tbaa !5
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next50, 5000001
  br i1 %exitcond.not, label %.preheader, label %3, !llvm.loop !13

37:                                               ; preds = %.lr.ph42
  %38 = sdiv i32 %.03140, %30
  %39 = icmp slt i32 %38, 2
  br i1 %39, label %.critedge, label %.lr.ph42, !llvm.loop !14

.lr.ph46:                                         ; preds = %.preheader, %.lr.ph46
  store i32 52, ptr @seq, align 4, !tbaa !9
  %40 = tail call noundef i64 @_Z3dfsix(i32 noundef 0, i64 noundef 1)
  store i32 1, ptr @seq, align 4, !tbaa !9
  store i32 17, ptr getelementptr inbounds (i8, ptr @seq, i64 4), align 4, !tbaa !9
  %41 = tail call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %42 = add nsw i64 %41, %40
  store i32 2, ptr @seq, align 4, !tbaa !9
  store i32 10, ptr getelementptr inbounds (i8, ptr @seq, i64 4), align 4, !tbaa !9
  %43 = tail call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %44 = add nsw i64 %42, %43
  store i32 3, ptr @seq, align 4, !tbaa !9
  store i32 7, ptr getelementptr inbounds (i8, ptr @seq, i64 4), align 4, !tbaa !9
  %45 = tail call noundef i64 @_Z3dfsix(i32 noundef 1, i64 noundef 1)
  %46 = add nsw i64 %44, %45
  store i32 1, ptr @seq, align 4, !tbaa !9
  store i32 2, ptr getelementptr inbounds (i8, ptr @seq, i64 4), align 4, !tbaa !9
  store i32 3, ptr getelementptr inbounds (i8, ptr @seq, i64 8), align 4, !tbaa !9
  %47 = tail call noundef i64 @_Z3dfsix(i32 noundef 2, i64 noundef 1)
  %48 = add nsw i64 %46, %47
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %48)
  %50 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @lim)
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %.lr.ph46, label %._crit_edge47, !llvm.loop !15

._crit_edge47:                                    ; preds = %.lr.ph46, %.preheader
  ret i32 0
}

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

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

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

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


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