; 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.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [59 x i8], align 1
@__func__.MatNd_scaleSelf = external hidden unnamed_addr constant [16 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.159 = 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #4

; Function Attrs: nounwind uwtable
declare dso_local void @MatNd_constMulSelf(ptr noundef, double noundef) #5

; Function Attrs: nounwind uwtable
declare dso_local double @MatNd_scaleSelfToScalar(ptr noundef, double noundef) #5

; Function Attrs: nounwind uwtable
define dso_local double @MatNd_scaleSelf(ptr noundef %0, ptr noundef %1) #5 {
  %3 = alloca double, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %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
  %11 = load ptr, ptr %5, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct._MatNd, ptr %11, i32 0, i32 1
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = icmp eq i32 %13, 1
  br i1 %14, label %15, label %28

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

20:                                               ; preds = %15
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._MatNd, ptr %22, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  %25 = getelementptr inbounds double, ptr %24, i64 0
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = call double @MatNd_scaleSelfToScalar(ptr noundef %21, double noundef %26)
  store double %27, ptr %3, align 8
  br label %124

28:                                               ; preds = %15, %2
  br label %29

29:                                               ; preds = %28
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._MatNd, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !9
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._MatNd, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 8, !tbaa !9
  %36 = icmp ne i32 %32, %35
  br i1 %36, label %37, label %48

37:                                               ; preds = %29
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._MatNd, ptr %39, i32 0, i32 1
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = uitofp i32 %41 to double
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct._MatNd, ptr %43, i32 0, i32 1
  %45 = load i32, ptr %44, align 8, !tbaa !9
  %46 = uitofp i32 %45 to double
  %47 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str.155, ptr noundef @.str.1, ptr noundef @__func__.MatNd_scaleSelf, i32 noundef 2637, ptr noundef @.str.156, double noundef %42, ptr noundef @.str.157, double noundef %46) #6
  call void @print_trace()
  call void @exit(i32 noundef 1) #7
  unreachable

48:                                               ; preds = %29
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct._MatNd, ptr %51, i32 0, i32 2
  %53 = load i32, ptr %52, align 4, !tbaa !13
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct._MatNd, ptr %54, i32 0, i32 2
  %56 = load i32, ptr %55, align 4, !tbaa !13
  %57 = icmp ne i32 %53, %56
  br i1 %57, label %58, label %69

58:                                               ; preds = %50
  %59 = load ptr, ptr @stderr, align 8, !tbaa !5
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct._MatNd, ptr %60, i32 0, i32 2
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = uitofp i32 %62 to double
  %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 !13
  %67 = uitofp i32 %66 to double
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.155, ptr noundef @.str.1, ptr noundef @__func__.MatNd_scaleSelf, i32 noundef 2638, ptr noundef @.str.158, double noundef %63, ptr noundef @.str.159, double noundef %67) #6
  call void @print_trace()
  call void @exit(i32 noundef 1) #7
  unreachable

69:                                               ; preds = %50
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store double 1.000000e+00, ptr %6, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._MatNd, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 8, !tbaa !9
  %74 = load ptr, ptr %4, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct._MatNd, ptr %74, i32 0, i32 2
  %76 = load i32, ptr %75, align 4, !tbaa !13
  %77 = mul i32 %73, %76
  store i32 %77, ptr %10, align 4, !tbaa !17
  store i32 0, ptr %9, align 4, !tbaa !17
  br label %78

78:                                               ; preds = %117, %70
  %79 = load i32, ptr %9, align 4, !tbaa !17
  %80 = load i32, ptr %10, align 4, !tbaa !17
  %81 = icmp ult i32 %79, %80
  br i1 %81, label %82, label %120

82:                                               ; preds = %78
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._MatNd, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !14
  %86 = load i32, ptr %9, align 4, !tbaa !17
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds double, ptr %85, i64 %87
  %89 = load double, ptr %88, align 8, !tbaa !15
  %90 = call double @llvm.fabs.f64(double %89)
  store double %90, ptr %7, align 8, !tbaa !15
  %91 = load double, ptr %7, align 8, !tbaa !15
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._MatNd, ptr %92, i32 0, i32 0
  %94 = load ptr, ptr %93, align 8, !tbaa !14
  %95 = load i32, ptr %9, align 4, !tbaa !17
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  %98 = load double, ptr %97, align 8, !tbaa !15
  %99 = fcmp ogt double %91, %98
  br i1 %99, label %100, label %116

100:                                              ; preds = %82
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct._MatNd, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !14
  %104 = load i32, ptr %9, align 4, !tbaa !17
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %103, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !15
  %108 = load double, ptr %7, align 8, !tbaa !15
  %109 = fdiv double %107, %108
  store double %109, ptr %8, align 8, !tbaa !15
  %110 = load double, ptr %8, align 8, !tbaa !15
  %111 = load double, ptr %6, align 8, !tbaa !15
  %112 = fcmp olt double %110, %111
  br i1 %112, label %113, label %115

113:                                              ; preds = %100
  %114 = load double, ptr %8, align 8, !tbaa !15
  store double %114, ptr %6, align 8, !tbaa !15
  br label %115

115:                                              ; preds = %113, %100
  br label %116

116:                                              ; preds = %115, %82
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %9, align 4, !tbaa !17
  %119 = add i32 %118, 1
  store i32 %119, ptr %9, align 4, !tbaa !17
  br label %78, !llvm.loop !18

120:                                              ; preds = %78
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = load double, ptr %6, align 8, !tbaa !15
  call void @MatNd_constMulSelf(ptr noundef %121, double noundef %122)
  %123 = load double, ptr %6, align 8, !tbaa !15
  store double %123, ptr %3, align 8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %124

124:                                              ; preds = %120, %20
  %125 = load double, ptr %3, align 8
  ret double %125
}

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


; 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.1 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [59 x i8], align 1
@__func__.MatNd_scaleSelf = external hidden unnamed_addr constant [16 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.159 = 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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #3

; Function Attrs: nounwind uwtable
declare dso_local void @MatNd_constMulSelf(ptr noundef, double noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
declare dso_local double @MatNd_scaleSelfToScalar(ptr noundef, double noundef) local_unnamed_addr #4

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

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 12
  %8 = load i32, ptr %7, align 4, !tbaa !12
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %10, label %14

10:                                               ; preds = %6
  %11 = load ptr, ptr %1, align 8, !tbaa !13
  %12 = load double, ptr %11, align 8, !tbaa !14
  %13 = tail call double @MatNd_scaleSelfToScalar(ptr noundef %0, double noundef %12)
  br label %70

14:                                               ; preds = %2, %6
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load i32, ptr %15, align 8, !tbaa !5
  %.not = icmp eq i32 %16, %4
  br i1 %.not, label %22, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr @stderr, align 8, !tbaa !16
  %19 = uitofp i32 %16 to double
  %20 = uitofp i32 %4 to double
  %21 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_scaleSelf, i32 noundef 2637, ptr noundef nonnull @.str.156, double noundef %19, ptr noundef nonnull @.str.157, double noundef %20) #5
  tail call void @print_trace() #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

22:                                               ; preds = %14
  %23 = getelementptr inbounds i8, ptr %0, i64 12
  %24 = load i32, ptr %23, align 4, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %1, i64 12
  %26 = load i32, ptr %25, align 4, !tbaa !12
  %.not42 = icmp eq i32 %24, %26
  br i1 %.not42, label %32, label %27

27:                                               ; preds = %22
  %28 = load ptr, ptr @stderr, align 8, !tbaa !16
  %29 = uitofp i32 %24 to double
  %30 = uitofp i32 %26 to double
  %31 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef nonnull @.str.155, ptr noundef nonnull @.str.1, ptr noundef nonnull @__func__.MatNd_scaleSelf, i32 noundef 2638, ptr noundef nonnull @.str.158, double noundef %29, ptr noundef nonnull @.str.159, double noundef %30) #5
  tail call void @print_trace() #6
  tail call void @exit(i32 noundef 1) #7
  unreachable

32:                                               ; preds = %22
  %33 = mul i32 %24, %4
  %.not45 = icmp eq i32 %33, 0
  br i1 %.not45, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %32
  %34 = load ptr, ptr %0, align 8, !tbaa !13
  %35 = load ptr, ptr %1, align 8, !tbaa !13
  %wide.trip.count = zext i32 %33 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %36 = icmp eq i32 %33, 1
  br i1 %36, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 4294967294
  br label %37

37:                                               ; preds = %59, %.lr.ph.new
  %indvars.iv = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next.1, %59 ]
  %.03243 = phi double [ 1.000000e+00, %.lr.ph.new ], [ %.1.1, %59 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.1, %59 ]
  %38 = getelementptr inbounds double, ptr %34, i64 %indvars.iv
  %39 = load double, ptr %38, align 8, !tbaa !14
  %40 = tail call double @llvm.fabs.f64(double %39)
  %41 = getelementptr inbounds double, ptr %35, i64 %indvars.iv
  %42 = load double, ptr %41, align 8, !tbaa !14
  %43 = fcmp ogt double %40, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %37
  %45 = fdiv double %42, %40
  %46 = fcmp olt double %45, %.03243
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  br label %48

48:                                               ; preds = %37, %47, %44
  %.1 = phi double [ %45, %47 ], [ %.03243, %44 ], [ %.03243, %37 ]
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %49 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.next
  %50 = load double, ptr %49, align 8, !tbaa !14
  %51 = tail call double @llvm.fabs.f64(double %50)
  %52 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.next
  %53 = load double, ptr %52, align 8, !tbaa !14
  %54 = fcmp ogt double %51, %53
  br i1 %54, label %55, label %59

55:                                               ; preds = %48
  %56 = fdiv double %53, %51
  %57 = fcmp olt double %56, %.1
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  br label %59

59:                                               ; preds = %58, %55, %48
  %.1.1 = phi double [ %56, %58 ], [ %.1, %55 ], [ %.1, %48 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.loopexit.unr-lcssa, label %37, !llvm.loop !17

._crit_edge.loopexit.unr-lcssa:                   ; preds = %59, %.lr.ph
  %.1.lcssa.ph = phi double [ poison, %.lr.ph ], [ %.1.1, %59 ]
  %indvars.iv.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next.1, %59 ]
  %.03243.unr = phi double [ 1.000000e+00, %.lr.ph ], [ %.1.1, %59 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.loopexit.unr-lcssa
  %60 = getelementptr inbounds double, ptr %34, i64 %indvars.iv.unr
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = tail call double @llvm.fabs.f64(double %61)
  %63 = getelementptr inbounds double, ptr %35, i64 %indvars.iv.unr
  %64 = load double, ptr %63, align 8, !tbaa !14
  %65 = fcmp ogt double %62, %64
  br i1 %65, label %66, label %._crit_edge

66:                                               ; preds = %.epil.preheader
  %67 = fdiv double %64, %62
  %68 = fcmp olt double %67, %.03243.unr
  br i1 %68, label %69, label %._crit_edge

69:                                               ; preds = %66
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %69, %66, %.epil.preheader, %32
  %.032.lcssa = phi double [ 1.000000e+00, %32 ], [ %.1.lcssa.ph, %._crit_edge.loopexit.unr-lcssa ], [ %67, %69 ], [ %.03243.unr, %66 ], [ %.03243.unr, %.epil.preheader ]
  tail call void @MatNd_constMulSelf(ptr noundef nonnull %0, double noundef %.032.lcssa)
  br label %70

70:                                               ; preds = %._crit_edge, %10
  %.0 = phi double [ %13, %10 ], [ %.032.lcssa, %._crit_edge ]
  ret double %.0
}

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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!6, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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