; LLVM IR from mrbid/CSGO_TENSOR_TRIGGER :: GOBOT15/KERAS2C/include (k2c_core_layers)

; 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.k2c_tensor = type { ptr, i64, i64, [5 x 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @k2c_permute_dims(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [5 x i64], align 16
  %8 = alloca [5 x i64], align 16
  %9 = alloca [5 x i64], align 16
  %10 = alloca [5 x i64], align 16
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.k2c_tensor, ptr %18, i32 0, i32 1
  %20 = load i64, ptr %19, align 8, !tbaa !9
  store i64 %20, ptr %11, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !12
  br label %21

21:                                               ; preds = %34, %3
  %22 = load i64, ptr %13, align 8, !tbaa !12
  %23 = load i64, ptr %11, align 8, !tbaa !12
  %24 = icmp ult i64 %22, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %37

26:                                               ; preds = %21
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.k2c_tensor, ptr %27, i32 0, i32 3
  %29 = load i64, ptr %13, align 8, !tbaa !12
  %30 = getelementptr inbounds [5 x i64], ptr %28, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !12
  %32 = load i64, ptr %13, align 8, !tbaa !12
  %33 = getelementptr inbounds [5 x i64], ptr %10, i64 0, i64 %32
  store i64 %31, ptr %33, align 8, !tbaa !12
  br label %34

34:                                               ; preds = %26
  %35 = load i64, ptr %13, align 8, !tbaa !12
  %36 = add i64 %35, 1
  store i64 %36, ptr %13, align 8, !tbaa !12
  br label %21, !llvm.loop !13

37:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !12
  br label %38

38:                                               ; preds = %52, %37
  %39 = load i64, ptr %14, align 8, !tbaa !12
  %40 = load i64, ptr %11, align 8, !tbaa !12
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %55

43:                                               ; preds = %38
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = load i64, ptr %14, align 8, !tbaa !12
  %46 = getelementptr inbounds i64, ptr %44, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !12
  %48 = getelementptr inbounds [5 x i64], ptr %10, i64 0, i64 %47
  %49 = load i64, ptr %48, align 8, !tbaa !12
  %50 = load i64, ptr %14, align 8, !tbaa !12
  %51 = getelementptr inbounds [5 x i64], ptr %9, i64 0, i64 %50
  store i64 %49, ptr %51, align 8, !tbaa !12
  br label %52

52:                                               ; preds = %43
  %53 = load i64, ptr %14, align 8, !tbaa !12
  %54 = add i64 %53, 1
  store i64 %54, ptr %14, align 8, !tbaa !12
  br label %38, !llvm.loop !15

55:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 0, ptr %15, align 8, !tbaa !12
  br label %56

56:                                               ; preds = %101, %55
  %57 = load i64, ptr %15, align 8, !tbaa !12
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.k2c_tensor, ptr %58, i32 0, i32 2
  %60 = load i64, ptr %59, align 8, !tbaa !16
  %61 = icmp ult i64 %57, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %56
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %104

63:                                               ; preds = %56
  %64 = load i64, ptr %15, align 8, !tbaa !12
  %65 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 0
  %66 = getelementptr inbounds [5 x i64], ptr %10, i64 0, i64 0
  %67 = load i64, ptr %11, align 8, !tbaa !12
  call void @k2c_idx2sub(i64 noundef %64, ptr noundef %65, ptr noundef %66, i64 noundef %67)
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store i64 0, ptr %17, align 8, !tbaa !12
  br label %68

68:                                               ; preds = %82, %63
  %69 = load i64, ptr %17, align 8, !tbaa !12
  %70 = load i64, ptr %11, align 8, !tbaa !12
  %71 = icmp ult i64 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  store i32 11, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %85

73:                                               ; preds = %68
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load i64, ptr %17, align 8, !tbaa !12
  %76 = getelementptr inbounds i64, ptr %74, i64 %75
  %77 = load i64, ptr %76, align 8, !tbaa !12
  %78 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %77
  %79 = load i64, ptr %78, align 8, !tbaa !12
  %80 = load i64, ptr %17, align 8, !tbaa !12
  %81 = getelementptr inbounds [5 x i64], ptr %8, i64 0, i64 %80
  store i64 %79, ptr %81, align 8, !tbaa !12
  br label %82

82:                                               ; preds = %73
  %83 = load i64, ptr %17, align 8, !tbaa !12
  %84 = add i64 %83, 1
  store i64 %84, ptr %17, align 8, !tbaa !12
  br label %68, !llvm.loop !17

85:                                               ; preds = %72
  %86 = getelementptr inbounds [5 x i64], ptr %8, i64 0, i64 0
  %87 = getelementptr inbounds [5 x i64], ptr %9, i64 0, i64 0
  %88 = load i64, ptr %11, align 8, !tbaa !12
  %89 = call i64 @k2c_sub2idx(ptr noundef %86, ptr noundef %87, i64 noundef %88)
  store i64 %89, ptr %12, align 8, !tbaa !12
  %90 = load ptr, ptr %5, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.k2c_tensor, ptr %90, i32 0, i32 0
  %92 = load ptr, ptr %91, align 8, !tbaa !18
  %93 = load i64, ptr %15, align 8, !tbaa !12
  %94 = getelementptr inbounds float, ptr %92, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !19
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.k2c_tensor, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !18
  %99 = load i64, ptr %12, align 8, !tbaa !12
  %100 = getelementptr inbounds float, ptr %98, i64 %99
  store float %95, ptr %100, align 4, !tbaa !19
  br label %101

101:                                              ; preds = %85
  %102 = load i64, ptr %15, align 8, !tbaa !12
  %103 = add i64 %102, 1
  store i64 %103, ptr %15, align 8, !tbaa !12
  br label %56, !llvm.loop !21

104:                                              ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #3
  ret void
}

declare void @k2c_idx2sub(i64 noundef, ptr noundef, ptr noundef, i64 noundef) #2

declare i64 @k2c_sub2idx(ptr noundef, ptr noundef, i64 noundef) #2

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


; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress 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 @k2c_permute_dims(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #1 {
  %4 = alloca [5 x i64], align 16
  %5 = alloca [5 x i64], align 16
  %6 = alloca [5 x i64], align 16
  %7 = alloca [5 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  %8 = getelementptr inbounds i8, ptr %1, i64 8
  %9 = load i64, ptr %8, align 8, !tbaa !5
  %.fr43 = freeze i64 %9
  %.not = icmp eq i64 %.fr43, 0
  br i1 %.not, label %.preheader.thread, label %.lr.ph35.preheader

.lr.ph35.preheader:                               ; preds = %3
  %10 = getelementptr inbounds i8, ptr %1, i64 24
  %11 = shl nuw i64 %.fr43, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 %7, ptr nonnull align 8 %10, i64 %11, i1 false), !tbaa !11
  %xtraiter = and i64 %.fr43, 3
  %12 = icmp ult i64 %.fr43, 4
  br i1 %12, label %.preheader.unr-lcssa, label %.lr.ph35.preheader.new

.lr.ph35.preheader.new:                           ; preds = %.lr.ph35.preheader
  %unroll_iter = and i64 %.fr43, -4
  br label %.lr.ph35

.preheader.unr-lcssa:                             ; preds = %.lr.ph35, %.lr.ph35.preheader
  %.02934.unr = phi i64 [ 0, %.lr.ph35.preheader ], [ %86, %.lr.ph35 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader, label %.lr.ph35.epil

.lr.ph35.epil:                                    ; preds = %.preheader.unr-lcssa, %.lr.ph35.epil
  %.02934.epil = phi i64 [ %18, %.lr.ph35.epil ], [ %.02934.unr, %.preheader.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph35.epil ], [ 0, %.preheader.unr-lcssa ]
  %13 = getelementptr inbounds i64, ptr %2, i64 %.02934.epil
  %14 = load i64, ptr %13, align 8, !tbaa !11
  %15 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %14
  %16 = load i64, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 %.02934.epil
  store i64 %16, ptr %17, align 8, !tbaa !11
  %18 = add nuw i64 %.02934.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 %.preheader, label %.lr.ph35.epil, !llvm.loop !12

.preheader:                                       ; preds = %.lr.ph35.epil, %.preheader.unr-lcssa
  %19 = getelementptr inbounds i8, ptr %1, i64 16
  %20 = load i64, ptr %19, align 8, !tbaa !14
  %.not42 = icmp eq i64 %20, 0
  br i1 %.not42, label %._crit_edge40, label %.lr.ph37.us.preheader

.lr.ph37.us.preheader:                            ; preds = %.preheader
  %xtraiter51 = and i64 %.fr43, 3
  %21 = icmp ult i64 %.fr43, 4
  %unroll_iter54 = and i64 %.fr43, -4
  %lcmp.mod53.not = icmp eq i64 %xtraiter51, 0
  br label %.lr.ph37.us

.preheader.thread:                                ; preds = %3
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = load i64, ptr %22, align 8, !tbaa !14
  %.not4247 = icmp eq i64 %23, 0
  br i1 %.not4247, label %._crit_edge40, label %.lr.ph39.split

.lr.ph37.us:                                      ; preds = %.lr.ph37.us.preheader, %._crit_edge.us
  %.02838.us = phi i64 [ %60, %._crit_edge.us ], [ 0, %.lr.ph37.us.preheader ]
  call void @k2c_idx2sub(i64 noundef %.02838.us, ptr noundef nonnull %4, ptr noundef nonnull %7, i64 noundef %.fr43) #4
  br i1 %21, label %._crit_edge.us.unr-lcssa, label %.lr.ph37.us.new

.lr.ph37.us.new:                                  ; preds = %.lr.ph37.us, %.lr.ph37.us.new
  %.036.us = phi i64 [ %47, %.lr.ph37.us.new ], [ 0, %.lr.ph37.us ]
  %niter55 = phi i64 [ %niter55.next.3, %.lr.ph37.us.new ], [ 0, %.lr.ph37.us ]
  %24 = getelementptr inbounds i64, ptr %2, i64 %.036.us
  %25 = load i64, ptr %24, align 8, !tbaa !11
  %26 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 %25
  %27 = load i64, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 %.036.us
  store i64 %27, ptr %28, align 16, !tbaa !11
  %29 = or disjoint i64 %.036.us, 1
  %30 = getelementptr inbounds i64, ptr %2, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 %31
  %33 = load i64, ptr %32, align 8, !tbaa !11
  %34 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 %29
  store i64 %33, ptr %34, align 8, !tbaa !11
  %35 = or disjoint i64 %.036.us, 2
  %36 = getelementptr inbounds i64, ptr %2, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !11
  %38 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 %37
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 %35
  store i64 %39, ptr %40, align 16, !tbaa !11
  %41 = or disjoint i64 %.036.us, 3
  %42 = getelementptr inbounds i64, ptr %2, i64 %41
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !11
  %46 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 %41
  store i64 %45, ptr %46, align 8, !tbaa !11
  %47 = add nuw i64 %.036.us, 4
  %niter55.next.3 = add i64 %niter55, 4
  %niter55.ncmp.3 = icmp eq i64 %niter55.next.3, %unroll_iter54
  br i1 %niter55.ncmp.3, label %._crit_edge.us.unr-lcssa, label %.lr.ph37.us.new, !llvm.loop !15

._crit_edge.us.unr-lcssa:                         ; preds = %.lr.ph37.us.new, %.lr.ph37.us
  %.036.us.unr = phi i64 [ 0, %.lr.ph37.us ], [ %47, %.lr.ph37.us.new ]
  br i1 %lcmp.mod53.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa, %.epil.preheader
  %.036.us.epil = phi i64 [ %53, %.epil.preheader ], [ %.036.us.unr, %._crit_edge.us.unr-lcssa ]
  %epil.iter52 = phi i64 [ %epil.iter52.next, %.epil.preheader ], [ 0, %._crit_edge.us.unr-lcssa ]
  %48 = getelementptr inbounds i64, ptr %2, i64 %.036.us.epil
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = getelementptr inbounds [5 x i64], ptr %4, i64 0, i64 %49
  %51 = load i64, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds [5 x i64], ptr %5, i64 0, i64 %.036.us.epil
  store i64 %51, ptr %52, align 8, !tbaa !11
  %53 = add nuw i64 %.036.us.epil, 1
  %epil.iter52.next = add i64 %epil.iter52, 1
  %epil.iter52.cmp.not = icmp eq i64 %epil.iter52.next, %xtraiter51
  br i1 %epil.iter52.cmp.not, label %._crit_edge.us, label %.epil.preheader, !llvm.loop !17

._crit_edge.us:                                   ; preds = %.epil.preheader, %._crit_edge.us.unr-lcssa
  %54 = call i64 @k2c_sub2idx(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef %.fr43) #4
  %55 = load ptr, ptr %1, align 8, !tbaa !18
  %56 = getelementptr inbounds float, ptr %55, i64 %.02838.us
  %57 = load float, ptr %56, align 4, !tbaa !19
  %58 = load ptr, ptr %0, align 8, !tbaa !18
  %59 = getelementptr inbounds float, ptr %58, i64 %54
  store float %57, ptr %59, align 4, !tbaa !19
  %60 = add nuw i64 %.02838.us, 1
  %61 = load i64, ptr %19, align 8, !tbaa !14
  %62 = icmp ult i64 %60, %61
  br i1 %62, label %.lr.ph37.us, label %._crit_edge40, !llvm.loop !21

.lr.ph35:                                         ; preds = %.lr.ph35, %.lr.ph35.preheader.new
  %.02934 = phi i64 [ 0, %.lr.ph35.preheader.new ], [ %86, %.lr.ph35 ]
  %niter = phi i64 [ 0, %.lr.ph35.preheader.new ], [ %niter.next.3, %.lr.ph35 ]
  %63 = getelementptr inbounds i64, ptr %2, i64 %.02934
  %64 = load i64, ptr %63, align 8, !tbaa !11
  %65 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 %.02934
  store i64 %66, ptr %67, align 16, !tbaa !11
  %68 = or disjoint i64 %.02934, 1
  %69 = getelementptr inbounds i64, ptr %2, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !11
  %73 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 %68
  store i64 %72, ptr %73, align 8, !tbaa !11
  %74 = or disjoint i64 %.02934, 2
  %75 = getelementptr inbounds i64, ptr %2, i64 %74
  %76 = load i64, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 %74
  store i64 %78, ptr %79, align 16, !tbaa !11
  %80 = or disjoint i64 %.02934, 3
  %81 = getelementptr inbounds i64, ptr %2, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !11
  %83 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !11
  %85 = getelementptr inbounds [5 x i64], ptr %6, i64 0, i64 %80
  store i64 %84, ptr %85, align 8, !tbaa !11
  %86 = add nuw i64 %.02934, 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 %.preheader.unr-lcssa, label %.lr.ph35, !llvm.loop !22

._crit_edge40:                                    ; preds = %._crit_edge.us, %.lr.ph39.split, %.preheader.thread, %.preheader
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #4
  ret void

.lr.ph39.split:                                   ; preds = %.preheader.thread, %.lr.ph39.split
  %.02838 = phi i64 [ %93, %.lr.ph39.split ], [ 0, %.preheader.thread ]
  call void @k2c_idx2sub(i64 noundef %.02838, ptr noundef nonnull %4, ptr noundef nonnull %7, i64 noundef 0) #4
  %87 = call i64 @k2c_sub2idx(ptr noundef nonnull %5, ptr noundef nonnull %6, i64 noundef 0) #4
  %88 = load ptr, ptr %1, align 8, !tbaa !18
  %89 = getelementptr inbounds float, ptr %88, i64 %.02838
  %90 = load float, ptr %89, align 4, !tbaa !19
  %91 = load ptr, ptr %0, align 8, !tbaa !18
  %92 = getelementptr inbounds float, ptr %91, i64 %87
  store float %90, ptr %92, align 4, !tbaa !19
  %93 = add nuw i64 %.02838, 1
  %94 = load i64, ptr %22, align 8, !tbaa !14
  %95 = icmp ult i64 %93, %94
  br i1 %95, label %.lr.ph39.split, label %._crit_edge40, !llvm.loop !21
}

declare void @k2c_idx2sub(i64 noundef, ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i64 @k2c_sub2idx(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 8}
!6 = !{!"k2c_tensor", !7, i64 0, !10, i64 8, !10, i64 16, !8, i64 24}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.unroll.disable"}
!14 = !{!6, !10, i64 16}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !13}
!18 = !{!6, !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"float", !8, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


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