; LLVM IR from beagleboard/librobotcontrol :: library/src/math (matrix)

; 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.rc_vector_t = type { i32, ptr, i32 }
%struct.rc_matrix_t = type { i32, i32, ptr, i32 }

@stderr = external global ptr, align 8
@.str.46 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [63 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(none)
declare i64 @llvm.expect.i64(i64, i64) #1

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

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

declare double @__vectorized_mult_accumulate(ptr noundef, ptr noundef, i32 noundef) #3

declare i32 @rc_vector_alloc(ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @rc_matrix_row_vec_times_matrix(ptr noundef byval(%struct.rc_vector_t) align 8 %0, ptr noundef byval(%struct.rc_matrix_t) align 8 %1, ptr noundef %2) #4 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %10 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 3
  %11 = load i32, ptr %10, align 8, !tbaa !9
  %12 = icmp ne i32 %11, 1
  br i1 %12, label %17, label %13

13:                                               ; preds = %3
  %14 = getelementptr inbounds %struct.rc_vector_t, ptr %0, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !12
  %16 = icmp ne i32 %15, 1
  br label %17

17:                                               ; preds = %13, %3
  %18 = phi i1 [ true, %3 ], [ %16, %13 ]
  %19 = xor i1 %18, true
  %20 = xor i1 %19, true
  %21 = zext i1 %20 to i32
  %22 = sext i32 %21 to i64
  %23 = call i64 @llvm.expect.i64(i64 %22, i64 0)
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %25, label %28

25:                                               ; preds = %17
  %26 = load ptr, ptr @stderr, align 8, !tbaa !5
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef @.str.46) #5
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %122

28:                                               ; preds = %17
  %29 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds %struct.rc_vector_t, ptr %0, i32 0, i32 0
  %32 = load i32, ptr %31, align 8, !tbaa !15
  %33 = icmp ne i32 %30, %32
  %34 = xor i1 %33, true
  %35 = xor i1 %34, true
  %36 = zext i1 %35 to i32
  %37 = sext i32 %36 to i64
  %38 = call i64 @llvm.expect.i64(i64 %37, i64 0)
  %39 = icmp ne i64 %38, 0
  br i1 %39, label %40, label %43

40:                                               ; preds = %28
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str.47) #5
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %122

43:                                               ; preds = %28
  %44 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 0
  %45 = load i32, ptr %44, align 8, !tbaa !14
  %46 = sext i32 %45 to i64
  %47 = mul i64 %46, 8
  %48 = alloca i8, i64 %47, align 16
  store ptr %48, ptr %8, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %60

57:                                               ; preds = %43
  %58 = load ptr, ptr @stderr, align 8, !tbaa !5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef @.str.48) #5
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %122

60:                                               ; preds = %43
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !16
  %64 = call i32 @rc_vector_alloc(ptr noundef %61, i32 noundef %63)
  %65 = icmp ne i32 %64, 0
  %66 = xor i1 %65, true
  %67 = xor i1 %66, true
  %68 = zext i1 %67 to i32
  %69 = sext i32 %68 to i64
  %70 = call i64 @llvm.expect.i64(i64 %69, i64 0)
  %71 = icmp ne i64 %70, 0
  br i1 %71, label %72, label %75

72:                                               ; preds = %60
  %73 = load ptr, ptr @stderr, align 8, !tbaa !5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %73, ptr noundef @.str.49) #5
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %122

75:                                               ; preds = %60
  store i32 0, ptr %6, align 4, !tbaa !17
  br label %76

76:                                               ; preds = %118, %75
  %77 = load i32, ptr %6, align 4, !tbaa !17
  %78 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 1
  %79 = load i32, ptr %78, align 4, !tbaa !16
  %80 = icmp slt i32 %77, %79
  br i1 %80, label %81, label %121

81:                                               ; preds = %76
  store i32 0, ptr %7, align 4, !tbaa !17
  br label %82

82:                                               ; preds = %102, %81
  %83 = load i32, ptr %7, align 4, !tbaa !17
  %84 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !14
  %86 = icmp slt i32 %83, %85
  br i1 %86, label %87, label %105

87:                                               ; preds = %82
  %88 = getelementptr inbounds %struct.rc_matrix_t, ptr %1, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !18
  %90 = load i32, ptr %7, align 4, !tbaa !17
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i32, ptr %6, align 4, !tbaa !17
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !19
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = load i32, ptr %7, align 4, !tbaa !17
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds double, ptr %98, i64 %100
  store double %97, ptr %101, align 8, !tbaa !19
  br label %102

102:                                              ; preds = %87
  %103 = load i32, ptr %7, align 4, !tbaa !17
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !17
  br label %82, !llvm.loop !21

105:                                              ; preds = %82
  %106 = getelementptr inbounds %struct.rc_vector_t, ptr %0, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !23
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.rc_vector_t, ptr %0, i32 0, i32 0
  %110 = load i32, ptr %109, align 8, !tbaa !15
  %111 = call double @__vectorized_mult_accumulate(ptr noundef %107, ptr noundef %108, i32 noundef %110)
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.rc_vector_t, ptr %112, i32 0, i32 1
  %114 = load ptr, ptr %113, align 8, !tbaa !23
  %115 = load i32, ptr %6, align 4, !tbaa !17
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds double, ptr %114, i64 %116
  store double %111, ptr %117, align 8, !tbaa !19
  br label %118

118:                                              ; preds = %105
  %119 = load i32, ptr %6, align 4, !tbaa !17
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %6, align 4, !tbaa !17
  br label %76, !llvm.loop !24

121:                                              ; preds = %76
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %122

122:                                              ; preds = %121, %72, %57, %40, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  %123 = load i32, ptr %4, align 4
  ret i32 %123
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
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 = { "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 = { 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 16}
!10 = !{!"rc_matrix_t", !11, i64 0, !11, i64 4, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !11, i64 16}
!13 = !{!"rc_vector_t", !11, i64 0, !6, i64 8, !11, i64 16}
!14 = !{!10, !11, i64 0}
!15 = !{!13, !11, i64 0}
!16 = !{!10, !11, i64 4}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !6, i64 8}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!13, !6, i64 8}
!24 = distinct !{!24, !22}


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

%struct.rc_vector_t = type { i32, ptr, i32 }
%struct.rc_matrix_t = type { i32, i32, ptr, i32 }

@stderr = external local_unnamed_addr global ptr, align 8
@.str.46 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [63 x i8], align 1

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

declare double @__vectorized_mult_accumulate(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

declare i32 @rc_vector_alloc(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @rc_matrix_row_vec_times_matrix(ptr nocapture noundef readonly byval(%struct.rc_vector_t) align 8 %0, ptr nocapture noundef readonly byval(%struct.rc_matrix_t) align 8 %1, ptr noundef %2) local_unnamed_addr #2 {
  %4 = getelementptr inbounds i8, ptr %1, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = icmp ne i32 %5, 1
  %7 = getelementptr inbounds i8, ptr %0, i64 16
  %8 = load i32, ptr %7, align 8
  %9 = icmp ne i32 %8, 1
  %10 = select i1 %6, i1 true, i1 %9, !prof !11
  br i1 %10, label %.loopexit.sink.split, label %11, !prof !11

11:                                               ; preds = %3
  %12 = load i32, ptr %1, align 8, !tbaa !12
  %13 = load i32, ptr %0, align 8, !tbaa !13
  %.not = icmp eq i32 %12, %13
  br i1 %.not, label %14, label %.loopexit.sink.split, !prof !15

14:                                               ; preds = %11
  %15 = sext i32 %12 to i64
  %16 = shl nsw i64 %15, 3
  %17 = alloca i8, i64 %16, align 16
  %18 = getelementptr inbounds i8, ptr %1, i64 4
  %19 = load i32, ptr %18, align 4, !tbaa !16
  %20 = tail call i32 @rc_vector_alloc(ptr noundef %2, i32 noundef %19) #3
  %.not16 = icmp eq i32 %20, 0
  br i1 %.not16, label %.preheader17, label %.loopexit.sink.split, !prof !15

.preheader17:                                     ; preds = %14
  %21 = icmp sgt i32 %19, 0
  br i1 %21, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %.preheader17
  %22 = icmp sgt i32 %12, 0
  %23 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load ptr, ptr %23, align 8
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %27 = getelementptr inbounds i8, ptr %2, i64 8
  %wide.trip.count30 = zext nneg i32 %19 to i64
  br i1 %22, label %.preheader.us.preheader, label %.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %wide.trip.count25 = zext nneg i32 %12 to i64
  %xtraiter = and i64 %wide.trip.count25, 3
  %28 = icmp ult i32 %12, 4
  %unroll_iter = and i64 %wide.trip.count25, 2147483644
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %indvars.iv27 = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next28, %._crit_edge.us ]
  br i1 %28, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv22 = phi i64 [ %indvars.iv.next23.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %29 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv22
  %30 = load ptr, ptr %29, align 8, !tbaa !18
  %31 = getelementptr inbounds double, ptr %30, i64 %indvars.iv27
  %32 = load double, ptr %31, align 8, !tbaa !19
  %33 = getelementptr inbounds double, ptr %17, i64 %indvars.iv22
  store double %32, ptr %33, align 16, !tbaa !19
  %indvars.iv.next23 = or disjoint i64 %indvars.iv22, 1
  %34 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next23
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  %36 = getelementptr inbounds double, ptr %35, i64 %indvars.iv27
  %37 = load double, ptr %36, align 8, !tbaa !19
  %38 = getelementptr inbounds double, ptr %17, i64 %indvars.iv.next23
  store double %37, ptr %38, align 8, !tbaa !19
  %indvars.iv.next23.1 = or disjoint i64 %indvars.iv22, 2
  %39 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next23.1
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds double, ptr %40, i64 %indvars.iv27
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds double, ptr %17, i64 %indvars.iv.next23.1
  store double %42, ptr %43, align 16, !tbaa !19
  %indvars.iv.next23.2 = or disjoint i64 %indvars.iv22, 3
  %44 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv.next23.2
  %45 = load ptr, ptr %44, align 8, !tbaa !18
  %46 = getelementptr inbounds double, ptr %45, i64 %indvars.iv27
  %47 = load double, ptr %46, align 8, !tbaa !19
  %48 = getelementptr inbounds double, ptr %17, i64 %indvars.iv.next23.2
  store double %47, ptr %48, align 8, !tbaa !19
  %indvars.iv.next23.3 = add nuw nsw i64 %indvars.iv22, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !21

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %indvars.iv22.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next23.3, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %indvars.iv22.epil = phi i64 [ %indvars.iv.next23.epil, %.epil.preheader ], [ %indvars.iv22.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %49 = getelementptr inbounds ptr, ptr %24, i64 %indvars.iv22.epil
  %50 = load ptr, ptr %49, align 8, !tbaa !18
  %51 = getelementptr inbounds double, ptr %50, i64 %indvars.iv27
  %52 = load double, ptr %51, align 8, !tbaa !19
  %53 = getelementptr inbounds double, ptr %17, i64 %indvars.iv22.epil
  store double %52, ptr %53, align 8, !tbaa !19
  %indvars.iv.next23.epil = add nuw nsw i64 %indvars.iv22.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !23

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %54 = call double @__vectorized_mult_accumulate(ptr noundef %26, ptr noundef nonnull %17, i32 noundef %12) #3
  %55 = load ptr, ptr %27, align 8, !tbaa !17
  %56 = getelementptr inbounds double, ptr %55, i64 %indvars.iv27
  store double %54, ptr %56, align 8, !tbaa !19
  %indvars.iv.next28 = add nuw nsw i64 %indvars.iv27, 1
  %exitcond31.not = icmp eq i64 %indvars.iv.next28, %wide.trip.count30
  br i1 %exitcond31.not, label %.loopexit, label %.preheader.us, !llvm.loop !25

.preheader:                                       ; preds = %.preheader.lr.ph, %.preheader
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader ], [ 0, %.preheader.lr.ph ]
  %57 = call double @__vectorized_mult_accumulate(ptr noundef %26, ptr noundef nonnull %17, i32 noundef %12) #3
  %58 = load ptr, ptr %27, align 8, !tbaa !17
  %59 = getelementptr inbounds double, ptr %58, i64 %indvars.iv
  store double %57, ptr %59, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count30
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !25

.loopexit.sink.split:                             ; preds = %14, %11, %3
  %.str.49.sink = phi ptr [ @.str.46, %3 ], [ @.str.47, %11 ], [ @.str.49, %14 ]
  %60 = load ptr, ptr @stderr, align 8, !tbaa !18
  %61 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull %.str.49.sink) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader, %._crit_edge.us, %.loopexit.sink.split, %.preheader17
  %.0 = phi i32 [ 0, %.preheader17 ], [ -1, %.loopexit.sink.split ], [ 0, %._crit_edge.us ], [ 0, %.preheader ]
  ret i32 %.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 = { 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 }
attributes #4 = { cold 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 16}
!6 = !{!"rc_matrix_t", !7, i64 0, !7, i64 4, !10, i64 8, !7, i64 16}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"branch_weights", !"expected", i32 1, i32 2000}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"rc_vector_t", !7, i64 0, !10, i64 8, !7, i64 16}
!15 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!16 = !{!6, !7, i64 4}
!17 = !{!14, !10, i64 8}
!18 = !{!10, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.unroll.disable"}
!25 = distinct !{!25, !22}


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