; LLVM IR from HRI-EU/Rcs :: src/RcsCore (Rcs_MatNd)

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

@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [41 x i8], align 1
@__func__.MatNd_softMax = external hidden unnamed_addr constant [14 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [9 x i8], align 1

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

declare void @print_trace() #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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #3

; Function Attrs: nounwind
declare double @exp(double noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @MatNd_softMax(ptr noundef %0, ptr noundef %1, double noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store double %2, ptr %6, align 8, !tbaa !9
  br label %12

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

20:                                               ; preds = %12
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._MatNd, ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct._MatNd, ptr %24, i32 0, i32 2
  %26 = load i32, ptr %25, align 4, !tbaa !15
  %27 = icmp eq i32 %23, %26
  br i1 %27, label %47, label %28

28:                                               ; preds = %20, %12
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.MatNd_softMax, i32 noundef 5578, ptr noundef @.str.97) #5
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct._MatNd, ptr %32, i32 0, i32 1
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct._MatNd, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %36, align 4, !tbaa !15
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._MatNd, ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 8, !tbaa !11
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct._MatNd, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !15
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str.295, i32 noundef %34, i32 noundef %37, i32 noundef %40, i32 noundef %43) #5
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef @.str.4) #5
  call void @print_trace()
  call void @exit(i32 noundef 1) #6
  unreachable

47:                                               ; preds = %20
  br label %48

48:                                               ; preds = %47
  br label %49

49:                                               ; preds = %48
  %50 = load double, ptr %6, align 8, !tbaa !9
  %51 = fcmp ogt double %50, 0.000000e+00
  br i1 %51, label %60, label %52

52:                                               ; preds = %49
  %53 = load ptr, ptr @stderr, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %53, ptr noundef @.str, ptr noundef @.str.1, ptr noundef @__func__.MatNd_softMax, i32 noundef 5579, ptr noundef @.str.296) #5
  %55 = load ptr, ptr @stderr, align 8, !tbaa !5
  %56 = load double, ptr %6, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef @.str.297, double noundef %56) #5
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.4) #5
  call void @print_trace()
  call void @exit(i32 noundef 1) #6
  unreachable

60:                                               ; preds = %49
  br label %61

61:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !16
  br label %62

62:                                               ; preds = %142, %61
  %63 = load i32, ptr %7, align 4, !tbaa !16
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._MatNd, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !15
  %67 = icmp ult i32 %63, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %62
  store i32 6, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %145

69:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store double 0.000000e+00, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !16
  br label %70

70:                                               ; preds = %96, %69
  %71 = load i32, ptr %10, align 4, !tbaa !16
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct._MatNd, ptr %72, i32 0, i32 1
  %74 = load i32, ptr %73, align 8, !tbaa !11
  %75 = icmp ult i32 %71, %74
  br i1 %75, label %77, label %76

76:                                               ; preds = %70
  store i32 9, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %99

77:                                               ; preds = %70
  %78 = load double, ptr %6, align 8, !tbaa !9
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._MatNd, ptr %79, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !17
  %82 = load i32, ptr %10, align 4, !tbaa !16
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._MatNd, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %84, align 4, !tbaa !15
  %86 = mul i32 %82, %85
  %87 = load i32, ptr %7, align 4, !tbaa !16
  %88 = add i32 %86, %87
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds double, ptr %81, i64 %89
  %91 = load double, ptr %90, align 8, !tbaa !9
  %92 = fmul double %78, %91
  %93 = call double @exp(double noundef %92) #5
  %94 = load double, ptr %9, align 8, !tbaa !9
  %95 = fadd double %94, %93
  store double %95, ptr %9, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %77
  %97 = load i32, ptr %10, align 4, !tbaa !16
  %98 = add i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !16
  br label %70, !llvm.loop !18

99:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !16
  br label %100

100:                                              ; preds = %138, %99
  %101 = load i32, ptr %11, align 4, !tbaa !16
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct._MatNd, ptr %102, i32 0, i32 1
  %104 = load i32, ptr %103, align 8, !tbaa !11
  %105 = icmp ult i32 %101, %104
  br i1 %105, label %107, label %106

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

107:                                              ; preds = %100
  %108 = load double, ptr %6, align 8, !tbaa !9
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct._MatNd, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !17
  %112 = load i32, ptr %11, align 4, !tbaa !16
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct._MatNd, ptr %113, i32 0, i32 2
  %115 = load i32, ptr %114, align 4, !tbaa !15
  %116 = mul i32 %112, %115
  %117 = load i32, ptr %7, align 4, !tbaa !16
  %118 = add i32 %116, %117
  %119 = zext i32 %118 to i64
  %120 = getelementptr inbounds double, ptr %111, i64 %119
  %121 = load double, ptr %120, align 8, !tbaa !9
  %122 = fmul double %108, %121
  %123 = call double @exp(double noundef %122) #5
  %124 = load double, ptr %9, align 8, !tbaa !9
  %125 = fdiv double %123, %124
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct._MatNd, ptr %126, i32 0, i32 0
  %128 = load ptr, ptr %127, align 8, !tbaa !17
  %129 = load i32, ptr %11, align 4, !tbaa !16
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct._MatNd, ptr %130, i32 0, i32 2
  %132 = load i32, ptr %131, align 4, !tbaa !15
  %133 = mul i32 %129, %132
  %134 = load i32, ptr %7, align 4, !tbaa !16
  %135 = add i32 %133, %134
  %136 = zext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %128, i64 %136
  store double %125, ptr %137, align 8, !tbaa !9
  br label %138

138:                                              ; preds = %107
  %139 = load i32, ptr %11, align 4, !tbaa !16
  %140 = add i32 %139, 1
  store i32 %140, ptr %11, align 4, !tbaa !16
  br label %100, !llvm.loop !20

141:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %7, align 4, !tbaa !16
  %144 = add i32 %143, 1
  store i32 %144, ptr %7, align 4, !tbaa !16
  br label %62, !llvm.loop !21

145:                                              ; preds = %68
  ret void
}

attributes #0 = { 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 = { "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 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 #5 = { nounwind }
attributes #6 = { 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, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 8}
!12 = !{!"_MatNd", !6, i64 0, !13, i64 8, !13, i64 12, !13, i64 16, !14, i64 20}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!12, !13, i64 12}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.97 = external hidden unnamed_addr constant [41 x i8], align 1
@__func__.MatNd_softMax = external hidden unnamed_addr constant [14 x i8], align 1
@.str.295 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.296 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.297 = external hidden unnamed_addr constant [9 x i8], align 1

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

declare void @print_trace() local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @exp(double noundef) local_unnamed_addr #3

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

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 12
  %11 = load i32, ptr %10, align 4, !tbaa !12
  %12 = getelementptr inbounds i8, ptr %1, i64 12
  %13 = load i32, ptr %12, align 4, !tbaa !12
  %14 = icmp eq i32 %11, %13
  br i1 %14, label %28, label %15

15:                                               ; preds = %9, %3
  %16 = load ptr, ptr @stderr, align 8, !tbaa !13
  %17 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_softMax, i32 noundef 5578, ptr noundef nonnull @.str.97) #5
  %18 = load ptr, ptr @stderr, align 8, !tbaa !13
  %19 = load i32, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %0, i64 12
  %21 = load i32, ptr %20, align 4, !tbaa !12
  %22 = load i32, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %1, i64 12
  %24 = load i32, ptr %23, align 4, !tbaa !12
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.295, i32 noundef %19, i32 noundef %21, i32 noundef %22, i32 noundef %24) #5
  %26 = load ptr, ptr @stderr, align 8, !tbaa !13
  %27 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str.4) #5
  tail call void @print_trace() #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

28:                                               ; preds = %9
  %29 = fcmp ogt double %2, 0.000000e+00
  br i1 %29, label %.preheader39, label %30

.preheader39:                                     ; preds = %28
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %._crit_edge45, label %.preheader38

30:                                               ; preds = %28
  %31 = load ptr, ptr @stderr, align 8, !tbaa !13
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_softMax, i32 noundef 5579, ptr noundef nonnull @.str.296) #5
  %33 = load ptr, ptr @stderr, align 8, !tbaa !13
  %34 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.297, double noundef %2) #5
  %35 = load ptr, ptr @stderr, align 8, !tbaa !13
  %36 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.4) #5
  tail call void @print_trace() #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

.preheader38:                                     ; preds = %.preheader39, %._crit_edge
  %37 = phi i32 [ %51, %._crit_edge ], [ %5, %.preheader39 ]
  %.03644 = phi i32 [ %52, %._crit_edge ], [ 0, %.preheader39 ]
  %.not46 = icmp eq i32 %37, 0
  br i1 %.not46, label %._crit_edge, label %.lr.ph

._crit_edge45:                                    ; preds = %._crit_edge, %.preheader39
  ret void

.preheader:                                       ; preds = %.lr.ph
  %.not47 = icmp eq i32 %49, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph43

.lr.ph:                                           ; preds = %.preheader38, %.lr.ph
  %.03441 = phi i32 [ %48, %.lr.ph ], [ 0, %.preheader38 ]
  %.03540 = phi double [ %47, %.lr.ph ], [ 0.000000e+00, %.preheader38 ]
  %38 = load ptr, ptr %1, align 8, !tbaa !14
  %39 = load i32, ptr %12, align 4, !tbaa !12
  %40 = mul i32 %39, %.03441
  %41 = add i32 %40, %.03644
  %42 = zext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %38, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !15
  %45 = fmul double %44, %2
  %46 = tail call double @exp(double noundef %45) #6
  %47 = fadd double %.03540, %46
  %48 = add nuw i32 %.03441, 1
  %49 = load i32, ptr %6, align 8, !tbaa !5
  %50 = icmp ult i32 %48, %49
  br i1 %50, label %.lr.ph, label %.preheader, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph43, %.preheader38, %.preheader
  %51 = phi i32 [ 0, %.preheader ], [ 0, %.preheader38 ], [ %72, %.lr.ph43 ]
  %52 = add nuw i32 %.03644, 1
  %53 = load i32, ptr %12, align 4, !tbaa !12
  %54 = icmp ult i32 %52, %53
  br i1 %54, label %.preheader38, label %._crit_edge45, !llvm.loop !19

.lr.ph43:                                         ; preds = %.preheader, %.lr.ph43
  %.042 = phi i32 [ %71, %.lr.ph43 ], [ 0, %.preheader ]
  %55 = load ptr, ptr %1, align 8, !tbaa !14
  %56 = load i32, ptr %12, align 4, !tbaa !12
  %57 = mul i32 %56, %.042
  %58 = add i32 %57, %.03644
  %59 = zext i32 %58 to i64
  %60 = getelementptr inbounds double, ptr %55, i64 %59
  %61 = load double, ptr %60, align 8, !tbaa !15
  %62 = fmul double %61, %2
  %63 = tail call double @exp(double noundef %62) #6
  %64 = fdiv double %63, %47
  %65 = load ptr, ptr %0, align 8, !tbaa !14
  %66 = load i32, ptr %10, align 4, !tbaa !12
  %67 = mul i32 %66, %.042
  %68 = add i32 %67, %.03644
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %65, i64 %69
  store double %64, ptr %70, align 8, !tbaa !15
  %71 = add nuw i32 %.042, 1
  %72 = load i32, ptr %6, align 8, !tbaa !5
  %73 = icmp ult i32 %71, %72
  br i1 %73, label %.lr.ph43, label %._crit_edge, !llvm.loop !20
}

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 = { "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 memory(write) "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 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 #5 = { cold nounwind }
attributes #6 = { nounwind }
attributes #7 = { 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, !10, i64 8}
!6 = !{!"_MatNd", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !11, i64 20}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_Bool", !8, i64 0}
!12 = !{!6, !10, i64 12}
!13 = !{!7, !7, i64 0}
!14 = !{!6, !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}


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