; LLVM IR from YanzhenHuang/c-nn :: linalg (mat_multmat)

; 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 { i64, i64, ptr }

@stderr = external global ptr, align 8
@.str.15 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mat_create(i64 noundef, i64 noundef, ptr noundef) #0

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #2

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

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

; Function Attrs: nounwind uwtable
declare dso_local double @mat_read(ptr noundef, i64 noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mat_write(ptr noundef, i64 noundef, i64 noundef, double noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @mat_print(ptr noundef) #0

declare i32 @printf(ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
define dso_local ptr @mat_multmat(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca double, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.Matrix, ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = icmp sle i64 %14, 0
  br i1 %15, label %31, label %16

16:                                               ; preds = %2
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.Matrix, ptr %17, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !12
  %20 = icmp sle i64 %19, 0
  br i1 %20, label %31, label %21

21:                                               ; preds = %16
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.Matrix, ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !9
  %25 = icmp sle i64 %24, 0
  br i1 %25, label %31, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Matrix, ptr %27, i32 0, i32 1
  %29 = load i64, ptr %28, align 8, !tbaa !12
  %30 = icmp sle i64 %29, 0
  br i1 %30, label %31, label %34

31:                                               ; preds = %26, %21, %16, %2
  %32 = load ptr, ptr @stderr, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str.15) #7
  call void @exit(i32 noundef 1) #8
  unreachable

34:                                               ; preds = %26
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.Matrix, ptr %35, i32 0, i32 1
  %37 = load i64, ptr %36, align 8, !tbaa !12
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.Matrix, ptr %38, i32 0, i32 0
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = icmp ne i64 %37, %40
  br i1 %41, label %42, label %60

42:                                               ; preds = %34
  %43 = load ptr, ptr @stderr, align 8, !tbaa !5
  %44 = load ptr, ptr %3, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.Matrix, ptr %44, i32 0, i32 0
  %46 = load i64, ptr %45, align 8, !tbaa !9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.Matrix, ptr %47, i32 0, i32 1
  %49 = load i64, ptr %48, align 8, !tbaa !12
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.Matrix, ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !9
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.Matrix, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !12
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef @.str.16, i64 noundef %46, i64 noundef %49, i64 noundef %52, i64 noundef %55) #7
  %57 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  call void @mat_print(ptr noundef %58)
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  call void @mat_print(ptr noundef %59)
  call void @exit(i32 noundef 1) #8
  unreachable

60:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.Matrix, ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.Matrix, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !12
  %67 = mul nsw i64 %63, %66
  %68 = mul i64 %67, 8
  %69 = call noalias ptr @malloc(i64 noundef %68) #9
  store ptr %69, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %70 = load ptr, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.Matrix, ptr %70, i32 0, i32 0
  %72 = load i64, ptr %71, align 8, !tbaa !9
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Matrix, ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !12
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call ptr @mat_create(i64 noundef %72, i64 noundef %75, ptr noundef %76)
  store ptr %77, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !13
  br label %78

78:                                               ; preds = %124, %60
  %79 = load i64, ptr %7, align 8, !tbaa !13
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.Matrix, ptr %80, i32 0, i32 0
  %82 = load i64, ptr %81, align 8, !tbaa !9
  %83 = icmp slt i64 %79, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %78
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %127

85:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  store i64 0, ptr %9, align 8, !tbaa !13
  br label %86

86:                                               ; preds = %120, %85
  %87 = load i64, ptr %9, align 8, !tbaa !13
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.Matrix, ptr %88, i32 0, i32 1
  %90 = load i64, ptr %89, align 8, !tbaa !12
  %91 = icmp slt i64 %87, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %86
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %123

93:                                               ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store double 0.000000e+00, ptr %10, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !13
  br label %94

94:                                               ; preds = %112, %93
  %95 = load i64, ptr %11, align 8, !tbaa !13
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.Matrix, ptr %96, i32 0, i32 1
  %98 = load i64, ptr %97, align 8, !tbaa !12
  %99 = icmp slt i64 %95, %98
  br i1 %99, label %101, label %100

100:                                              ; preds = %94
  store i32 8, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %115

101:                                              ; preds = %94
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = load i64, ptr %7, align 8, !tbaa !13
  %104 = load i64, ptr %11, align 8, !tbaa !13
  %105 = call double @mat_read(ptr noundef %102, i64 noundef %103, i64 noundef %104)
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = load i64, ptr %11, align 8, !tbaa !13
  %108 = load i64, ptr %9, align 8, !tbaa !13
  %109 = call double @mat_read(ptr noundef %106, i64 noundef %107, i64 noundef %108)
  %110 = load double, ptr %10, align 8, !tbaa !14
  %111 = call double @llvm.fmuladd.f64(double %105, double %109, double %110)
  store double %111, ptr %10, align 8, !tbaa !14
  br label %112

112:                                              ; preds = %101
  %113 = load i64, ptr %11, align 8, !tbaa !13
  %114 = add nsw i64 %113, 1
  store i64 %114, ptr %11, align 8, !tbaa !13
  br label %94, !llvm.loop !16

115:                                              ; preds = %100
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = load i64, ptr %7, align 8, !tbaa !13
  %118 = load i64, ptr %9, align 8, !tbaa !13
  %119 = load double, ptr %10, align 8, !tbaa !14
  call void @mat_write(ptr noundef %116, i64 noundef %117, i64 noundef %118, double noundef %119)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %120

120:                                              ; preds = %115
  %121 = load i64, ptr %9, align 8, !tbaa !13
  %122 = add nsw i64 %121, 1
  store i64 %122, ptr %9, align 8, !tbaa !13
  br label %86, !llvm.loop !18

123:                                              ; preds = %92
  br label %124

124:                                              ; preds = %123
  %125 = load i64, ptr %7, align 8, !tbaa !13
  %126 = add nsw i64 %125, 1
  store i64 %126, ptr %7, align 8, !tbaa !13
  br label %78, !llvm.loop !19

127:                                              ; preds = %84
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  ret ptr %128
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #6

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(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 #5 = { "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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0) }

!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 0}
!10 = !{!"", !11, i64 0, !11, i64 8, !6, i64 16}
!11 = !{!"long long", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


; 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.15 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local ptr @mat_create(i64 noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

; 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 @exit(i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local double @mat_read(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @mat_write(ptr noundef, i64 noundef, i64 noundef, double noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @mat_print(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local noundef ptr @mat_multmat(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 {
  %3 = load i64, ptr %0, align 8, !tbaa !5
  %4 = icmp slt i64 %3, 1
  br i1 %4, label %16, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !11
  %8 = icmp slt i64 %7, 1
  br i1 %8, label %16, label %9

9:                                                ; preds = %5
  %10 = load i64, ptr %1, align 8, !tbaa !5
  %11 = icmp slt i64 %10, 1
  br i1 %11, label %16, label %12

12:                                               ; preds = %9
  %13 = getelementptr inbounds i8, ptr %1, i64 8
  %14 = load i64, ptr %13, align 8, !tbaa !11
  %15 = icmp slt i64 %14, 1
  br i1 %15, label %16, label %19

16:                                               ; preds = %12, %9, %5, %2
  %17 = load ptr, ptr @stderr, align 8, !tbaa !12
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.15) #5
  tail call void @exit(i32 noundef 1) #6
  unreachable

19:                                               ; preds = %12
  %.not = icmp eq i64 %7, %10
  br i1 %.not, label %24, label %20

20:                                               ; preds = %19
  %21 = load ptr, ptr @stderr, align 8, !tbaa !12
  %22 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str.16, i64 noundef %3, i64 noundef %7, i64 noundef %10, i64 noundef %14) #5
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  tail call void @mat_print(ptr noundef nonnull %0)
  tail call void @mat_print(ptr noundef nonnull %1)
  tail call void @exit(i32 noundef 1) #6
  unreachable

24:                                               ; preds = %19
  %25 = shl i64 %3, 3
  %26 = mul i64 %25, %14
  %27 = tail call noalias ptr @malloc(i64 noundef %26) #7
  %28 = tail call ptr @mat_create(i64 noundef %3, i64 noundef %14, ptr noundef %27)
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = icmp sgt i64 %29, 0
  br i1 %30, label %.preheader44.lr.ph, label %._crit_edge50

.preheader44.lr.ph:                               ; preds = %24
  %31 = getelementptr inbounds i8, ptr %28, i64 8
  %32 = load i64, ptr %31, align 8, !tbaa !11
  %33 = icmp sgt i64 %32, 0
  br i1 %33, label %.preheader44, label %._crit_edge50

.preheader44:                                     ; preds = %.preheader44.lr.ph, %._crit_edge48
  %34 = phi i64 [ %39, %._crit_edge48 ], [ %29, %.preheader44.lr.ph ]
  %35 = phi i64 [ %40, %._crit_edge48 ], [ %32, %.preheader44.lr.ph ]
  %.03949 = phi i64 [ %41, %._crit_edge48 ], [ 0, %.preheader44.lr.ph ]
  %36 = icmp sgt i64 %35, 0
  br i1 %36, label %.preheader, label %._crit_edge48

._crit_edge50:                                    ; preds = %._crit_edge48, %.preheader44.lr.ph, %24
  ret ptr %28

.preheader:                                       ; preds = %.preheader44, %._crit_edge
  %.03847 = phi i64 [ %43, %._crit_edge ], [ 0, %.preheader44 ]
  %37 = load i64, ptr %6, align 8, !tbaa !11
  %38 = icmp sgt i64 %37, 0
  br i1 %38, label %.lr.ph, label %._crit_edge

._crit_edge48.loopexit:                           ; preds = %._crit_edge
  %.pre = load i64, ptr %28, align 8, !tbaa !5
  br label %._crit_edge48

._crit_edge48:                                    ; preds = %._crit_edge48.loopexit, %.preheader44
  %39 = phi i64 [ %.pre, %._crit_edge48.loopexit ], [ %34, %.preheader44 ]
  %40 = phi i64 [ %44, %._crit_edge48.loopexit ], [ %35, %.preheader44 ]
  %41 = add nuw nsw i64 %.03949, 1
  %42 = icmp slt i64 %41, %39
  br i1 %42, label %.preheader44, label %._crit_edge50, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.037.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %48, %.lr.ph ]
  tail call void @mat_write(ptr noundef nonnull %28, i64 noundef %.03949, i64 noundef %.03847, double noundef %.037.lcssa)
  %43 = add nuw nsw i64 %.03847, 1
  %44 = load i64, ptr %31, align 8, !tbaa !11
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %.preheader, label %._crit_edge48.loopexit, !llvm.loop !16

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.046 = phi i64 [ %49, %.lr.ph ], [ 0, %.preheader ]
  %.03745 = phi double [ %48, %.lr.ph ], [ 0.000000e+00, %.preheader ]
  %46 = tail call double @mat_read(ptr noundef nonnull %0, i64 noundef %.03949, i64 noundef %.046)
  %47 = tail call double @mat_read(ptr noundef nonnull %1, i64 noundef %.046, i64 noundef %.03847)
  %48 = tail call double @llvm.fmuladd.f64(double %46, double %47, double %.03745)
  %49 = add nuw nsw i64 %.046, 1
  %50 = load i64, ptr %6, align 8, !tbaa !11
  %51 = icmp slt i64 %49, %50
  br i1 %51, label %.lr.ph, label %._crit_edge, !llvm.loop !17
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { cold nounwind }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 0}
!6 = !{!"", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!10, !10, i64 0}
!13 = distinct !{!13, !14, !15}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!"llvm.loop.unswitch.partial.disable"}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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