; LLVM IR from freakout42/macrocalc :: mc/nro (nrotxt)

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

%struct.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }
%struct.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }

@dc = external global %struct.docctl, align 4
@pout = external global ptr, align 8
@pg = external global %struct.page, align 4

; 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: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @expand(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @getfield(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @itoda(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @justcntr(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @justleft(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @justrite(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @prchar(i32 noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @putlin(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @puttl(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [8 x i8], align 1
  %9 = alloca [200000 x i8], align 16
  %10 = alloca [200000 x i8], align 16
  %11 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 200000, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 200000, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #3
  %12 = load i32, ptr %6, align 4, !tbaa !9
  %13 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  %14 = call i32 @itoda(i32 noundef %12, ptr noundef %13, i32 noundef 6)
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %22, %3
  %16 = load i32, ptr %7, align 4, !tbaa !9
  %17 = icmp slt i32 %16, 200000
  br i1 %17, label %18, label %25

18:                                               ; preds = %15
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 %20
  store i8 32, ptr %21, align 1, !tbaa !11
  br label %22

22:                                               ; preds = %18
  %23 = load i32, ptr %7, align 4, !tbaa !9
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %7, align 4, !tbaa !9
  br label %15, !llvm.loop !12

25:                                               ; preds = %15
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i32 1
  store ptr %27, ptr %4, align 8, !tbaa !5
  %28 = load i8, ptr %26, align 1, !tbaa !11
  store i8 %28, ptr %11, align 1, !tbaa !11
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %31 = load i8, ptr %11, align 1, !tbaa !11
  %32 = sext i8 %31 to i32
  %33 = call ptr @getfield(ptr noundef %29, ptr noundef %30, i32 noundef %32)
  store ptr %33, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %35 = load i8, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 12), align 4, !tbaa !14
  %36 = sext i8 %35 to i32
  %37 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  call void @expand(ptr noundef %34, i32 noundef %36, ptr noundef %37)
  %38 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %39 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 0
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %40, i64 0
  %42 = load i32, ptr %41, align 4, !tbaa !9
  call void @justleft(ptr noundef %38, ptr noundef %39, i32 noundef %42)
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %45 = load i8, ptr %11, align 1, !tbaa !11
  %46 = sext i8 %45 to i32
  %47 = call ptr @getfield(ptr noundef %43, ptr noundef %44, i32 noundef %46)
  store ptr %47, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %49 = load i8, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 12), align 4, !tbaa !14
  %50 = sext i8 %49 to i32
  %51 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  call void @expand(ptr noundef %48, i32 noundef %50, ptr noundef %51)
  %52 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %53 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 0
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  call void @justcntr(ptr noundef %52, ptr noundef %53, ptr noundef %54)
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %57 = load i8, ptr %11, align 1, !tbaa !11
  %58 = sext i8 %57 to i32
  %59 = call ptr @getfield(ptr noundef %55, ptr noundef %56, i32 noundef %58)
  store ptr %59, ptr %4, align 8, !tbaa !5
  %60 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %61 = load i8, ptr getelementptr inbounds (%struct.docctl, ptr @dc, i32 0, i32 12), align 4, !tbaa !14
  %62 = sext i8 %61 to i32
  %63 = getelementptr inbounds [8 x i8], ptr %8, i64 0, i64 0
  call void @expand(ptr noundef %60, i32 noundef %62, ptr noundef %63)
  %64 = getelementptr inbounds [200000 x i8], ptr %9, i64 0, i64 0
  %65 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 0
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds i32, ptr %66, i64 1
  %68 = load i32, ptr %67, align 4, !tbaa !9
  call void @justrite(ptr noundef %64, ptr noundef %65, i32 noundef %68)
  store i32 199996, ptr %7, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %80, %25
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 %71
  %73 = load i8, ptr %72, align 1, !tbaa !11
  %74 = sext i8 %73 to i32
  %75 = icmp eq i32 %74, 32
  br i1 %75, label %76, label %83

76:                                               ; preds = %69
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 %78
  store i8 0, ptr %79, align 1, !tbaa !11
  br label %80

80:                                               ; preds = %76
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = add nsw i32 %81, -1
  store i32 %82, ptr %7, align 4, !tbaa !9
  br label %69, !llvm.loop !16

83:                                               ; preds = %69
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %7, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 %86
  store i8 10, ptr %87, align 1, !tbaa !11
  %88 = load i32, ptr %7, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %7, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 %90
  store i8 0, ptr %91, align 1, !tbaa !11
  %92 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 0
  %93 = call i64 @strlen(ptr noundef %92) #4
  %94 = icmp ugt i64 %93, 2
  br i1 %94, label %95, label %106

95:                                               ; preds = %83
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %96

96:                                               ; preds = %102, %95
  %97 = load i32, ptr %7, align 4, !tbaa !9
  %98 = load i32, ptr getelementptr inbounds (%struct.page, ptr @pg, i32 0, i32 9), align 4, !tbaa !17
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %100, label %105

100:                                              ; preds = %96
  %101 = load ptr, ptr @pout, align 8, !tbaa !5
  call void @prchar(i32 noundef 32, ptr noundef %101)
  br label %102

102:                                              ; preds = %100
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !9
  br label %96, !llvm.loop !19

105:                                              ; preds = %96
  br label %106

106:                                              ; preds = %105, %83
  %107 = getelementptr inbounds [200000 x i8], ptr %10, i64 0, i64 0
  %108 = load ptr, ptr @pout, align 8, !tbaa !5
  call void @putlin(ptr noundef %107, ptr noundef %108)
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 200000, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 200000, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind willreturn memory(read) "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 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 = { nounwind }
attributes #4 = { nounwind willreturn memory(read) }

!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/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 = !{!15, !7, i64 48}
!15 = !{!"docctl", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !7, i64 64}
!16 = distinct !{!16, !13}
!17 = !{!18, !10, i64 36}
!18 = !{!"page", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 200080, !7, i64 400080, !7, i64 600080}
!19 = distinct !{!19, !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"

%struct.docctl = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i32, i32, i32, [26 x i32] }
%struct.page = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [2 x i32], [2 x i32], [2 x i32], [2 x i32], [200000 x i8], [200000 x i8], [200000 x i8], [200000 x i8] }

@dc = external local_unnamed_addr global %struct.docctl, align 4
@pout = external local_unnamed_addr global ptr, align 8
@pg = external local_unnamed_addr global %struct.page, align 4

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @expand(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @getfield(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @itoda(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @justcntr(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @justleft(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @justrite(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @prchar(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @putlin(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @puttl(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #2 {
  %4 = alloca [8 x i8], align 1
  %5 = alloca [200000 x i8], align 16
  %6 = alloca [200000 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 200000, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 200000, ptr nonnull %6) #4
  %7 = call i32 @itoda(i32 noundef %2, ptr noundef nonnull %4, i32 noundef 6)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(200000) %6, i8 32, i64 200000, i1 false), !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 1
  %9 = load i8, ptr %0, align 1, !tbaa !5
  %10 = sext i8 %9 to i32
  %11 = call ptr @getfield(ptr noundef nonnull %8, ptr noundef nonnull %5, i32 noundef %10)
  %12 = load i8, ptr getelementptr inbounds (i8, ptr @dc, i64 48), align 4, !tbaa !8
  %13 = sext i8 %12 to i32
  call void @expand(ptr noundef nonnull %5, i32 noundef %13, ptr noundef nonnull %4)
  %14 = load i32, ptr %1, align 4, !tbaa !11
  call void @justleft(ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %14)
  %15 = call ptr @getfield(ptr noundef %11, ptr noundef nonnull %5, i32 noundef %10)
  %16 = load i8, ptr getelementptr inbounds (i8, ptr @dc, i64 48), align 4, !tbaa !8
  %17 = sext i8 %16 to i32
  call void @expand(ptr noundef nonnull %5, i32 noundef %17, ptr noundef nonnull %4)
  call void @justcntr(ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef nonnull %1)
  %18 = call ptr @getfield(ptr noundef %15, ptr noundef nonnull %5, i32 noundef %10)
  %19 = load i8, ptr getelementptr inbounds (i8, ptr @dc, i64 48), align 4, !tbaa !8
  %20 = sext i8 %19 to i32
  call void @expand(ptr noundef nonnull %5, i32 noundef %20, ptr noundef nonnull %4)
  %21 = getelementptr inbounds i8, ptr %1, i64 4
  %22 = load i32, ptr %21, align 4, !tbaa !11
  call void @justrite(ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %22)
  %23 = getelementptr inbounds i8, ptr %6, i64 199996
  %24 = load i8, ptr %23, align 4, !tbaa !5
  %25 = icmp eq i8 %24, 32
  br i1 %25, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 199996, %3 ]
  %26 = phi ptr [ %27, %.lr.ph ], [ %23, %3 ]
  store i8 0, ptr %26, align 1, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %27 = getelementptr inbounds [200000 x i8], ptr %6, i64 0, i64 %indvars.iv.next
  %28 = load i8, ptr %27, align 1, !tbaa !5
  %29 = icmp eq i8 %28, 32
  br i1 %29, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !12

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %30 = trunc nsw i64 %indvars.iv.next to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %3
  %.1.lcssa = phi i32 [ 199996, %3 ], [ %30, %._crit_edge.loopexit ]
  %31 = add nsw i32 %.1.lcssa, 1
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [200000 x i8], ptr %6, i64 0, i64 %32
  store i8 10, ptr %33, align 1, !tbaa !5
  %34 = add nsw i32 %.1.lcssa, 2
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [200000 x i8], ptr %6, i64 0, i64 %35
  store i8 0, ptr %36, align 1, !tbaa !5
  %37 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %6) #5
  %38 = icmp ugt i64 %37, 2
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 36), align 4
  %40 = icmp sgt i32 %39, 0
  %or.cond = select i1 %38, i1 %40, i1 false
  br i1 %or.cond, label %.lr.ph23, label %.loopexit

.lr.ph23:                                         ; preds = %._crit_edge, %.lr.ph23
  %.222 = phi i32 [ %42, %.lr.ph23 ], [ 0, %._crit_edge ]
  %41 = load ptr, ptr @pout, align 8, !tbaa !14
  call void @prchar(i32 noundef 32, ptr noundef %41)
  %42 = add nuw nsw i32 %.222, 1
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @pg, i64 36), align 4, !tbaa !16
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph23, label %.loopexit, !llvm.loop !18

.loopexit:                                        ; preds = %.lr.ph23, %._crit_edge
  %45 = load ptr, ptr @pout, align 8, !tbaa !14
  call void @putlin(ptr noundef nonnull %6, ptr noundef %45)
  call void @llvm.lifetime.end.p0(i64 200000, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 200000, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !6, i64 48}
!9 = !{!"docctl", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 49, !10, i64 52, !10, i64 56, !10, i64 60, !6, i64 64}
!10 = !{!"int", !6, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!17, !10, i64 36}
!17 = !{!"page", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 200080, !6, i64 400080, !6, i64 600080}
!18 = distinct !{!18, !13}


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