; 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.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [7 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 @r8cmat_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, 5
  %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.89) #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.90, 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 %20, align 4, !tbaa !5
  %118 = sub nsw i32 %117, 1
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds ptr, ptr %116, i64 %119
  %121 = load ptr, ptr %120, align 8, !tbaa !9
  %122 = load i32, ptr %17, align 4, !tbaa !5
  %123 = sub nsw i32 %122, 1
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds double, ptr %121, i64 %124
  %126 = load double, ptr %125, align 8, !tbaa !13
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %115, ptr noundef @.str.91, double 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 !15

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 !16

137:                                              ; preds = %100
  br label %138

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

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 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !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.12 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.89 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.90 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [7 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 @r8cmat_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 %34, label %.preheader

.preheader:                                       ; preds = %8
  %.not64 = icmp sgt i32 %4, %6
  br i1 %.not64, label %.loopexit52, label %.lr.ph66

.lr.ph66:                                         ; preds = %.preheader
  %. = tail call i32 @llvm.smax.i32(i32 %3, i32 1)
  %.041 = tail call i32 @llvm.smin.i32(i32 %0, i32 %5)
  %.not5060 = icmp sgt i32 %., %.041
  %invariant.gep = getelementptr i8, ptr %2, i64 -8
  br i1 %.not5060, label %.lr.ph66.split.us, label %.lr.ph66.split.preheader

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

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

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

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

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

..loopexit_crit_edge:                             ; preds = %._crit_edge59, %.lr.ph63.split.us
  %.not = icmp sgt i32 %indvars, %6
  br i1 %.not, label %.loopexit52, label %.lr.ph66.split, !llvm.loop !11

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

.lr.ph:                                           ; preds = %.lr.ph66.split, %.lr.ph
  %.03854 = phi i32 [ %47, %.lr.ph ], [ %indvars76, %.lr.ph66.split ]
  %44 = load ptr, ptr @stdout, align 8, !tbaa !5
  %45 = add nsw i32 %.03854, -1
  %46 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str.90, i32 noundef %45) #3
  %47 = add nsw i32 %.03854, 1
  %.not49.not = icmp slt i32 %.03854, %.1
  br i1 %.not49.not, label %.lr.ph, label %.lr.ph63, !llvm.loop !9

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

.lr.ph58.preheader:                               ; preds = %.lr.ph63
  %54 = sext i32 %.1 to i64
  br label %.lr.ph58

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

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

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

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %._crit_edge59
  %indvars.iv72 = phi i64 [ %16, %.lr.ph58.preheader ], [ %indvars.iv.next73, %._crit_edge59 ]
  %67 = load ptr, ptr @stdout, align 8, !tbaa !5
  %68 = add nsw i64 %indvars.iv72, -1
  %69 = trunc nuw nsw i64 %68 to i32
  %70 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.13, i32 noundef %69) #3
  br label %71

71:                                               ; preds = %.lr.ph58, %71
  %indvars.iv69 = phi i64 [ %indvars.iv, %.lr.ph58 ], [ %indvars.iv.next70, %71 ]
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %gep = getelementptr ptr, ptr %invariant.gep, i64 %indvars.iv69
  %73 = load ptr, ptr %gep, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 %68
  %75 = load double, ptr %74, align 8, !tbaa !13
  %76 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str.91, double noundef %75) #3
  %indvars.iv.next70 = add nsw i64 %indvars.iv69, 1
  %.not51.not = icmp slt i64 %indvars.iv69, %54
  br i1 %.not51.not, label %71, label %._crit_edge59, !llvm.loop !15

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

.loopexit52:                                      ; preds = %..loopexit_crit_edge, %.loopexit.us, %.preheader, %34
  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 = !{!"double", !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,SROAPass,SimplifyCFGPass,TailCallElimPass