; LLVM IR from tangjz/acm-icpc :: codeforces/gym (101385B)

; 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
@buf = external dso_local global [31 x [31 x i8]], align 16
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 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 i32, align 4
  store i32 0, ptr %1, align 4
  %9 = load ptr, ptr @stdin, align 8, !tbaa !5
  %10 = call ptr @freopen(ptr noundef @.str, ptr noundef @.str.1, ptr noundef %9)
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  %12 = call ptr @freopen(ptr noundef @.str.2, ptr noundef @.str.3, ptr noundef %11)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef @n, ptr noundef @m)
  %14 = call i64 @time(ptr noundef null) #5
  %15 = trunc i64 %14 to i32
  call void @srand(i32 noundef %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %38, %0
  %17 = load i32, ptr %2, align 4, !tbaa !9
  %18 = load i32, ptr @n, align 4, !tbaa !9
  %19 = icmp slt i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %41

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

22:                                               ; preds = %34, %21
  %23 = load i32, ptr %4, align 4, !tbaa !9
  %24 = load i32, ptr @n, align 4, !tbaa !9
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %37

27:                                               ; preds = %22
  %28 = load i32, ptr %2, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [31 x [31 x i8]], ptr @buf, i64 0, i64 %29
  %31 = load i32, ptr %4, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [31 x i8], ptr %30, i64 0, i64 %32
  store i8 46, ptr %33, align 1, !tbaa !11
  br label %34

34:                                               ; preds = %27
  %35 = load i32, ptr %4, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %4, align 4, !tbaa !9
  br label %22, !llvm.loop !12

37:                                               ; preds = %26
  br label %38

38:                                               ; preds = %37
  %39 = load i32, ptr %2, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %2, align 4, !tbaa !9
  br label %16, !llvm.loop !14

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

42:                                               ; preds = %47, %41
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 10000000
  br i1 %44, label %46, label %45

45:                                               ; preds = %42
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %50

46:                                               ; preds = %42
  call void @_Z11random_walkv()
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %5, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %5, align 4, !tbaa !9
  br label %42, !llvm.loop !15

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %88, %50
  %52 = load i32, ptr %6, align 4, !tbaa !9
  %53 = load i32, ptr @m, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 11, ptr %3, align 4
  br label %91

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %57

57:                                               ; preds = %68, %56
  %58 = load i32, ptr %7, align 4, !tbaa !9
  %59 = load i32, ptr @n, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 14, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %71

62:                                               ; preds = %57
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [31 x [31 x i8]], ptr @buf, i64 0, i64 %64
  %66 = getelementptr inbounds [31 x i8], ptr %65, i64 0, i64 0
  %67 = call i32 @puts(ptr noundef %66)
  br label %68

68:                                               ; preds = %62
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %7, align 4, !tbaa !9
  br label %57, !llvm.loop !16

71:                                               ; preds = %61
  %72 = load i32, ptr %6, align 4, !tbaa !9
  %73 = load i32, ptr @m, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 1
  %75 = icmp eq i32 %72, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %71
  store i32 11, ptr %3, align 4
  br label %91

77:                                               ; preds = %71
  %78 = call i32 @puts(ptr noundef @.str.5)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %84, %77
  %80 = load i32, ptr %8, align 4, !tbaa !9
  %81 = icmp slt i32 %80, 1000
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 17, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %87

83:                                               ; preds = %79
  call void @_Z11random_walkv()
  br label %84

84:                                               ; preds = %83
  %85 = load i32, ptr %8, align 4, !tbaa !9
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %8, align 4, !tbaa !9
  br label %79, !llvm.loop !17

87:                                               ; preds = %82
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !9
  br label %51, !llvm.loop !18

91:                                               ; preds = %76, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %92

92:                                               ; preds = %91
  ret i32 0
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) #2

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z11random_walkv() #4

declare i32 @puts(ptr noundef) #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 = { "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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


; 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
@buf = external dso_local global [31 x [31 x i8]], align 16
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@stdin = external local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [1 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = load ptr, ptr @stdin, align 8, !tbaa !5
  %2 = tail call ptr @freopen(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef %1)
  %3 = load ptr, ptr @stdout, align 8, !tbaa !5
  %4 = tail call ptr @freopen(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, ptr noundef %3)
  %5 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %6 = tail call i64 @time(ptr noundef null) #6
  %7 = trunc i64 %6 to i32
  tail call void @srand(i32 noundef %7) #6
  %8 = load i32, ptr @n, align 4, !tbaa !9
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.preheader23.us.preheader, label %.preheader22.preheader

.preheader22.preheader.loopexit.unr-lcssa:        ; preds = %.preheader23.us, %.preheader23.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader23.us.preheader ], [ %indvar.next.7, %.preheader23.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader22.preheader, label %.preheader23.us.epil

.preheader23.us.epil:                             ; preds = %.preheader22.preheader.loopexit.unr-lcssa, %.preheader23.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader23.us.epil ], [ %indvar.unr, %.preheader22.preheader.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader23.us.epil ], [ 0, %.preheader22.preheader.loopexit.unr-lcssa ]
  %10 = mul nuw nsw i64 %indvar.epil, 31
  %scevgep.epil = getelementptr i8, ptr @buf, i64 %10
  tail call void @llvm.memset.p0.i64(ptr align 1 %scevgep.epil, i8 46, i64 %11, i1 false), !tbaa !11
  %indvar.next.epil = add nuw nsw i64 %indvar.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader22.preheader, label %.preheader23.us.epil, !llvm.loop !12

.preheader22.preheader:                           ; preds = %.preheader22.preheader.loopexit.unr-lcssa, %.preheader23.us.epil, %0
  br label %.preheader22

.preheader23.us.preheader:                        ; preds = %0
  %11 = zext nneg i32 %8 to i64
  %xtraiter = and i64 %11, 7
  %12 = icmp ult i32 %8, 8
  br i1 %12, label %.preheader22.preheader.loopexit.unr-lcssa, label %.preheader23.us.preheader.new

.preheader23.us.preheader.new:                    ; preds = %.preheader23.us.preheader
  %unroll_iter = and i64 %11, 2147483640
  br label %.preheader23.us

.preheader23.us:                                  ; preds = %.preheader23.us, %.preheader23.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader23.us.preheader.new ], [ %indvar.next.7, %.preheader23.us ]
  %niter = phi i64 [ 0, %.preheader23.us.preheader.new ], [ %niter.next.7, %.preheader23.us ]
  %13 = mul nuw nsw i64 %indvar, 31
  %scevgep = getelementptr i8, ptr @buf, i64 %13
  tail call void @llvm.memset.p0.i64(ptr align 8 %scevgep, i8 46, i64 %11, i1 false), !tbaa !11
  %14 = mul nuw i64 %indvar, 31
  %gep = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 31), i64 %14
  tail call void @llvm.memset.p0.i64(ptr align 1 %gep, i8 46, i64 %11, i1 false), !tbaa !11
  %15 = mul nuw i64 %indvar, 31
  %gep37 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 62), i64 %15
  tail call void @llvm.memset.p0.i64(ptr align 2 %gep37, i8 46, i64 %11, i1 false), !tbaa !11
  %16 = mul nuw i64 %indvar, 31
  %gep38 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 93), i64 %16
  tail call void @llvm.memset.p0.i64(ptr align 1 %gep38, i8 46, i64 %11, i1 false), !tbaa !11
  %17 = mul nuw i64 %indvar, 31
  %gep39 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 124), i64 %17
  tail call void @llvm.memset.p0.i64(ptr align 4 %gep39, i8 46, i64 %11, i1 false), !tbaa !11
  %18 = mul nuw i64 %indvar, 31
  %gep40 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 155), i64 %18
  tail call void @llvm.memset.p0.i64(ptr align 1 %gep40, i8 46, i64 %11, i1 false), !tbaa !11
  %19 = mul nuw i64 %indvar, 31
  %gep41 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 186), i64 %19
  tail call void @llvm.memset.p0.i64(ptr align 2 %gep41, i8 46, i64 %11, i1 false), !tbaa !11
  %20 = mul nuw i64 %indvar, 31
  %gep42 = getelementptr i8, ptr getelementptr (i8, ptr @buf, i64 217), i64 %20
  tail call void @llvm.memset.p0.i64(ptr align 1 %gep42, i8 46, i64 %11, i1 false), !tbaa !11
  %indvar.next.7 = add nuw nsw i64 %indvar, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %.preheader22.preheader.loopexit.unr-lcssa, label %.preheader23.us, !llvm.loop !14

.preheader21:                                     ; preds = %.preheader22
  %21 = load i32, ptr @m, align 4, !tbaa !9
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.preheader, label %._crit_edge30

.preheader22:                                     ; preds = %.preheader22.preheader, %.preheader22
  %.01826 = phi i32 [ %23, %.preheader22 ], [ 0, %.preheader22.preheader ]
  tail call void @_Z11random_walkv()
  %23 = add nuw nsw i32 %.01826, 1
  %exitcond34.not = icmp eq i32 %23, 10000000
  br i1 %exitcond34.not, label %.preheader21, label %.preheader22, !llvm.loop !16

.preheader:                                       ; preds = %.preheader21, %37
  %24 = phi i32 [ %39, %37 ], [ %21, %.preheader21 ]
  %.01729 = phi i32 [ %38, %37 ], [ 0, %.preheader21 ]
  %25 = load i32, ptr @n, align 4, !tbaa !9
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr @m, align 4, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %27 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %24, %.preheader ]
  %28 = add nsw i32 %27, -1
  %29 = icmp eq i32 %.01729, %28
  br i1 %29, label %._crit_edge30, label %35

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %30 = getelementptr inbounds [31 x [31 x i8]], ptr @buf, i64 0, i64 %indvars.iv
  %31 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %30)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %32 = load i32, ptr @n, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = icmp slt i64 %indvars.iv.next, %33
  br i1 %34, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !17

35:                                               ; preds = %._crit_edge
  %36 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.5)
  br label %41

37:                                               ; preds = %41
  %38 = add nuw nsw i32 %.01729, 1
  %39 = load i32, ptr @m, align 4, !tbaa !9
  %40 = icmp slt i32 %38, %39
  br i1 %40, label %.preheader, label %._crit_edge30, !llvm.loop !18

41:                                               ; preds = %35, %41
  %.028 = phi i32 [ 0, %35 ], [ %42, %41 ]
  tail call void @_Z11random_walkv()
  %42 = add nuw nsw i32 %.028, 1
  %exitcond36.not = icmp eq i32 %42, 1000
  br i1 %exitcond36.not, label %37, label %41, !llvm.loop !19

._crit_edge30:                                    ; preds = %37, %._crit_edge, %.preheader21
  ret i32 0
}

declare ptr @freopen(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z11random_walkv() local_unnamed_addr #4

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

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

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 = { 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 "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 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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