; LLVM IR from tangjz/acm-icpc :: TDL_training/2015-11-15 (I - The old Padawan - dby)

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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@t = external dso_local global [100030 x i32], align 16
@now = external dso_local global i32, align 4
@s = external dso_local global [100030 x i64], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 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 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 i64, align 8
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  br label %10

10:                                               ; preds = %124, %0
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m, ptr noundef @k)
  %12 = icmp ne i32 %11, -1
  br i1 %12, label %13, label %125

13:                                               ; preds = %10
  store i64 0, ptr @s, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  store i32 1, ptr %3, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %32, %13
  %15 = load i32, ptr %3, align 4, !tbaa !9
  %16 = load i32, ptr @n, align 4, !tbaa !9
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %35

19:                                               ; preds = %14
  %20 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2)
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = sub nsw i32 %21, 1
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %23
  %25 = load i64, ptr %24, align 8, !tbaa !5
  %26 = load i32, ptr %2, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = add nsw i64 %25, %27
  %29 = load i32, ptr %3, align 4, !tbaa !9
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %30
  store i64 %28, ptr %31, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %19
  %33 = load i32, ptr %3, align 4, !tbaa !9
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %3, align 4, !tbaa !9
  br label %14, !llvm.loop !11

35:                                               ; preds = %18
  store i32 0, ptr @t, align 16, !tbaa !9
  %36 = load i32, ptr @m, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %38
  store i32 1073741823, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 1, ptr %4, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %50, %35
  %41 = load i32, ptr %4, align 4, !tbaa !9
  %42 = load i32, ptr @m, align 4, !tbaa !9
  %43 = icmp sle i32 %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %53

45:                                               ; preds = %40
  %46 = load i32, ptr %4, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %47
  %49 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %48)
  br label %50

50:                                               ; preds = %45
  %51 = load i32, ptr %4, align 4, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %4, align 4, !tbaa !9
  br label %40, !llvm.loop !13

53:                                               ; preds = %44
  store i32 0, ptr @now, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %120, %53
  %55 = load i32, ptr %5, align 4, !tbaa !9
  %56 = load i32, ptr @m, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  %58 = icmp sle i32 %55, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %54
  store i32 10, ptr %6, align 4
  br label %123

60:                                               ; preds = %54
  %61 = load i32, ptr %5, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %67
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = sub nsw i32 %64, %69
  %71 = load i32, ptr @n, align 4, !tbaa !9
  %72 = load i32, ptr @now, align 4, !tbaa !9
  %73 = sub nsw i32 %71, %72
  %74 = icmp sgt i32 %70, %73
  br i1 %74, label %75, label %86

75:                                               ; preds = %60
  %76 = load i32, ptr %5, align 4, !tbaa !9
  %77 = sub nsw i32 %76, 1
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %78
  %80 = load i32, ptr %79, align 4, !tbaa !9
  %81 = load i32, ptr @n, align 4, !tbaa !9
  %82 = add nsw i32 %80, %81
  %83 = load i32, ptr @now, align 4, !tbaa !9
  %84 = sub nsw i32 %82, %83
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %84)
  store i32 10, ptr %6, align 4
  br label %123

86:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %87 = load i32, ptr @now, align 4, !tbaa !9
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %89
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = add nsw i32 %87, %91
  %93 = load i32, ptr %5, align 4, !tbaa !9
  %94 = sub nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = sub nsw i32 %92, %97
  %99 = sub nsw i32 %98, 1
  store i32 %99, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %101
  %103 = load i64, ptr %102, align 8, !tbaa !5
  %104 = load i32, ptr @k, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = sub nsw i64 %103, %105
  %107 = sub nsw i64 %106, 1
  %108 = call noundef i64 @_Z3maxxx(i64 noundef %107, i64 noundef 0)
  store i64 %108, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %109 = load i32, ptr %7, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i64, ptr @s, i64 %110
  %112 = getelementptr inbounds i64, ptr %111, i64 1
  %113 = call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef @s, ptr noundef %112, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %114 = ptrtoint ptr %113 to i64
  %115 = sub i64 %114, ptrtoint (ptr @s to i64)
  %116 = sdiv exact i64 %115, 8
  %117 = sub nsw i64 %116, 1
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %9, align 4, !tbaa !9
  %119 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %119, ptr @now, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %120

120:                                              ; preds = %86
  %121 = load i32, ptr %5, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %5, align 4, !tbaa !9
  br label %54, !llvm.loop !14

123:                                              ; preds = %75, %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %124

124:                                              ; preds = %123
  br label %10, !llvm.loop !15

125:                                              ; preds = %10
  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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3maxxx(i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #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 = { "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 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 #4 = { 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 #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 = !{!"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}


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

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@k = external dso_local global i32, align 4
@t = external dso_local global [100030 x i32], align 16
@now = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local global [100030 x i64], align 16
@.str = external hidden unnamed_addr constant [7 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [4 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 = alloca i64, align 8
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @k)
  %.not35 = icmp eq i32 %3, -1
  br i1 %.not35, label %._crit_edge38, label %.lr.ph37

.lr.ph37:                                         ; preds = %0, %.loopexit
  store i64 0, ptr @s, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  %4 = load i32, ptr @n, align 4, !tbaa !9
  %.not1924 = icmp slt i32 %4, 1
  br i1 %.not1924, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr @t, align 16, !tbaa !9
  %5 = load i32, ptr @m, align 4, !tbaa !9
  %6 = add nsw i32 %5, 1
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %7
  store i32 1073741823, ptr %8, align 4, !tbaa !9
  %.not2026 = icmp slt i32 %5, 1
  br i1 %.not2026, label %._crit_edge30, label %.lr.ph29

.lr.ph:                                           ; preds = %.lr.ph37, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %.lr.ph37 ]
  %9 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %10 = add nsw i64 %indvars.iv, -1
  %11 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %10
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = load i32, ptr %1, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = add nsw i64 %12, %14
  %16 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %indvars.iv
  store i64 %15, ptr %16, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %17 = load i32, ptr @n, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %.not19.not = icmp slt i64 %indvars.iv, %18
  br i1 %.not19.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge30:                                    ; preds = %.lr.ph29, %._crit_edge
  %19 = phi i32 [ %5, %._crit_edge ], [ %22, %.lr.ph29 ]
  store i32 0, ptr @now, align 4, !tbaa !9
  %.not2131 = icmp slt i32 %19, 0
  br i1 %.not2131, label %.loopexit, label %.lr.ph34

.lr.ph29:                                         ; preds = %._crit_edge, %.lr.ph29
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %.lr.ph29 ], [ 1, %._crit_edge ]
  %20 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %indvars.iv45
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %20)
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %22 = load i32, ptr @m, align 4, !tbaa !9
  %23 = sext i32 %22 to i64
  %.not20.not = icmp slt i64 %indvars.iv45, %23
  br i1 %.not20.not, label %.lr.ph29, label %._crit_edge30, !llvm.loop !13

.lr.ph34:                                         ; preds = %._crit_edge30, %38
  %24 = phi i32 [ %55, %38 ], [ 0, %._crit_edge30 ]
  %indvars.iv48 = phi i64 [ %indvars.iv.next49, %38 ], [ 1, %._crit_edge30 ]
  %25 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %indvars.iv48
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = add nsw i64 %indvars.iv48, -1
  %28 = getelementptr inbounds [100030 x i32], ptr @t, i64 0, i64 %27
  %29 = load i32, ptr %28, align 4, !tbaa !9
  %30 = sub nsw i32 %26, %29
  %31 = load i32, ptr @n, align 4, !tbaa !9
  %32 = sub nsw i32 %31, %24
  %33 = icmp sgt i32 %30, %32
  br i1 %33, label %34, label %38

34:                                               ; preds = %.lr.ph34
  %35 = add nsw i32 %31, %29
  %36 = sub i32 %35, %24
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %36)
  br label %.loopexit

38:                                               ; preds = %.lr.ph34
  %39 = xor i32 %29, -1
  %40 = add i32 %26, %39
  %41 = add i32 %40, %24
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100030 x i64], ptr @s, i64 0, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = load i32, ptr @k, align 4, !tbaa !9
  %46 = xor i32 %45, -1
  %47 = sext i32 %46 to i64
  %48 = add i64 %44, %47
  %49 = call noundef i64 @_Z3maxxx(i64 noundef %48, i64 noundef 0)
  store i64 %49, ptr %2, align 8, !tbaa !5
  %gep = getelementptr i64, ptr getelementptr inbounds (i8, ptr @s, i64 8), i64 %42
  %50 = call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef nonnull @s, ptr noundef nonnull %gep, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %51 = ptrtoint ptr %50 to i64
  %52 = sub i64 %51, ptrtoint (ptr @s to i64)
  %53 = lshr exact i64 %52, 3
  %54 = trunc i64 %53 to i32
  %55 = add i32 %54, -1
  store i32 %55, ptr @now, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %56 = load i32, ptr @m, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %.not21 = icmp sgt i64 %indvars.iv48, %57
  br i1 %.not21, label %.loopexit, label %.lr.ph34, !llvm.loop !14

.loopexit:                                        ; preds = %38, %._crit_edge30, %34
  %58 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m, ptr noundef nonnull @k)
  %.not = icmp eq i32 %58, -1
  br i1 %.not, label %._crit_edge38, label %.lr.ph37, !llvm.loop !15

._crit_edge38:                                    ; preds = %.loopexit, %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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z3maxxx(i64 noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #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 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 #4 = { 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 #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 = !{!"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: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass