; LLVM IR from microsoft/LightAIMD :: src/einsum.ll_task_func_einsum_mn_np (mp)

; 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.task_func_einsum_mn_np__mp_arg = type { ptr, ptr, ptr, i64, i64, i64, i64 }

; 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 speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: nounwind uwtable
define dso_local void @task_func_einsum_mn_np__mp(ptr noundef %0) #2 {
  %2 = alloca ptr, align 8
  %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 i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %15, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  store ptr %18, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  store ptr %21, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  store ptr %24, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %25, i32 0, i32 3
  %27 = load i64, ptr %26, align 8, !tbaa !14
  store i64 %27, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %28, i32 0, i32 4
  %30 = load i64, ptr %29, align 8, !tbaa !16
  store i64 %30, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %31, i32 0, i32 5
  %33 = load i64, ptr %32, align 8, !tbaa !17
  store i64 %33, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.task_func_einsum_mn_np__mp_arg, ptr %34, i32 0, i32 6
  %36 = load i64, ptr %35, align 8, !tbaa !18
  store i64 %36, ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !15
  br label %37

37:                                               ; preds = %79, %1
  %38 = load i64, ptr %11, align 8, !tbaa !15
  %39 = load i64, ptr %7, align 8, !tbaa !15
  %40 = icmp ult i64 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %82

42:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  store i64 0, ptr %14, align 8, !tbaa !15
  br label %43

43:                                               ; preds = %67, %42
  %44 = load i64, ptr %14, align 8, !tbaa !15
  %45 = load i64, ptr %8, align 8, !tbaa !15
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %43
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  br label %70

48:                                               ; preds = %43
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i64, ptr %11, align 8, !tbaa !15
  %51 = load i64, ptr %8, align 8, !tbaa !15
  %52 = mul i64 %50, %51
  %53 = load i64, ptr %14, align 8, !tbaa !15
  %54 = add i64 %52, %53
  %55 = getelementptr inbounds double, ptr %49, i64 %54
  %56 = load double, ptr %55, align 8, !tbaa !19
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load i64, ptr %14, align 8, !tbaa !15
  %59 = load i64, ptr %9, align 8, !tbaa !15
  %60 = mul i64 %58, %59
  %61 = load i64, ptr %10, align 8, !tbaa !15
  %62 = add i64 %60, %61
  %63 = getelementptr inbounds double, ptr %57, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !19
  %65 = load double, ptr %13, align 8, !tbaa !19
  %66 = call double @llvm.fmuladd.f64(double %56, double %64, double %65)
  store double %66, ptr %13, align 8, !tbaa !19
  br label %67

67:                                               ; preds = %48
  %68 = load i64, ptr %14, align 8, !tbaa !15
  %69 = add i64 %68, 1
  store i64 %69, ptr %14, align 8, !tbaa !15
  br label %43, !llvm.loop !21

70:                                               ; preds = %47
  %71 = load double, ptr %13, align 8, !tbaa !19
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i64, ptr %11, align 8, !tbaa !15
  %74 = load i64, ptr %9, align 8, !tbaa !15
  %75 = mul i64 %73, %74
  %76 = load i64, ptr %10, align 8, !tbaa !15
  %77 = add i64 %75, %76
  %78 = getelementptr inbounds double, ptr %72, i64 %77
  store double %71, ptr %78, align 8, !tbaa !19
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  br label %79

79:                                               ; preds = %70
  %80 = load i64, ptr %11, align 8, !tbaa !15
  %81 = add i64 %80, 1
  store i64 %81, ptr %11, align 8, !tbaa !15
  br label %37, !llvm.loop !23

82:                                               ; preds = %41
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  call void @x_free(ptr noundef %83)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

declare void @x_free(ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 }

!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, !6, i64 0}
!10 = !{!"task_func_einsum_mn_np__mp_arg", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !6, i64 8}
!13 = !{!10, !6, i64 16}
!14 = !{!10, !11, i64 24}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 32}
!17 = !{!10, !11, i64 40}
!18 = !{!10, !11, i64 48}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !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"

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

; Function Attrs: nounwind uwtable
define dso_local void @task_func_einsum_mn_np__mp(ptr noundef %0) local_unnamed_addr #1 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !11
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i64, ptr %5, align 8, !tbaa !12
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load i64, ptr %7, align 8, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = getelementptr inbounds i8, ptr %0, i64 48
  %12 = load i64, ptr %11, align 8, !tbaa !15
  %invariant.gep33 = getelementptr double, ptr %4, i64 %12
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge36, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %1
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load ptr, ptr %13, align 8, !tbaa !16
  %invariant.gep = getelementptr double, ptr %14, i64 %12
  %.not37 = icmp eq i64 %8, 0
  br i1 %.not37, label %.preheader.preheader, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph
  %xtraiter = and i64 %8, 3
  %15 = icmp ult i64 %8, 4
  %unroll_iter = and i64 %8, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %min.iters.check = icmp ugt i64 %6, 3
  %ident.check.not = icmp eq i64 %10, 1
  %or.cond = select i1 %min.iters.check, i1 %ident.check.not, i1 false
  br i1 %or.cond, label %vector.ph, label %.preheader.preheader43

.preheader.preheader43:                           ; preds = %middle.block, %.preheader.preheader
  %.02935.ph = phi i64 [ 0, %.preheader.preheader ], [ %n.vec, %middle.block ]
  %xtraiter46 = and i64 %6, 3
  %lcmp.mod47.not = icmp eq i64 %xtraiter46, 0
  br i1 %lcmp.mod47.not, label %.preheader.prol.loopexit, label %.preheader.prol

.preheader.prol:                                  ; preds = %.preheader.preheader43, %.preheader.prol
  %.02935.prol = phi i64 [ %17, %.preheader.prol ], [ %.02935.ph, %.preheader.preheader43 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.preheader.prol ], [ 0, %.preheader.preheader43 ]
  %16 = mul i64 %.02935.prol, %10
  %gep34.prol = getelementptr double, ptr %invariant.gep33, i64 %16
  store double 0.000000e+00, ptr %gep34.prol, align 8, !tbaa !17
  %17 = add nuw i64 %.02935.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter46
  br i1 %prol.iter.cmp.not, label %.preheader.prol.loopexit, label %.preheader.prol, !llvm.loop !19

.preheader.prol.loopexit:                         ; preds = %.preheader.prol, %.preheader.preheader43
  %.02935.unr = phi i64 [ %.02935.ph, %.preheader.preheader43 ], [ %17, %.preheader.prol ]
  %18 = sub i64 %.02935.ph, %6
  %19 = icmp ugt i64 %18, -4
  br i1 %19, label %._crit_edge36, label %.preheader

vector.ph:                                        ; preds = %.preheader.preheader
  %n.vec = and i64 %6, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %20 = getelementptr double, ptr %invariant.gep33, i64 %index
  %21 = getelementptr i8, ptr %20, i64 16
  store <2 x double> zeroinitializer, ptr %20, align 8, !tbaa !17
  store <2 x double> zeroinitializer, ptr %21, align 8, !tbaa !17
  %index.next = add nuw i64 %index, 4
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %6, %n.vec
  br i1 %cmp.n, label %._crit_edge36, label %.preheader.preheader43

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us
  %.02935.us = phi i64 [ %56, %._crit_edge.us ], [ 0, %.preheader.us.preheader ]
  %23 = mul i64 %.02935.us, %8
  %24 = getelementptr double, ptr %2, i64 %23
  br i1 %15, label %._crit_edge.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %.032.us = phi i64 [ %48, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.02831.us = phi double [ %47, %.preheader.us.new ], [ 0.000000e+00, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %25 = getelementptr double, ptr %24, i64 %.032.us
  %26 = load double, ptr %25, align 8, !tbaa !17
  %27 = mul i64 %.032.us, %10
  %gep.us = getelementptr double, ptr %invariant.gep, i64 %27
  %28 = load double, ptr %gep.us, align 8, !tbaa !17
  %29 = tail call double @llvm.fmuladd.f64(double %26, double %28, double %.02831.us)
  %30 = or disjoint i64 %.032.us, 1
  %31 = getelementptr double, ptr %24, i64 %30
  %32 = load double, ptr %31, align 8, !tbaa !17
  %33 = mul i64 %30, %10
  %gep.us.1 = getelementptr double, ptr %invariant.gep, i64 %33
  %34 = load double, ptr %gep.us.1, align 8, !tbaa !17
  %35 = tail call double @llvm.fmuladd.f64(double %32, double %34, double %29)
  %36 = or disjoint i64 %.032.us, 2
  %37 = getelementptr double, ptr %24, i64 %36
  %38 = load double, ptr %37, align 8, !tbaa !17
  %39 = mul i64 %36, %10
  %gep.us.2 = getelementptr double, ptr %invariant.gep, i64 %39
  %40 = load double, ptr %gep.us.2, align 8, !tbaa !17
  %41 = tail call double @llvm.fmuladd.f64(double %38, double %40, double %35)
  %42 = or disjoint i64 %.032.us, 3
  %43 = getelementptr double, ptr %24, i64 %42
  %44 = load double, ptr %43, align 8, !tbaa !17
  %45 = mul i64 %42, %10
  %gep.us.3 = getelementptr double, ptr %invariant.gep, i64 %45
  %46 = load double, ptr %gep.us.3, align 8, !tbaa !17
  %47 = tail call double @llvm.fmuladd.f64(double %44, double %46, double %41)
  %48 = add nuw i64 %.032.us, 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 !25

._crit_edge.us.unr-lcssa:                         ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi double [ poison, %.preheader.us ], [ %47, %.preheader.us.new ]
  %.032.us.unr = phi i64 [ 0, %.preheader.us ], [ %48, %.preheader.us.new ]
  %.02831.us.unr = phi double [ 0.000000e+00, %.preheader.us ], [ %47, %.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
  %.032.us.epil = phi i64 [ %54, %.epil.preheader ], [ %.032.us.unr, %._crit_edge.us.unr-lcssa ]
  %.02831.us.epil = phi double [ %53, %.epil.preheader ], [ %.02831.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %49 = getelementptr double, ptr %24, i64 %.032.us.epil
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = mul i64 %.032.us.epil, %10
  %gep.us.epil = getelementptr double, ptr %invariant.gep, i64 %51
  %52 = load double, ptr %gep.us.epil, align 8, !tbaa !17
  %53 = tail call double @llvm.fmuladd.f64(double %50, double %52, double %.02831.us.epil)
  %54 = add nuw i64 %.032.us.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 !26

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %.lcssa = phi double [ %.lcssa.ph, %._crit_edge.us.unr-lcssa ], [ %53, %.epil.preheader ]
  %55 = mul i64 %.02935.us, %10
  %gep34.us = getelementptr double, ptr %invariant.gep33, i64 %55
  store double %.lcssa, ptr %gep34.us, align 8, !tbaa !17
  %56 = add nuw i64 %.02935.us, 1
  %exitcond39.not = icmp eq i64 %56, %6
  br i1 %exitcond39.not, label %._crit_edge36, label %.preheader.us, !llvm.loop !27

.preheader:                                       ; preds = %.preheader.prol.loopexit, %.preheader
  %.02935 = phi i64 [ %64, %.preheader ], [ %.02935.unr, %.preheader.prol.loopexit ]
  %57 = mul i64 %.02935, %10
  %gep34 = getelementptr double, ptr %invariant.gep33, i64 %57
  store double 0.000000e+00, ptr %gep34, align 8, !tbaa !17
  %58 = add nuw i64 %.02935, 1
  %59 = mul i64 %58, %10
  %gep34.1 = getelementptr double, ptr %invariant.gep33, i64 %59
  store double 0.000000e+00, ptr %gep34.1, align 8, !tbaa !17
  %60 = add nuw i64 %.02935, 2
  %61 = mul i64 %60, %10
  %gep34.2 = getelementptr double, ptr %invariant.gep33, i64 %61
  store double 0.000000e+00, ptr %gep34.2, align 8, !tbaa !17
  %62 = add nuw i64 %.02935, 3
  %63 = mul i64 %62, %10
  %gep34.3 = getelementptr double, ptr %invariant.gep33, i64 %63
  store double 0.000000e+00, ptr %gep34.3, align 8, !tbaa !17
  %64 = add nuw i64 %.02935, 4
  %exitcond40.not.3 = icmp eq i64 %64, %6
  br i1 %exitcond40.not.3, label %._crit_edge36, label %.preheader, !llvm.loop !28

._crit_edge36:                                    ; preds = %._crit_edge.us, %.preheader.prol.loopexit, %.preheader, %middle.block, %1
  tail call void @x_free(ptr noundef nonnull %0) #3
  ret void
}

declare void @x_free(ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { 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 #2 = { "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 }

!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 = !{!"task_func_einsum_mn_np__mp_arg", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!6, !10, i64 24}
!13 = !{!6, !10, i64 32}
!14 = !{!6, !10, i64 40}
!15 = !{!6, !10, i64 48}
!16 = !{!6, !7, i64 8}
!17 = !{!18, !18, i64 0}
!18 = !{!"double", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !20}
!27 = distinct !{!27, !22}
!28 = distinct !{!28, !22, !23}


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