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

; 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.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [102 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
define dso_local ptr @mat_addmat(ptr noundef %0, ptr noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %8 = load ptr, ptr %3, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.Matrix, ptr %8, i32 0, i32 0
  %10 = load i64, ptr %9, align 8, !tbaa !9
  %11 = icmp sle i64 %10, 0
  br i1 %11, label %27, label %12

12:                                               ; preds = %2
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.Matrix, ptr %13, i32 0, i32 1
  %15 = load i64, ptr %14, align 8, !tbaa !12
  %16 = icmp sle i64 %15, 0
  br i1 %16, label %27, label %17

17:                                               ; preds = %12
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.Matrix, ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp sle i64 %20, 0
  br i1 %21, label %27, label %22

22:                                               ; preds = %17
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.Matrix, ptr %23, i32 0, i32 1
  %25 = load i64, ptr %24, align 8, !tbaa !12
  %26 = icmp sle i64 %25, 0
  br i1 %26, label %27, label %30

27:                                               ; preds = %22, %17, %12, %2
  %28 = load ptr, ptr @stderr, align 8, !tbaa !5
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.10) #5
  call void @exit(i32 noundef 1) #6
  unreachable

30:                                               ; preds = %22
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.Matrix, ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.Matrix, ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = icmp ne i64 %33, %36
  br i1 %37, label %46, label %38

38:                                               ; preds = %30
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.Matrix, ptr %39, i32 0, i32 1
  %41 = load i64, ptr %40, align 8, !tbaa !12
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.Matrix, ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !12
  %45 = icmp ne i64 %41, %44
  br i1 %45, label %46, label %61

46:                                               ; preds = %38, %30
  %47 = load ptr, ptr @stderr, align 8, !tbaa !5
  %48 = load ptr, ptr %3, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.Matrix, ptr %48, i32 0, i32 0
  %50 = load i64, ptr %49, align 8, !tbaa !9
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.Matrix, ptr %51, i32 0, i32 1
  %53 = load i64, ptr %52, align 8, !tbaa !12
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.Matrix, ptr %54, i32 0, i32 0
  %56 = load i64, ptr %55, align 8, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.Matrix, ptr %57, i32 0, i32 1
  %59 = load i64, ptr %58, align 8, !tbaa !12
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str.11, ptr noundef @.str.12, i64 noundef %50, i64 noundef %53, i64 noundef %56, i64 noundef %59) #5
  br label %61

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

71:                                               ; preds = %99, %61
  %72 = load i64, ptr %6, align 8, !tbaa !13
  %73 = load ptr, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.Matrix, ptr %73, i32 0, i32 0
  %75 = load i64, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.Matrix, ptr %76, i32 0, i32 1
  %78 = load i64, ptr %77, align 8, !tbaa !12
  %79 = mul nsw i64 %75, %78
  %80 = icmp slt i64 %72, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %102

82:                                               ; preds = %71
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.Matrix, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !14
  %86 = load i64, ptr %6, align 8, !tbaa !13
  %87 = getelementptr inbounds double, ptr %85, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !15
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.Matrix, ptr %89, i32 0, i32 2
  %91 = load ptr, ptr %90, align 8, !tbaa !14
  %92 = load i64, ptr %6, align 8, !tbaa !13
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !15
  %95 = fadd double %88, %94
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load i64, ptr %6, align 8, !tbaa !13
  %98 = getelementptr inbounds double, ptr %96, i64 %97
  store double %95, ptr %98, align 8, !tbaa !15
  br label %99

99:                                               ; preds = %82
  %100 = load i64, ptr %6, align 8, !tbaa !13
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %6, align 8, !tbaa !13
  br label %71, !llvm.loop !17

102:                                              ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.Matrix, ptr %103, i32 0, i32 0
  %105 = load i64, ptr %104, align 8, !tbaa !9
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.Matrix, ptr %106, i32 0, i32 1
  %108 = load i64, ptr %107, align 8, !tbaa !12
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = call ptr @mat_create(i64 noundef %105, i64 noundef %108, ptr noundef %109)
  store ptr %110, ptr %7, align 8, !tbaa !5
  %111 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %111
}

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 = { 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, !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 = !{!10, !6, i64 16}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"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.10 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [102 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
define dso_local ptr @mat_addmat(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %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.10) #4
  tail call void @exit(i32 noundef 1) #5
  unreachable

19:                                               ; preds = %12
  %.not = icmp eq i64 %3, %10
  %.not31 = icmp eq i64 %7, %14
  %or.cond = and i1 %.not, %.not31
  br i1 %or.cond, label %23, 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.11, ptr noundef nonnull @.str.12, i64 noundef %3, i64 noundef %7, i64 noundef %10, i64 noundef %14) #4
  %.pre = load i64, ptr %0, align 8, !tbaa !5
  %.pre33 = load i64, ptr %6, align 8, !tbaa !11
  br label %23

23:                                               ; preds = %19, %20
  %24 = phi i64 [ %7, %19 ], [ %.pre33, %20 ]
  %25 = phi i64 [ %3, %19 ], [ %.pre, %20 ]
  %26 = mul nsw i64 %24, %25
  %27 = shl i64 %26, 3
  %28 = tail call noalias ptr @malloc(i64 noundef %27) #6
  %29 = ptrtoint ptr %28 to i64
  %30 = icmp sgt i64 %26, 0
  br i1 %30, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %23
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !13
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !13
  %min.iters.check = icmp ult i64 %26, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %.032.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %26, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.032.prol = phi i64 [ %41, %scalar.ph.prol ], [ %.032.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %35 = getelementptr inbounds double, ptr %32, i64 %.032.prol
  %36 = load double, ptr %35, align 8, !tbaa !14
  %37 = getelementptr inbounds double, ptr %34, i64 %.032.prol
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fadd double %36, %38
  %40 = getelementptr inbounds double, ptr %28, i64 %.032.prol
  store double %39, ptr %40, align 8, !tbaa !14
  %41 = add nuw nsw i64 %.032.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !16

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.032.unr = phi i64 [ %.032.ph, %scalar.ph.preheader ], [ %41, %scalar.ph.prol ]
  %42 = sub nsw i64 %.032.ph, %26
  %43 = icmp ugt i64 %42, -4
  br i1 %43, label %._crit_edge, label %scalar.ph

vector.memcheck:                                  ; preds = %.lr.ph
  %44 = ptrtoint ptr %34 to i64
  %45 = ptrtoint ptr %32 to i64
  %46 = sub i64 %29, %45
  %diff.check = icmp ult i64 %46, 32
  %47 = sub i64 %29, %44
  %diff.check34 = icmp ult i64 %47, 32
  %conflict.rdx = or i1 %diff.check, %diff.check34
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %26, 9223372036854775804
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %48 = getelementptr inbounds double, ptr %32, i64 %index
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  %wide.load = load <2 x double>, ptr %48, align 8, !tbaa !14
  %wide.load35 = load <2 x double>, ptr %49, align 8, !tbaa !14
  %50 = getelementptr inbounds double, ptr %34, i64 %index
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  %wide.load36 = load <2 x double>, ptr %50, align 8, !tbaa !14
  %wide.load37 = load <2 x double>, ptr %51, align 8, !tbaa !14
  %52 = fadd <2 x double> %wide.load, %wide.load36
  %53 = fadd <2 x double> %wide.load35, %wide.load37
  %54 = getelementptr inbounds double, ptr %28, i64 %index
  %55 = getelementptr inbounds i8, ptr %54, i64 16
  store <2 x double> %52, ptr %54, align 8, !tbaa !14
  store <2 x double> %53, ptr %55, align 8, !tbaa !14
  %index.next = add nuw i64 %index, 4
  %56 = icmp eq i64 %index.next, %n.vec
  br i1 %56, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %26, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %23
  %57 = tail call ptr @mat_create(i64 noundef %25, i64 noundef %24, ptr noundef %28)
  ret ptr %57

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.032 = phi i64 [ %85, %scalar.ph ], [ %.032.unr, %scalar.ph.prol.loopexit ]
  %58 = getelementptr inbounds double, ptr %32, i64 %.032
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = getelementptr inbounds double, ptr %34, i64 %.032
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = fadd double %59, %61
  %63 = getelementptr inbounds double, ptr %28, i64 %.032
  store double %62, ptr %63, align 8, !tbaa !14
  %64 = add nuw nsw i64 %.032, 1
  %65 = getelementptr inbounds double, ptr %32, i64 %64
  %66 = load double, ptr %65, align 8, !tbaa !14
  %67 = getelementptr inbounds double, ptr %34, i64 %64
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = fadd double %66, %68
  %70 = getelementptr inbounds double, ptr %28, i64 %64
  store double %69, ptr %70, align 8, !tbaa !14
  %71 = add nuw nsw i64 %.032, 2
  %72 = getelementptr inbounds double, ptr %32, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !14
  %74 = getelementptr inbounds double, ptr %34, i64 %71
  %75 = load double, ptr %74, align 8, !tbaa !14
  %76 = fadd double %73, %75
  %77 = getelementptr inbounds double, ptr %28, i64 %71
  store double %76, ptr %77, align 8, !tbaa !14
  %78 = add nuw nsw i64 %.032, 3
  %79 = getelementptr inbounds double, ptr %32, i64 %78
  %80 = load double, ptr %79, align 8, !tbaa !14
  %81 = getelementptr inbounds double, ptr %34, i64 %78
  %82 = load double, ptr %81, align 8, !tbaa !14
  %83 = fadd double %80, %82
  %84 = getelementptr inbounds double, ptr %28, i64 %78
  store double %83, ptr %84, align 8, !tbaa !14
  %85 = add nuw nsw i64 %.032, 4
  %exitcond.not.3 = icmp eq i64 %85, %26
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !22
}

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 = { cold nounwind }
attributes #5 = { noreturn nounwind }
attributes #6 = { 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 = !{!6, !10, i64 16}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !20}


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