; 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.13 = external hidden unnamed_addr constant [5 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
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = 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 @r8mat_transpose_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
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = 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
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %28 = load ptr, ptr @stdout, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str) #3
  %30 = load ptr, ptr @stdout, align 8, !tbaa !9
  %31 = load ptr, ptr %16, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef @.str.8, ptr noundef %31) #3
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = icmp sle i32 %33, 0
  br i1 %34, label %38, label %35

35:                                               ; preds = %8
  %36 = load i32, ptr %10, align 4, !tbaa !5
  %37 = icmp sle i32 %36, 0
  br i1 %37, label %38, label %43

38:                                               ; preds = %35, %8
  %39 = load ptr, ptr @stdout, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef @.str) #3
  %41 = load ptr, ptr @stdout, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.9) #3
  store i32 1, ptr %27, align 4
  br label %167

43:                                               ; preds = %35
  %44 = load i32, ptr %12, align 4, !tbaa !5
  %45 = icmp slt i32 %44, 1
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  store i32 1, ptr %22, align 4, !tbaa !5
  br label %49

47:                                               ; preds = %43
  %48 = load i32, ptr %12, align 4, !tbaa !5
  store i32 %48, ptr %22, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %47, %46
  %50 = load i32, ptr %14, align 4, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !5
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %54, ptr %21, align 4, !tbaa !5
  br label %57

55:                                               ; preds = %49
  %56 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %56, ptr %21, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %55, %53
  %58 = load i32, ptr %22, align 4, !tbaa !5
  store i32 %58, ptr %20, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %163, %57
  %60 = load i32, ptr %20, align 4, !tbaa !5
  %61 = load i32, ptr %21, align 4, !tbaa !5
  %62 = icmp sle i32 %60, %61
  br i1 %62, label %63, label %166

63:                                               ; preds = %59
  %64 = load i32, ptr %20, align 4, !tbaa !5
  %65 = add nsw i32 %64, 5
  %66 = sub nsw i32 %65, 1
  store i32 %66, ptr %19, align 4, !tbaa !5
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = load i32, ptr %19, align 4, !tbaa !5
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %72

70:                                               ; preds = %63
  %71 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %71, ptr %19, align 4, !tbaa !5
  br label %72

72:                                               ; preds = %70, %63
  %73 = load i32, ptr %14, align 4, !tbaa !5
  %74 = load i32, ptr %19, align 4, !tbaa !5
  %75 = icmp slt i32 %73, %74
  br i1 %75, label %76, label %78

76:                                               ; preds = %72
  %77 = load i32, ptr %14, align 4, !tbaa !5
  store i32 %77, ptr %19, align 4, !tbaa !5
  br label %78

78:                                               ; preds = %76, %72
  %79 = load i32, ptr %19, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  %81 = load i32, ptr %20, align 4, !tbaa !5
  %82 = sub nsw i32 %80, %81
  store i32 %82, ptr %23, align 4, !tbaa !5
  %83 = load ptr, ptr @stdout, align 8, !tbaa !9
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str) #3
  %85 = load ptr, ptr @stdout, align 8, !tbaa !9
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef @.str.120) #3
  %87 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %87, ptr %17, align 4, !tbaa !5
  br label %88

88:                                               ; preds = %97, %78
  %89 = load i32, ptr %17, align 4, !tbaa !5
  %90 = load i32, ptr %19, align 4, !tbaa !5
  %91 = icmp sle i32 %89, %90
  br i1 %91, label %92, label %100

92:                                               ; preds = %88
  %93 = load ptr, ptr @stdout, align 8, !tbaa !9
  %94 = load i32, ptr %17, align 4, !tbaa !5
  %95 = sub nsw i32 %94, 1
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.90, i32 noundef %95) #3
  br label %97

97:                                               ; preds = %92
  %98 = load i32, ptr %17, align 4, !tbaa !5
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %17, align 4, !tbaa !5
  br label %88, !llvm.loop !11

100:                                              ; preds = %88
  %101 = load ptr, ptr @stdout, align 8, !tbaa !9
  %102 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef @.str) #3
  %103 = load ptr, ptr @stdout, align 8, !tbaa !9
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str.121) #3
  %105 = load ptr, ptr @stdout, align 8, !tbaa !9
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %105, ptr noundef @.str) #3
  %107 = load i32, ptr %13, align 4, !tbaa !5
  %108 = icmp slt i32 %107, 1
  br i1 %108, label %109, label %110

109:                                              ; preds = %100
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %112

110:                                              ; preds = %100
  %111 = load i32, ptr %13, align 4, !tbaa !5
  store i32 %111, ptr %26, align 4, !tbaa !5
  br label %112

112:                                              ; preds = %110, %109
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = load i32, ptr %15, align 4, !tbaa !5
  %115 = icmp slt i32 %113, %114
  br i1 %115, label %116, label %118

116:                                              ; preds = %112
  %117 = load i32, ptr %10, align 4, !tbaa !5
  store i32 %117, ptr %25, align 4, !tbaa !5
  br label %120

118:                                              ; preds = %112
  %119 = load i32, ptr %15, align 4, !tbaa !5
  store i32 %119, ptr %25, align 4, !tbaa !5
  br label %120

120:                                              ; preds = %118, %116
  %121 = load i32, ptr %26, align 4, !tbaa !5
  store i32 %121, ptr %24, align 4, !tbaa !5
  br label %122

122:                                              ; preds = %159, %120
  %123 = load i32, ptr %24, align 4, !tbaa !5
  %124 = load i32, ptr %25, align 4, !tbaa !5
  %125 = icmp sle i32 %123, %124
  br i1 %125, label %126, label %162

126:                                              ; preds = %122
  %127 = load ptr, ptr @stdout, align 8, !tbaa !9
  %128 = load i32, ptr %24, align 4, !tbaa !5
  %129 = sub nsw i32 %128, 1
  %130 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str.13, i32 noundef %129) #3
  store i32 1, ptr %18, align 4, !tbaa !5
  br label %131

131:                                              ; preds = %153, %126
  %132 = load i32, ptr %18, align 4, !tbaa !5
  %133 = load i32, ptr %23, align 4, !tbaa !5
  %134 = icmp sle i32 %132, %133
  br i1 %134, label %135, label %156

135:                                              ; preds = %131
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = sub nsw i32 %136, 1
  %138 = load i32, ptr %18, align 4, !tbaa !5
  %139 = add nsw i32 %137, %138
  store i32 %139, ptr %17, align 4, !tbaa !5
  %140 = load ptr, ptr @stdout, align 8, !tbaa !9
  %141 = load ptr, ptr %11, align 8, !tbaa !9
  %142 = load i32, ptr %17, align 4, !tbaa !5
  %143 = sub nsw i32 %142, 1
  %144 = load i32, ptr %24, align 4, !tbaa !5
  %145 = sub nsw i32 %144, 1
  %146 = load i32, ptr %9, align 4, !tbaa !5
  %147 = mul nsw i32 %145, %146
  %148 = add nsw i32 %143, %147
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds double, ptr %141, i64 %149
  %151 = load double, ptr %150, align 8, !tbaa !13
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef @.str.91, double noundef %151) #3
  br label %153

153:                                              ; preds = %135
  %154 = load i32, ptr %18, align 4, !tbaa !5
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %18, align 4, !tbaa !5
  br label %131, !llvm.loop !15

156:                                              ; preds = %131
  %157 = load ptr, ptr @stdout, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str) #3
  br label %159

159:                                              ; preds = %156
  %160 = load i32, ptr %24, align 4, !tbaa !5
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %24, align 4, !tbaa !5
  br label %122, !llvm.loop !16

162:                                              ; preds = %122
  br label %163

163:                                              ; preds = %162
  %164 = load i32, ptr %20, align 4, !tbaa !5
  %165 = add nsw i32 %164, 5
  store i32 %165, ptr %20, align 4, !tbaa !5
  br label %59, !llvm.loop !17

166:                                              ; preds = %59
  store i32 1, ptr %27, align 4
  br label %167

167:                                              ; preds = %166, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  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.13 = external hidden unnamed_addr constant [5 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
@.str.120 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.121 = 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 @r8mat_transpose_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 %15, label %20

15:                                               ; preds = %8
  %16 = load ptr, ptr @stdout, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str) #3
  %18 = load ptr, ptr @stdout, align 8, !tbaa !5
  %19 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.9) #3
  br label %.loopexit67

20:                                               ; preds = %8
  %. = tail call i32 @llvm.smax.i32(i32 %3, i32 1)
  %.051 = tail call i32 @llvm.smax.i32(i32 %5, i32 %0)
  %.not79 = icmp ugt i32 %., %.051
  br i1 %.not79, label %.loopexit67, label %.lr.ph82

.lr.ph82:                                         ; preds = %20
  %.66 = tail call i32 @llvm.smax.i32(i32 %4, i32 1)
  %.047 = tail call i32 @llvm.smin.i32(i32 %1, i32 %6)
  %.not6475 = icmp sgt i32 %.66, %.047
  br i1 %.not6475, label %.lr.ph82.split.us, label %.lr.ph82.split

.lr.ph82.split.us:                                ; preds = %.lr.ph82, %.loopexit.us
  %.05280.us = phi i32 [ %21, %.loopexit.us ], [ %., %.lr.ph82 ]
  %21 = add nuw nsw i32 %.05280.us, 5
  %22 = add nuw nsw i32 %.05280.us, 4
  %spec.select.us = tail call i32 @llvm.smin.i32(i32 %22, i32 %0)
  %.1.us = tail call i32 @llvm.smin.i32(i32 %spec.select.us, i32 %5)
  %23 = load ptr, ptr @stdout, align 8, !tbaa !5
  %24 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str) #3
  %25 = load ptr, ptr @stdout, align 8, !tbaa !5
  %26 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.120) #3
  %.not6368.us = icmp sgt i32 %.05280.us, %.1.us
  br i1 %.not6368.us, label %.loopexit.us, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph82.split.us, %.lr.ph.us
  %.04969.us = phi i32 [ %30, %.lr.ph.us ], [ %.05280.us, %.lr.ph82.split.us ]
  %27 = load ptr, ptr @stdout, align 8, !tbaa !5
  %28 = add nsw i32 %.04969.us, -1
  %29 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.90, i32 noundef %28) #3
  %30 = add nuw nsw i32 %.04969.us, 1
  %.not63.us.not = icmp slt i32 %.04969.us, %.1.us
  br i1 %.not63.us.not, label %.lr.ph.us, label %.loopexit.us, !llvm.loop !9

.loopexit.us:                                     ; preds = %.lr.ph.us, %.lr.ph82.split.us
  %31 = load ptr, ptr @stdout, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str) #3
  %33 = load ptr, ptr @stdout, align 8, !tbaa !5
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.121) #3
  %35 = load ptr, ptr @stdout, align 8, !tbaa !5
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str) #3
  %.not.us = icmp sgt i32 %21, %.051
  br i1 %.not.us, label %.loopexit67, label %.lr.ph82.split.us, !llvm.loop !11

..loopexit_crit_edge:                             ; preds = %._crit_edge74, %.lr.ph78.split.us
  %.not = icmp sgt i32 %37, %.051
  br i1 %.not, label %.loopexit67, label %.lr.ph82.split, !llvm.loop !11

.lr.ph82.split:                                   ; preds = %.lr.ph82, %..loopexit_crit_edge
  %.05280 = phi i32 [ %37, %..loopexit_crit_edge ], [ %., %.lr.ph82 ]
  %37 = add nuw nsw i32 %.05280, 5
  %38 = add nuw nsw i32 %.05280, 4
  %spec.select = tail call i32 @llvm.smin.i32(i32 %38, i32 %0)
  %.1 = tail call i32 @llvm.smin.i32(i32 %spec.select, i32 %5)
  %reass.sub = sub i32 %.1, %.05280
  %reass.sub.fr = freeze i32 %reass.sub
  %39 = load ptr, ptr @stdout, align 8, !tbaa !5
  %40 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str) #3
  %41 = load ptr, ptr @stdout, align 8, !tbaa !5
  %42 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str.120) #3
  %.not6368 = icmp sgt i32 %.05280, %.1
  br i1 %.not6368, label %.lr.ph78, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph82.split, %.lr.ph
  %.04969 = phi i32 [ %46, %.lr.ph ], [ %.05280, %.lr.ph82.split ]
  %43 = load ptr, ptr @stdout, align 8, !tbaa !5
  %44 = add nsw i32 %.04969, -1
  %45 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str.90, i32 noundef %44) #3
  %46 = add nuw nsw i32 %.04969, 1
  %.not63.not = icmp slt i32 %.04969, %.1
  br i1 %.not63.not, label %.lr.ph, label %.lr.ph78, !llvm.loop !9

.lr.ph78:                                         ; preds = %.lr.ph, %.lr.ph82.split
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str) #3
  %49 = load ptr, ptr @stdout, align 8, !tbaa !5
  %50 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef nonnull @.str.121) #3
  %51 = load ptr, ptr @stdout, align 8, !tbaa !5
  %52 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str) #3
  %.not6570 = icmp ugt i32 %reass.sub.fr, 2147483646
  %53 = add nsw i32 %.05280, -2
  br i1 %.not6570, label %.lr.ph78.split.us, label %.lr.ph73.preheader

.lr.ph73.preheader:                               ; preds = %.lr.ph78
  %54 = add nuw i32 %reass.sub.fr, 2
  %wide.trip.count = zext i32 %54 to i64
  br label %.lr.ph73

.lr.ph78.split.us:                                ; preds = %.lr.ph78, %.lr.ph78.split.us
  %.04876.us = phi i32 [ %60, %.lr.ph78.split.us ], [ %.66, %.lr.ph78 ]
  %55 = load ptr, ptr @stdout, align 8, !tbaa !5
  %56 = add nsw i32 %.04876.us, -1
  %57 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str.13, i32 noundef %56) #3
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str) #3
  %60 = add nuw i32 %.04876.us, 1
  %exitcond87.not = icmp eq i32 %.04876.us, %.047
  br i1 %exitcond87.not, label %..loopexit_crit_edge, label %.lr.ph78.split.us, !llvm.loop !12

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %._crit_edge74
  %.04876 = phi i32 [ %76, %._crit_edge74 ], [ %.66, %.lr.ph73.preheader ]
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = add nsw i32 %.04876, -1
  %63 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str.13, i32 noundef %62) #3
  %64 = mul nsw i32 %62, %0
  %65 = add i32 %53, %64
  br label %66

66:                                               ; preds = %.lr.ph73, %66
  %indvars.iv = phi i64 [ 1, %.lr.ph73 ], [ %indvars.iv.next, %66 ]
  %67 = load ptr, ptr @stdout, align 8, !tbaa !5
  %68 = trunc nuw nsw i64 %indvars.iv to i32
  %69 = add i32 %65, %68
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds double, ptr %2, i64 %70
  %72 = load double, ptr %71, align 8, !tbaa !13
  %73 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef nonnull @.str.91, double noundef %72) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge74, label %66, !llvm.loop !15

._crit_edge74:                                    ; preds = %66
  %74 = load ptr, ptr @stdout, align 8, !tbaa !5
  %75 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef nonnull @.str) #3
  %76 = add nuw i32 %.04876, 1
  %exitcond86.not = icmp eq i32 %.04876, %.047
  br i1 %exitcond86.not, label %..loopexit_crit_edge, label %.lr.ph73, !llvm.loop !12

.loopexit67:                                      ; preds = %..loopexit_crit_edge, %.loopexit.us, %20, %15
  ret void
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.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,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass