; LLVM IR from simonaertssen/MIT-6.172-Performance-Engineering-of-Software-Systems :: Week 1 Introduction/matrix-multiply (matrix_multiply)

; 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.matrix = type { i32, i32, ptr }

@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [155 x i8], align 1
@__PRETTY_FUNCTION__.matrix_multiply_run = external hidden unnamed_addr constant [66 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 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 uwtable
define dso_local i32 @matrix_multiply_run(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  br label %11

11:                                               ; preds = %3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.matrix, ptr %12, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.matrix, ptr %15, i32 0, i32 0
  %17 = load i32, ptr %16, align 8, !tbaa !12
  %18 = icmp eq i32 %14, %17
  br i1 %18, label %30, label %19

19:                                               ; preds = %11
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 78, ptr noundef @__PRETTY_FUNCTION__.matrix_multiply_run) #4
  %22 = load ptr, ptr @stderr, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.matrix, ptr %23, i32 0, i32 1
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.matrix, ptr %26, i32 0, i32 0
  %28 = load i32, ptr %27, align 8, !tbaa !12
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef @.str.5, i32 noundef %25, i32 noundef %28) #4
  call void @abort() #5
  unreachable

30:                                               ; preds = %11
  br label %31

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.matrix, ptr %33, i32 0, i32 0
  %35 = load i32, ptr %34, align 8, !tbaa !12
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.matrix, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 8, !tbaa !12
  %39 = icmp eq i32 %35, %38
  br i1 %39, label %51, label %40

40:                                               ; preds = %32
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.6, ptr noundef @.str.4, i32 noundef 79, ptr noundef @__PRETTY_FUNCTION__.matrix_multiply_run) #4
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.matrix, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !12
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.matrix, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 8, !tbaa !12
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.7, i32 noundef %46, i32 noundef %49) #4
  call void @abort() #5
  unreachable

51:                                               ; preds = %32
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.matrix, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 4, !tbaa !9
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.matrix, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp eq i32 %56, %59
  br i1 %60, label %72, label %61

61:                                               ; preds = %53
  %62 = load ptr, ptr @stderr, align 8, !tbaa !5
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str.8, ptr noundef @.str.4, i32 noundef 80, ptr noundef @__PRETTY_FUNCTION__.matrix_multiply_run) #4
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.matrix, ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 4, !tbaa !9
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.matrix, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.9, i32 noundef %67, i32 noundef %70) #4
  call void @abort() #5
  unreachable

72:                                               ; preds = %53
  br label %73

73:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !13
  br label %74

74:                                               ; preds = %141, %73
  %75 = load i32, ptr %7, align 4, !tbaa !13
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.matrix, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !12
  %79 = icmp slt i32 %75, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %74
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %144

81:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !13
  br label %82

82:                                               ; preds = %137, %81
  %83 = load i32, ptr %9, align 4, !tbaa !13
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.matrix, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = icmp slt i32 %83, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %82
  store i32 11, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %140

89:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !13
  br label %90

90:                                               ; preds = %133, %89
  %91 = load i32, ptr %10, align 4, !tbaa !13
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.matrix, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 4, !tbaa !9
  %95 = icmp slt i32 %91, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %90
  store i32 14, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %136

97:                                               ; preds = %90
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.matrix, ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = load i32, ptr %7, align 4, !tbaa !13
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i32, ptr %104, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.matrix, ptr %109, i32 0, i32 2
  %111 = load ptr, ptr %110, align 8, !tbaa !14
  %112 = load i32, ptr %9, align 4, !tbaa !13
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds ptr, ptr %111, i64 %113
  %115 = load ptr, ptr %114, align 8, !tbaa !5
  %116 = load i32, ptr %10, align 4, !tbaa !13
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %115, i64 %117
  %119 = load i32, ptr %118, align 4, !tbaa !13
  %120 = mul nsw i32 %108, %119
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.matrix, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !14
  %124 = load i32, ptr %7, align 4, !tbaa !13
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds ptr, ptr %123, i64 %125
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = load i32, ptr %10, align 4, !tbaa !13
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds i32, ptr %127, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !13
  %132 = add nsw i32 %131, %120
  store i32 %132, ptr %130, align 4, !tbaa !13
  br label %133

133:                                              ; preds = %97
  %134 = load i32, ptr %10, align 4, !tbaa !13
  %135 = add nsw i32 %134, 1
  store i32 %135, ptr %10, align 4, !tbaa !13
  br label %90, !llvm.loop !15

136:                                              ; preds = %96
  br label %137

137:                                              ; preds = %136
  %138 = load i32, ptr %9, align 4, !tbaa !13
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %9, align 4, !tbaa !13
  br label %82, !llvm.loop !17

140:                                              ; preds = %88
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %7, align 4, !tbaa !13
  %143 = add nsw i32 %142, 1
  store i32 %143, ptr %7, align 4, !tbaa !13
  br label %74, !llvm.loop !18

144:                                              ; preds = %80
  ret i32 0
}

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: noreturn nounwind
declare void @abort() #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
attributes #5 = { noreturn 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 = !{!10, !11, i64 4}
!10 = !{!"", !11, i64 0, !11, i64 4, !6, i64 8}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [155 x i8], align 1
@__PRETTY_FUNCTION__.matrix_multiply_run = external hidden unnamed_addr constant [66 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @matrix_multiply_run(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 4
  %5 = load i32, ptr %4, align 4, !tbaa !5
  %6 = load i32, ptr %1, align 8, !tbaa !11
  %7 = icmp eq i32 %5, %6
  br i1 %7, label %15, label %8

8:                                                ; preds = %3
  %9 = load ptr, ptr @stderr, align 8, !tbaa !12
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 78, ptr noundef nonnull @__PRETTY_FUNCTION__.matrix_multiply_run) #3
  %11 = load ptr, ptr @stderr, align 8, !tbaa !12
  %12 = load i32, ptr %4, align 4, !tbaa !5
  %13 = load i32, ptr %1, align 8, !tbaa !11
  %14 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str.5, i32 noundef %12, i32 noundef %13) #3
  tail call void @abort() #4
  unreachable

15:                                               ; preds = %3
  %16 = load i32, ptr %0, align 8, !tbaa !11
  %17 = load i32, ptr %2, align 8, !tbaa !11
  %18 = icmp eq i32 %16, %17
  br i1 %18, label %26, label %19

19:                                               ; preds = %15
  %20 = load ptr, ptr @stderr, align 8, !tbaa !12
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.4, i32 noundef 79, ptr noundef nonnull @__PRETTY_FUNCTION__.matrix_multiply_run) #3
  %22 = load ptr, ptr @stderr, align 8, !tbaa !12
  %23 = load i32, ptr %0, align 8, !tbaa !11
  %24 = load i32, ptr %2, align 8, !tbaa !11
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str.7, i32 noundef %23, i32 noundef %24) #3
  tail call void @abort() #4
  unreachable

26:                                               ; preds = %15
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %2, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp eq i32 %28, %30
  br i1 %31, label %.preheader32, label %37

.preheader32:                                     ; preds = %26
  %32 = icmp sgt i32 %16, 0
  br i1 %32, label %.preheader31.lr.ph, label %._crit_edge37

.preheader31.lr.ph:                               ; preds = %.preheader32
  %33 = getelementptr inbounds i8, ptr %0, i64 8
  %34 = getelementptr inbounds i8, ptr %1, i64 8
  %35 = getelementptr inbounds i8, ptr %2, i64 8
  %36 = icmp sgt i32 %5, 0
  br i1 %36, label %.preheader31, label %._crit_edge37

37:                                               ; preds = %26
  %38 = load ptr, ptr @stderr, align 8, !tbaa !12
  %39 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.4, i32 noundef 80, ptr noundef nonnull @__PRETTY_FUNCTION__.matrix_multiply_run) #3
  %40 = load ptr, ptr @stderr, align 8, !tbaa !12
  %41 = load i32, ptr %27, align 4, !tbaa !5
  %42 = load i32, ptr %29, align 4, !tbaa !5
  %43 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.9, i32 noundef %41, i32 noundef %42) #3
  tail call void @abort() #4
  unreachable

.preheader31:                                     ; preds = %.preheader31.lr.ph, %._crit_edge35
  %44 = phi i32 [ %64, %._crit_edge35 ], [ %16, %.preheader31.lr.ph ]
  %45 = phi i32 [ %65, %._crit_edge35 ], [ %5, %.preheader31.lr.ph ]
  %46 = phi i32 [ %66, %._crit_edge35 ], [ %28, %.preheader31.lr.ph ]
  %47 = phi i32 [ %67, %._crit_edge35 ], [ %28, %.preheader31.lr.ph ]
  %48 = phi i32 [ %68, %._crit_edge35 ], [ %5, %.preheader31.lr.ph ]
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %._crit_edge35 ], [ 0, %.preheader31.lr.ph ]
  %49 = icmp sgt i32 %48, 0
  %50 = icmp sgt i32 %47, 0
  %or.cond = select i1 %49, i1 %50, i1 false
  br i1 %or.cond, label %.preheader, label %._crit_edge35

._crit_edge37:                                    ; preds = %._crit_edge35, %.preheader31.lr.ph, %.preheader32
  ret i32 0

.preheader:                                       ; preds = %.preheader31, %._crit_edge
  %51 = phi i32 [ %71, %._crit_edge ], [ %45, %.preheader31 ]
  %52 = phi i32 [ %72, %._crit_edge ], [ %46, %.preheader31 ]
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %._crit_edge ], [ 0, %.preheader31 ]
  %53 = icmp sgt i32 %52, 0
  br i1 %53, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %54 = load ptr, ptr %33, align 8, !tbaa !13
  %55 = getelementptr inbounds ptr, ptr %54, i64 %indvars.iv44
  %56 = load ptr, ptr %55, align 8, !tbaa !12
  %57 = getelementptr inbounds i32, ptr %56, i64 %indvars.iv41
  %58 = load ptr, ptr %34, align 8, !tbaa !13
  %59 = getelementptr inbounds ptr, ptr %58, i64 %indvars.iv41
  %60 = load ptr, ptr %59, align 8, !tbaa !12
  %61 = load ptr, ptr %35, align 8, !tbaa !13
  %62 = getelementptr inbounds ptr, ptr %61, i64 %indvars.iv44
  %63 = load ptr, ptr %62, align 8, !tbaa !12
  br label %75

._crit_edge35.loopexit:                           ; preds = %._crit_edge
  %.pre47 = load i32, ptr %0, align 8, !tbaa !11
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge35.loopexit, %.preheader31
  %64 = phi i32 [ %.pre47, %._crit_edge35.loopexit ], [ %44, %.preheader31 ]
  %65 = phi i32 [ %71, %._crit_edge35.loopexit ], [ %45, %.preheader31 ]
  %66 = phi i32 [ %72, %._crit_edge35.loopexit ], [ %46, %.preheader31 ]
  %67 = phi i32 [ %72, %._crit_edge35.loopexit ], [ %47, %.preheader31 ]
  %68 = phi i32 [ %71, %._crit_edge35.loopexit ], [ %48, %.preheader31 ]
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %69 = sext i32 %64 to i64
  %70 = icmp slt i64 %indvars.iv.next45, %69
  br i1 %70, label %.preheader31, label %._crit_edge37, !llvm.loop !14

._crit_edge.loopexit:                             ; preds = %75
  %.pre = load i32, ptr %4, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %71 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %51, %.preheader ]
  %72 = phi i32 [ %83, %._crit_edge.loopexit ], [ %52, %.preheader ]
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %73 = sext i32 %71 to i64
  %74 = icmp slt i64 %indvars.iv.next42, %73
  br i1 %74, label %.preheader, label %._crit_edge35.loopexit, !llvm.loop !17

75:                                               ; preds = %.lr.ph, %75
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %75 ]
  %76 = load i32, ptr %57, align 4, !tbaa !18
  %77 = getelementptr inbounds i32, ptr %60, i64 %indvars.iv
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = mul nsw i32 %78, %76
  %80 = getelementptr inbounds i32, ptr %63, i64 %indvars.iv
  %81 = load i32, ptr %80, align 4, !tbaa !18
  %82 = add nsw i32 %81, %79
  store i32 %82, ptr %80, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %83 = load i32, ptr %27, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = icmp slt i64 %indvars.iv.next, %84
  br i1 %85, label %75, label %._crit_edge.loopexit, !llvm.loop !19
}

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

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #2

attributes #0 = { 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 #1 = { 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 #2 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { cold nounwind }
attributes #4 = { noreturn 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, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!10, !10, i64 0}
!13 = !{!6, !10, i64 8}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.unswitch.partial.disable"}
!17 = distinct !{!17, !15, !16}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !15}


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