; LLVM IR from aferikoglou/GenHLSOptimizer :: dataset/rodinia-backprop-2-pipeline-forward (backprop_kernel)

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

; Function Attrs: mustprogress uwtable
define dso_local void @workload(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [16 x float], align 16
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [65536 x float], align 16
  %13 = alloca [8192 x [16 x float]], align 16
  %14 = alloca [16 x float], align 16
  %15 = alloca float, align 4
  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
  br label %16

16:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  br label %17

17:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 262144, ptr %12) #4
  br label %18

18:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 524288, ptr %13) #4
  br label %19

19:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 64, ptr %14) #4
  %20 = getelementptr inbounds [65536 x float], ptr %12, i64 0, i64 0
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds float, ptr %21, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 4 %22, i64 262144, i1 false)
  %23 = getelementptr inbounds [16 x float], ptr %7, i64 0, i64 0
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 4 %24, i64 64, i1 false)
  br label %25

25:                                               ; preds = %19
  br label %26

26:                                               ; preds = %25
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %79, %26
  %28 = load i32, ptr %10, align 4, !tbaa !9
  %29 = icmp slt i32 %28, 65537
  br i1 %29, label %30, label %82

30:                                               ; preds = %27
  %31 = getelementptr inbounds [8192 x [16 x float]], ptr %13, i64 0, i64 0
  %32 = getelementptr inbounds [16 x float], ptr %31, i64 0, i64 0
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !9
  %35 = mul nsw i32 %34, 16
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds float, ptr %33, i64 %36
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %32, ptr align 4 %37, i64 524288, i1 false)
  br label %38

38:                                               ; preds = %30
  br label %39

39:                                               ; preds = %38
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %75, %39
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = icmp slt i32 %41, 8192
  br i1 %42, label %43, label %78

43:                                               ; preds = %40
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %71, %45
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = icmp slt i32 %47, 16
  br i1 %48, label %49, label %74

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [8192 x [16 x float]], ptr %13, i64 0, i64 %51
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [16 x float], ptr %52, i64 0, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !11
  %57 = load i32, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = add nsw i32 %57, %58
  %60 = sub nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [65536 x float], ptr %12, i64 0, i64 %61
  %63 = load float, ptr %62, align 4, !tbaa !11
  %64 = fmul float %56, %63
  store float %64, ptr %15, align 4, !tbaa !11
  %65 = load float, ptr %15, align 4, !tbaa !11
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [16 x float], ptr %7, i64 0, i64 %67
  %69 = load float, ptr %68, align 4, !tbaa !11
  %70 = fadd float %69, %65
  store float %70, ptr %68, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %71

71:                                               ; preds = %49
  %72 = load i32, ptr %8, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %8, align 4, !tbaa !9
  br label %46, !llvm.loop !13

74:                                               ; preds = %46
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !9
  br label %40, !llvm.loop !15

78:                                               ; preds = %40
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %10, align 4, !tbaa !9
  %81 = add nsw i32 %80, 8192
  store i32 %81, ptr %10, align 4, !tbaa !9
  br label %27, !llvm.loop !16

82:                                               ; preds = %27
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %85

85:                                               ; preds = %102, %84
  %86 = load i32, ptr %8, align 4, !tbaa !9
  %87 = icmp slt i32 %86, 16
  br i1 %87, label %88, label %105

88:                                               ; preds = %85
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [16 x float], ptr %7, i64 0, i64 %90
  %92 = load float, ptr %91, align 4, !tbaa !11
  %93 = fneg float %92
  %94 = call noundef float @_ZSt3expf(float noundef %93)
  %95 = fpext float %94 to double
  %96 = fadd double 1.000000e+00, %95
  %97 = fdiv double 1.000000e+00, %96
  %98 = fptrunc double %97 to float
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [16 x float], ptr %14, i64 0, i64 %100
  store float %98, ptr %101, align 4, !tbaa !11
  br label %102

102:                                              ; preds = %88
  %103 = load i32, ptr %8, align 4, !tbaa !9
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %8, align 4, !tbaa !9
  br label %85, !llvm.loop !17

105:                                              ; preds = %85
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds float, ptr %106, i64 1
  %108 = getelementptr inbounds [16 x float], ptr %14, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 16 %108, i64 64, i1 false)
  call void @llvm.lifetime.end.p0(i64 64, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 524288, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 262144, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #4
  ret void
}

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

; 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) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) #3

attributes #0 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !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 nounwind uwtable
define dso_local void @workload(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef readonly %2) local_unnamed_addr #0 {
  %4 = alloca [65536 x float], align 16
  %5 = alloca [8192 x [16 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 262144, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 524288, ptr nonnull %5) #4
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(262144) %4, ptr noundef nonnull align 4 dereferenceable(262144) %6, i64 262144, i1 false)
  %7 = load <16 x float>, ptr %2, align 4
  %8 = getelementptr inbounds i8, ptr %2, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %8, i64 524288, i1 false)
  br label %.preheader22

.preheader22:                                     ; preds = %3, %.preheader22
  %indvars.iv = phi i64 [ 0, %3 ], [ %indvars.iv.next, %.preheader22 ]
  %9 = phi <16 x float> [ %7, %3 ], [ %17, %.preheader22 ]
  %10 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %indvars.iv
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv, i64 0
  %13 = load <16 x float>, ptr %12, align 16, !tbaa !5
  %14 = insertelement <16 x float> poison, float %11, i64 0
  %15 = shufflevector <16 x float> %14, <16 x float> poison, <16 x i32> zeroinitializer
  %16 = fmul <16 x float> %13, %15
  %17 = fadd <16 x float> %9, %16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8192
  br i1 %exitcond.not, label %18, label %.preheader22, !llvm.loop !9

18:                                               ; preds = %.preheader22
  %19 = getelementptr inbounds i8, ptr %2, i64 524352
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %19, i64 524288, i1 false)
  br label %.preheader22.1

.preheader22.1:                                   ; preds = %.preheader22.1, %18
  %indvars.iv.1 = phi i64 [ 0, %18 ], [ %indvars.iv.next.1, %.preheader22.1 ]
  %20 = phi <16 x float> [ %17, %18 ], [ %29, %.preheader22.1 ]
  %21 = add nuw nsw i64 %indvars.iv.1, 8192
  %22 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %21
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.1, i64 0
  %25 = load <16 x float>, ptr %24, align 16, !tbaa !5
  %26 = insertelement <16 x float> poison, float %23, i64 0
  %27 = shufflevector <16 x float> %26, <16 x float> poison, <16 x i32> zeroinitializer
  %28 = fmul <16 x float> %25, %27
  %29 = fadd <16 x float> %20, %28
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 8192
  br i1 %exitcond.not.1, label %30, label %.preheader22.1, !llvm.loop !9

30:                                               ; preds = %.preheader22.1
  %31 = getelementptr inbounds i8, ptr %2, i64 1048640
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %31, i64 524288, i1 false)
  br label %.preheader22.2

.preheader22.2:                                   ; preds = %.preheader22.2, %30
  %indvars.iv.2 = phi i64 [ 0, %30 ], [ %indvars.iv.next.2, %.preheader22.2 ]
  %32 = phi <16 x float> [ %29, %30 ], [ %41, %.preheader22.2 ]
  %33 = add nuw nsw i64 %indvars.iv.2, 16384
  %34 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %33
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.2, i64 0
  %37 = load <16 x float>, ptr %36, align 16, !tbaa !5
  %38 = insertelement <16 x float> poison, float %35, i64 0
  %39 = shufflevector <16 x float> %38, <16 x float> poison, <16 x i32> zeroinitializer
  %40 = fmul <16 x float> %37, %39
  %41 = fadd <16 x float> %32, %40
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.not.2 = icmp eq i64 %indvars.iv.next.2, 8192
  br i1 %exitcond.not.2, label %42, label %.preheader22.2, !llvm.loop !9

42:                                               ; preds = %.preheader22.2
  %43 = getelementptr inbounds i8, ptr %2, i64 1572928
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %43, i64 524288, i1 false)
  br label %.preheader22.3

.preheader22.3:                                   ; preds = %.preheader22.3, %42
  %indvars.iv.3 = phi i64 [ 0, %42 ], [ %indvars.iv.next.3, %.preheader22.3 ]
  %44 = phi <16 x float> [ %41, %42 ], [ %53, %.preheader22.3 ]
  %45 = add nuw nsw i64 %indvars.iv.3, 24576
  %46 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %45
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.3, i64 0
  %49 = load <16 x float>, ptr %48, align 16, !tbaa !5
  %50 = insertelement <16 x float> poison, float %47, i64 0
  %51 = shufflevector <16 x float> %50, <16 x float> poison, <16 x i32> zeroinitializer
  %52 = fmul <16 x float> %49, %51
  %53 = fadd <16 x float> %44, %52
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, 8192
  br i1 %exitcond.not.3, label %54, label %.preheader22.3, !llvm.loop !9

54:                                               ; preds = %.preheader22.3
  %55 = getelementptr inbounds i8, ptr %2, i64 2097216
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %55, i64 524288, i1 false)
  br label %.preheader22.4

.preheader22.4:                                   ; preds = %.preheader22.4, %54
  %indvars.iv.4 = phi i64 [ 0, %54 ], [ %indvars.iv.next.4, %.preheader22.4 ]
  %56 = phi <16 x float> [ %53, %54 ], [ %65, %.preheader22.4 ]
  %57 = add nuw nsw i64 %indvars.iv.4, 32768
  %58 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %57
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.4, i64 0
  %61 = load <16 x float>, ptr %60, align 16, !tbaa !5
  %62 = insertelement <16 x float> poison, float %59, i64 0
  %63 = shufflevector <16 x float> %62, <16 x float> poison, <16 x i32> zeroinitializer
  %64 = fmul <16 x float> %61, %63
  %65 = fadd <16 x float> %56, %64
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.not.4 = icmp eq i64 %indvars.iv.next.4, 8192
  br i1 %exitcond.not.4, label %66, label %.preheader22.4, !llvm.loop !9

66:                                               ; preds = %.preheader22.4
  %67 = getelementptr inbounds i8, ptr %2, i64 2621504
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %67, i64 524288, i1 false)
  br label %.preheader22.5

.preheader22.5:                                   ; preds = %.preheader22.5, %66
  %indvars.iv.5 = phi i64 [ 0, %66 ], [ %indvars.iv.next.5, %.preheader22.5 ]
  %68 = phi <16 x float> [ %65, %66 ], [ %77, %.preheader22.5 ]
  %69 = add nuw nsw i64 %indvars.iv.5, 40960
  %70 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %69
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.5, i64 0
  %73 = load <16 x float>, ptr %72, align 16, !tbaa !5
  %74 = insertelement <16 x float> poison, float %71, i64 0
  %75 = shufflevector <16 x float> %74, <16 x float> poison, <16 x i32> zeroinitializer
  %76 = fmul <16 x float> %73, %75
  %77 = fadd <16 x float> %68, %76
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %exitcond.not.5 = icmp eq i64 %indvars.iv.next.5, 8192
  br i1 %exitcond.not.5, label %78, label %.preheader22.5, !llvm.loop !9

78:                                               ; preds = %.preheader22.5
  %79 = getelementptr inbounds i8, ptr %2, i64 3145792
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %79, i64 524288, i1 false)
  br label %.preheader22.6

.preheader22.6:                                   ; preds = %.preheader22.6, %78
  %indvars.iv.6 = phi i64 [ 0, %78 ], [ %indvars.iv.next.6, %.preheader22.6 ]
  %80 = phi <16 x float> [ %77, %78 ], [ %89, %.preheader22.6 ]
  %81 = add nuw nsw i64 %indvars.iv.6, 49152
  %82 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.6, i64 0
  %85 = load <16 x float>, ptr %84, align 16, !tbaa !5
  %86 = insertelement <16 x float> poison, float %83, i64 0
  %87 = shufflevector <16 x float> %86, <16 x float> poison, <16 x i32> zeroinitializer
  %88 = fmul <16 x float> %85, %87
  %89 = fadd <16 x float> %80, %88
  %indvars.iv.next.6 = add nuw nsw i64 %indvars.iv.6, 1
  %exitcond.not.6 = icmp eq i64 %indvars.iv.next.6, 8192
  br i1 %exitcond.not.6, label %90, label %.preheader22.6, !llvm.loop !9

90:                                               ; preds = %.preheader22.6
  %91 = getelementptr inbounds i8, ptr %2, i64 3670080
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(524288) %5, ptr noundef nonnull align 4 dereferenceable(524288) %91, i64 524288, i1 false)
  br label %.preheader22.7

.preheader22.7:                                   ; preds = %.preheader22.7, %90
  %indvars.iv.7 = phi i64 [ 0, %90 ], [ %indvars.iv.next.7, %.preheader22.7 ]
  %92 = phi <16 x float> [ %89, %90 ], [ %101, %.preheader22.7 ]
  %93 = add nuw nsw i64 %indvars.iv.7, 57344
  %94 = getelementptr inbounds [65536 x float], ptr %4, i64 0, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = getelementptr inbounds [8192 x [16 x float]], ptr %5, i64 0, i64 %indvars.iv.7, i64 0
  %97 = load <16 x float>, ptr %96, align 16, !tbaa !5
  %98 = insertelement <16 x float> poison, float %95, i64 0
  %99 = shufflevector <16 x float> %98, <16 x float> poison, <16 x i32> zeroinitializer
  %100 = fmul <16 x float> %97, %99
  %101 = fadd <16 x float> %92, %100
  %indvars.iv.next.7 = add nuw nsw i64 %indvars.iv.7, 1
  %exitcond.not.7 = icmp eq i64 %indvars.iv.next.7, 8192
  br i1 %exitcond.not.7, label %.preheader.preheader, label %.preheader22.7, !llvm.loop !9

.preheader.preheader:                             ; preds = %.preheader22.7
  %102 = extractelement <16 x float> %101, i64 0
  %103 = fneg float %102
  %104 = tail call noundef float @_ZSt3expf(float noundef %103)
  %105 = extractelement <16 x float> %101, i64 1
  %106 = fneg float %105
  %107 = tail call noundef float @_ZSt3expf(float noundef %106)
  %108 = extractelement <16 x float> %101, i64 2
  %109 = fneg float %108
  %110 = tail call noundef float @_ZSt3expf(float noundef %109)
  %111 = extractelement <16 x float> %101, i64 3
  %112 = fneg float %111
  %113 = tail call noundef float @_ZSt3expf(float noundef %112)
  %114 = extractelement <16 x float> %101, i64 4
  %115 = fneg float %114
  %116 = tail call noundef float @_ZSt3expf(float noundef %115)
  %117 = extractelement <16 x float> %101, i64 5
  %118 = fneg float %117
  %119 = tail call noundef float @_ZSt3expf(float noundef %118)
  %120 = extractelement <16 x float> %101, i64 6
  %121 = fneg float %120
  %122 = tail call noundef float @_ZSt3expf(float noundef %121)
  %123 = extractelement <16 x float> %101, i64 7
  %124 = fneg float %123
  %125 = tail call noundef float @_ZSt3expf(float noundef %124)
  %126 = extractelement <16 x float> %101, i64 8
  %127 = fneg float %126
  %128 = tail call noundef float @_ZSt3expf(float noundef %127)
  %129 = extractelement <16 x float> %101, i64 9
  %130 = fneg float %129
  %131 = tail call noundef float @_ZSt3expf(float noundef %130)
  %132 = extractelement <16 x float> %101, i64 10
  %133 = fneg float %132
  %134 = tail call noundef float @_ZSt3expf(float noundef %133)
  %135 = extractelement <16 x float> %101, i64 11
  %136 = fneg float %135
  %137 = tail call noundef float @_ZSt3expf(float noundef %136)
  %138 = extractelement <16 x float> %101, i64 12
  %139 = fneg float %138
  %140 = tail call noundef float @_ZSt3expf(float noundef %139)
  %141 = extractelement <16 x float> %101, i64 13
  %142 = fneg float %141
  %143 = tail call noundef float @_ZSt3expf(float noundef %142)
  %144 = extractelement <16 x float> %101, i64 14
  %145 = fneg float %144
  %146 = tail call noundef float @_ZSt3expf(float noundef %145)
  %147 = extractelement <16 x float> %101, i64 15
  %148 = fneg float %147
  %149 = tail call noundef float @_ZSt3expf(float noundef %148)
  %150 = getelementptr inbounds i8, ptr %1, i64 4
  %151 = insertelement <4 x float> poison, float %104, i64 0
  %152 = insertelement <4 x float> %151, float %107, i64 1
  %153 = insertelement <4 x float> %152, float %110, i64 2
  %154 = insertelement <4 x float> %153, float %113, i64 3
  %155 = fpext <4 x float> %154 to <4 x double>
  %156 = fadd <4 x double> %155, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %157 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %156
  %158 = fptrunc <4 x double> %157 to <4 x float>
  store <4 x float> %158, ptr %150, align 4
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 20
  %159 = insertelement <4 x float> poison, float %116, i64 0
  %160 = insertelement <4 x float> %159, float %119, i64 1
  %161 = insertelement <4 x float> %160, float %122, i64 2
  %162 = insertelement <4 x float> %161, float %125, i64 3
  %163 = fpext <4 x float> %162 to <4 x double>
  %164 = fadd <4 x double> %163, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %165 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %164
  %166 = fptrunc <4 x double> %165 to <4 x float>
  store <4 x float> %166, ptr %.sroa.7.0..sroa_idx, align 4
  %.sroa.11.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 36
  %167 = insertelement <4 x float> poison, float %128, i64 0
  %168 = insertelement <4 x float> %167, float %131, i64 1
  %169 = insertelement <4 x float> %168, float %134, i64 2
  %170 = insertelement <4 x float> %169, float %137, i64 3
  %171 = fpext <4 x float> %170 to <4 x double>
  %172 = fadd <4 x double> %171, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %173 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %172
  %174 = fptrunc <4 x double> %173 to <4 x float>
  store <4 x float> %174, ptr %.sroa.11.0..sroa_idx, align 4
  %.sroa.15.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 52
  %175 = insertelement <4 x float> poison, float %140, i64 0
  %176 = insertelement <4 x float> %175, float %143, i64 1
  %177 = insertelement <4 x float> %176, float %146, i64 2
  %178 = insertelement <4 x float> %177, float %149, i64 3
  %179 = fpext <4 x float> %178 to <4 x double>
  %180 = fadd <4 x double> %179, <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>
  %181 = fdiv <4 x double> <double 1.000000e+00, double 1.000000e+00, double 1.000000e+00, double 1.000000e+00>, %180
  %182 = fptrunc <4 x double> %181 to <4 x float>
  store <4 x float> %182, ptr %.sroa.15.0..sroa_idx, align 4
  call void @llvm.lifetime.end.p0(i64 524288, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 262144, ptr nonnull %4) #4
  ret void
}

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

; Function Attrs: mustprogress 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) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3expf(float noundef) local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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