; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (r8lib)

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @i4mat_print_some(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !5
  store i32 %4, ptr %13, align 4, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !5
  store i32 %6, ptr %15, align 4, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %24 = load ptr, ptr @stdout, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef @.str) #3
  %26 = load ptr, ptr @stdout, align 8, !tbaa !9
  %27 = load ptr, ptr %16, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.8, ptr noundef %27) #3
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = icmp sle i32 %29, 0
  br i1 %30, label %34, label %31

31:                                               ; preds = %8
  %32 = load i32, ptr %10, align 4, !tbaa !5
  %33 = icmp sle i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %31, %8
  %35 = load ptr, ptr @stdout, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str) #3
  %37 = load ptr, ptr @stdout, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str.9) #3
  store i32 1, ptr %23, align 4
  br label %142

39:                                               ; preds = %31
  %40 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %40, ptr %22, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %138, %39
  %42 = load i32, ptr %22, align 4, !tbaa !5
  %43 = load i32, ptr %15, align 4, !tbaa !5
  %44 = icmp sle i32 %42, %43
  br i1 %44, label %45, label %141

45:                                               ; preds = %41
  %46 = load i32, ptr %22, align 4, !tbaa !5
  %47 = add nsw i32 %46, 10
  %48 = sub nsw i32 %47, 1
  store i32 %48, ptr %21, align 4, !tbaa !5
  %49 = load i32, ptr %10, align 4, !tbaa !5
  %50 = load i32, ptr %21, align 4, !tbaa !5
  %51 = icmp slt i32 %49, %50
  br i1 %51, label %52, label %54

52:                                               ; preds = %45
  %53 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %53, ptr %21, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %52, %45
  %55 = load i32, ptr %15, align 4, !tbaa !5
  %56 = load i32, ptr %21, align 4, !tbaa !5
  %57 = icmp slt i32 %55, %56
  br i1 %57, label %58, label %60

58:                                               ; preds = %54
  %59 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %59, ptr %21, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %58, %54
  %61 = load ptr, ptr @stdout, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str) #3
  %63 = load ptr, ptr @stdout, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.10) #3
  %65 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %65, ptr %20, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %75, %60
  %67 = load i32, ptr %20, align 4, !tbaa !5
  %68 = load i32, ptr %21, align 4, !tbaa !5
  %69 = icmp sle i32 %67, %68
  br i1 %69, label %70, label %78

70:                                               ; preds = %66
  %71 = load ptr, ptr @stdout, align 8, !tbaa !9
  %72 = load i32, ptr %20, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 1
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.11, i32 noundef %73) #3
  br label %75

75:                                               ; preds = %70
  %76 = load i32, ptr %20, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %20, align 4, !tbaa !5
  br label %66, !llvm.loop !11

78:                                               ; preds = %66
  %79 = load ptr, ptr @stdout, align 8, !tbaa !9
  %80 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %79, ptr noundef @.str) #3
  %81 = load ptr, ptr @stdout, align 8, !tbaa !9
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef @.str.12) #3
  %83 = load ptr, ptr @stdout, align 8, !tbaa !9
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str) #3
  %85 = load i32, ptr %12, align 4, !tbaa !5
  %86 = icmp slt i32 1, %85
  br i1 %86, label %87, label %89

87:                                               ; preds = %78
  %88 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %88, ptr %19, align 4, !tbaa !5
  br label %90

89:                                               ; preds = %78
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %90

90:                                               ; preds = %89, %87
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = load i32, ptr %14, align 4, !tbaa !5
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %96

94:                                               ; preds = %90
  %95 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %95, ptr %18, align 4, !tbaa !5
  br label %98

96:                                               ; preds = %90
  %97 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %97, ptr %18, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %96, %94
  %99 = load i32, ptr %19, align 4, !tbaa !5
  store i32 %99, ptr %17, align 4, !tbaa !5
  br label %100

100:                                              ; preds = %134, %98
  %101 = load i32, ptr %17, align 4, !tbaa !5
  %102 = load i32, ptr %18, align 4, !tbaa !5
  %103 = icmp sle i32 %101, %102
  br i1 %103, label %104, label %137

104:                                              ; preds = %100
  %105 = load ptr, ptr @stdout, align 8, !tbaa !9
  %106 = load i32, ptr %17, align 4, !tbaa !5
  %107 = sub nsw i32 %106, 1
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str.13, i32 noundef %107) #3
  %109 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %109, ptr %20, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %128, %104
  %111 = load i32, ptr %20, align 4, !tbaa !5
  %112 = load i32, ptr %21, align 4, !tbaa !5
  %113 = icmp sle i32 %111, %112
  br i1 %113, label %114, label %131

114:                                              ; preds = %110
  %115 = load ptr, ptr @stdout, align 8, !tbaa !9
  %116 = load ptr, ptr %11, align 8, !tbaa !9
  %117 = load i32, ptr %17, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = load i32, ptr %20, align 4, !tbaa !5
  %120 = sub nsw i32 %119, 1
  %121 = load i32, ptr %9, align 4, !tbaa !5
  %122 = mul nsw i32 %120, %121
  %123 = add nsw i32 %118, %122
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %116, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.11, i32 noundef %126) #3
  br label %128

128:                                              ; preds = %114
  %129 = load i32, ptr %20, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %20, align 4, !tbaa !5
  br label %110, !llvm.loop !13

131:                                              ; preds = %110
  %132 = load ptr, ptr @stdout, align 8, !tbaa !9
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str) #3
  br label %134

134:                                              ; preds = %131
  %135 = load i32, ptr %17, align 4, !tbaa !5
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %17, align 4, !tbaa !5
  br label %100, !llvm.loop !14

137:                                              ; preds = %100
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %22, align 4, !tbaa !5
  %140 = add nsw i32 %139, 10
  store i32 %140, ptr %22, align 4, !tbaa !5
  br label %41, !llvm.loop !15

141:                                              ; preds = %41
  store i32 1, ptr %23, align 4
  br label %142

142:                                              ; preds = %141, %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  ret void
}

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !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"

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1

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

; Function Attrs: nofree nounwind uwtable
define dso_local void @i4mat_print_some(i32 noundef %0, i32 noundef %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7) local_unnamed_addr #1 {
  %9 = load ptr, ptr @stdout, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str) #3
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.8, ptr noundef %7) #3
  %13 = icmp slt i32 %0, 1
  %14 = icmp slt i32 %1, 1
  %or.cond = or i1 %13, %14
  br i1 %or.cond, label %35, label %.preheader

.preheader:                                       ; preds = %8
  %.not65 = icmp sgt i32 %4, %6
  br i1 %.not65, label %.loopexit53, label %.lr.ph67

.lr.ph67:                                         ; preds = %.preheader
  %. = tail call i32 @llvm.smax.i32(i32 %3, i32 1)
  %.042 = tail call i32 @llvm.smin.i32(i32 %0, i32 %5)
  %.not5161 = icmp sgt i32 %., %.042
  br i1 %.not5161, label %.lr.ph67.split.us, label %.lr.ph67.split.preheader

.lr.ph67.split.preheader:                         ; preds = %.lr.ph67
  %15 = sext i32 %4 to i64
  %16 = zext nneg i32 %0 to i64
  %17 = zext nneg i32 %. to i64
  %18 = add nuw i32 %.042, 1
  %wide.trip.count = zext i32 %18 to i64
  br label %.lr.ph67.split

.lr.ph67.split.us:                                ; preds = %.lr.ph67, %.loopexit.us
  %.066.us = phi i32 [ %19, %.loopexit.us ], [ %4, %.lr.ph67 ]
  %19 = add nsw i32 %.066.us, 10
  %20 = add nsw i32 %.066.us, 9
  %spec.select.us = tail call i32 @llvm.smin.i32(i32 %20, i32 %1)
  %.1.us = tail call i32 @llvm.smin.i32(i32 %spec.select.us, i32 %6)
  %21 = load ptr, ptr @stdout, align 8, !tbaa !5
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str) #3
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str.10) #3
  %.not5054.us = icmp sgt i32 %.066.us, %.1.us
  br i1 %.not5054.us, label %.loopexit.us, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph67.split.us, %.lr.ph.us
  %.03955.us = phi i32 [ %28, %.lr.ph.us ], [ %.066.us, %.lr.ph67.split.us ]
  %25 = load ptr, ptr @stdout, align 8, !tbaa !5
  %26 = add nsw i32 %.03955.us, -1
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.11, i32 noundef %26) #3
  %28 = add nsw i32 %.03955.us, 1
  %.not50.us.not = icmp slt i32 %.03955.us, %.1.us
  br i1 %.not50.us.not, label %.lr.ph.us, label %.loopexit.us, !llvm.loop !9

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph67.split.us
  %29 = load ptr, ptr @stdout, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str) #3
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.12) #3
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str) #3
  %.not.us = icmp sgt i32 %19, %6
  br i1 %.not.us, label %.loopexit53, label %.lr.ph67.split.us, !llvm.loop !11

35:                                               ; preds = %8
  %36 = load ptr, ptr @stdout, align 8, !tbaa !5
  %37 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str) #3
  %38 = load ptr, ptr @stdout, align 8, !tbaa !5
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.9) #3
  br label %.loopexit53

..loopexit_crit_edge:                             ; preds = %._crit_edge60, %.lr.ph64.split.us
  %.not = icmp sgt i32 %indvars, %6
  br i1 %.not, label %.loopexit53, label %.lr.ph67.split, !llvm.loop !11

.lr.ph67.split:                                   ; preds = %.lr.ph67.split.preheader, %..loopexit_crit_edge
  %indvars.iv = phi i64 [ %15, %.lr.ph67.split.preheader ], [ %indvars.iv.next, %..loopexit_crit_edge ]
  %indvars77 = trunc i64 %indvars.iv to i32
  %indvars.iv.next = add i64 %indvars.iv, 10
  %indvars = trunc i64 %indvars.iv.next to i32
  %40 = add nsw i32 %indvars77, 9
  %spec.select = tail call i32 @llvm.smin.i32(i32 %40, i32 %1)
  %.1 = tail call i32 @llvm.smin.i32(i32 %spec.select, i32 %6)
  %41 = load ptr, ptr @stdout, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str) #3
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.10) #3
  %.not5054 = icmp slt i32 %.1, %indvars77
  br i1 %.not5054, label %.lr.ph64.split.us.preheader.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph67.split, %.lr.ph
  %.03955 = phi i32 [ %48, %.lr.ph ], [ %indvars77, %.lr.ph67.split ]
  %45 = load ptr, ptr @stdout, align 8, !tbaa !5
  %46 = add nsw i32 %.03955, -1
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.11, i32 noundef %46) #3
  %48 = add nsw i32 %.03955, 1
  %.not50.not = icmp slt i32 %.03955, %.1
  br i1 %.not50.not, label %.lr.ph, label %.lr.ph64, !llvm.loop !9

.lr.ph64:                                         ; preds = %.lr.ph
  %49 = load ptr, ptr @stdout, align 8, !tbaa !5
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str) #3
  %51 = load ptr, ptr @stdout, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.12) #3
  %53 = load ptr, ptr @stdout, align 8, !tbaa !5
  %54 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef nonnull @.str) #3
  br i1 %.not5054, label %.lr.ph64.split.us.preheader, label %.lr.ph59.preheader

.lr.ph59.preheader:                               ; preds = %.lr.ph64
  %55 = sext i32 %.1 to i64
  br label %.lr.ph59

.lr.ph64.split.us.preheader.critedge:             ; preds = %.lr.ph67.split
  %56 = load ptr, ptr @stdout, align 8, !tbaa !5
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str) #3
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.12) #3
  %60 = load ptr, ptr @stdout, align 8, !tbaa !5
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str) #3
  br label %.lr.ph64.split.us.preheader

.lr.ph64.split.us.preheader:                      ; preds = %.lr.ph64.split.us.preheader.critedge, %.lr.ph64
  br label %.lr.ph64.split.us

.lr.ph64.split.us:                                ; preds = %.lr.ph64.split.us.preheader, %.lr.ph64.split.us
  %.04362.us = phi i32 [ %67, %.lr.ph64.split.us ], [ %., %.lr.ph64.split.us.preheader ]
  %62 = load ptr, ptr @stdout, align 8, !tbaa !5
  %63 = add nsw i32 %.04362.us, -1
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef nonnull @.str.13, i32 noundef %63) #3
  %65 = load ptr, ptr @stdout, align 8, !tbaa !5
  %66 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str) #3
  %67 = add nuw i32 %.04362.us, 1
  %exitcond76.not = icmp eq i32 %.04362.us, %.042
  br i1 %exitcond76.not, label %..loopexit_crit_edge, label %.lr.ph64.split.us, !llvm.loop !12

.lr.ph59:                                         ; preds = %.lr.ph59.preheader, %._crit_edge60
  %indvars.iv73 = phi i64 [ %17, %.lr.ph59.preheader ], [ %indvars.iv.next74, %._crit_edge60 ]
  %68 = load ptr, ptr @stdout, align 8, !tbaa !5
  %69 = add nsw i64 %indvars.iv73, -1
  %70 = trunc nuw nsw i64 %69 to i32
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str.13, i32 noundef %70) #3
  %invariant.gep = getelementptr i32, ptr %2, i64 %69
  br label %72

72:                                               ; preds = %.lr.ph59, %72
  %indvars.iv70 = phi i64 [ %indvars.iv, %.lr.ph59 ], [ %indvars.iv.next71, %72 ]
  %73 = load ptr, ptr @stdout, align 8, !tbaa !5
  %74 = add nsw i64 %indvars.iv70, -1
  %75 = mul nsw i64 %74, %16
  %gep = getelementptr i32, ptr %invariant.gep, i64 %75
  %76 = load i32, ptr %gep, align 4, !tbaa !13
  %77 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef nonnull @.str.11, i32 noundef %76) #3
  %indvars.iv.next71 = add nsw i64 %indvars.iv70, 1
  %.not52.not = icmp slt i64 %indvars.iv70, %55
  br i1 %.not52.not, label %72, label %._crit_edge60, !llvm.loop !15

._crit_edge60:                                    ; preds = %72
  %78 = load ptr, ptr @stdout, align 8, !tbaa !5
  %79 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %78, ptr noundef nonnull @.str) #3
  %indvars.iv.next74 = add nuw nsw i64 %indvars.iv73, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next74, %wide.trip.count
  br i1 %exitcond.not, label %..loopexit_crit_edge, label %.lr.ph59, !llvm.loop !12

.loopexit53:                                      ; preds = %..loopexit_crit_edge, %.loopexit.us, %.preheader, %35
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #2

attributes #0 = { 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 #1 = { nofree 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass