; LLVM IR from CWI-EvolutionaryIntelligence/GOMEA :: gomea/src/utils/tools.ll (ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii)

; 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: 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: mustprogress uwtable
define dso_local noundef ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #1 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %18, i64 8)
  %20 = extractvalue { i64, i1 } %19, 1
  %21 = extractvalue { i64, i1 } %19, 0
  %22 = select i1 %20, i64 -1, i64 %21
  %23 = call noalias noundef nonnull ptr @_Znam(i64 noundef %22) #5
  store ptr %23, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %41, %5
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

28:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %44

29:                                               ; preds = %24
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %31, i64 8)
  %33 = extractvalue { i64, i1 } %32, 1
  %34 = extractvalue { i64, i1 } %32, 0
  %35 = select i1 %33, i64 -1, i64 %34
  %36 = call noalias noundef nonnull ptr @_Znam(i64 noundef %35) #5
  %37 = load ptr, ptr %11, align 8, !tbaa !5
  %38 = load i32, ptr %12, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds ptr, ptr %37, i64 %39
  store ptr %36, ptr %40, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %29
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %12, align 4, !tbaa !9
  br label %24, !llvm.loop !11

44:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %107, %44
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %8, align 4, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %110

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %103, %50
  %52 = load i32, ptr %15, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %106

56:                                               ; preds = %51
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds ptr, ptr %57, i64 %59
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  %62 = load i32, ptr %15, align 4, !tbaa !9
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds double, ptr %61, i64 %63
  store double 0.000000e+00, ptr %64, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %65

65:                                               ; preds = %99, %56
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = load i32, ptr %9, align 4, !tbaa !9
  %68 = icmp slt i32 %66, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %65
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %102

70:                                               ; preds = %65
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = load i32, ptr %13, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds ptr, ptr %71, i64 %73
  %75 = load ptr, ptr %74, align 8, !tbaa !5
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds double, ptr %75, i64 %77
  %79 = load double, ptr %78, align 8, !tbaa !13
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = load i32, ptr %16, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  %84 = load ptr, ptr %83, align 8, !tbaa !5
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds double, ptr %84, i64 %86
  %88 = load double, ptr %87, align 8, !tbaa !13
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = load i32, ptr %13, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds ptr, ptr %89, i64 %91
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds double, ptr %93, i64 %95
  %97 = load double, ptr %96, align 8, !tbaa !13
  %98 = call double @llvm.fmuladd.f64(double %79, double %88, double %97)
  store double %98, ptr %96, align 8, !tbaa !13
  br label %99

99:                                               ; preds = %70
  %100 = load i32, ptr %16, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %16, align 4, !tbaa !9
  br label %65, !llvm.loop !15

102:                                              ; preds = %69
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %15, align 4, !tbaa !9
  br label %51, !llvm.loop !16

106:                                              ; preds = %55
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %13, align 4, !tbaa !9
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %13, align 4, !tbaa !9
  br label %45, !llvm.loop !17

110:                                              ; preds = %49
  %111 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret ptr %111
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin 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 #4 = { nounwind }
attributes #5 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


; 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 uwtable
define dso_local noalias noundef nonnull ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #0 {
  %6 = zext i32 %2 to i64
  %7 = icmp slt i32 %2, 0
  %8 = shl nuw nsw i64 %6, 3
  %9 = select i1 %7, i64 -1, i64 %8
  %10 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #4
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %12 = zext nneg i32 %4 to i64
  %13 = icmp slt i32 %4, 0
  %14 = shl nuw nsw i64 %12, 3
  %15 = select i1 %13, i64 -1, i64 %14
  br label %64

.preheader32:                                     ; preds = %64
  %16 = icmp sgt i32 %4, 0
  %or.cond = and i1 %11, %16
  br i1 %or.cond, label %.preheader.lr.ph.split.us, label %._crit_edge

.preheader.lr.ph.split.us:                        ; preds = %.preheader32
  %17 = icmp sgt i32 %3, 0
  %wide.trip.count62 = zext nneg i32 %4 to i64
  br i1 %17, label %.preheader.us.us.preheader, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph.split.us
  %18 = shl nuw nsw i64 %wide.trip.count62, 3
  %xtraiter = and i64 %6, 7
  %19 = icmp ult i32 %2, 8
  br i1 %19, label %._crit_edge.loopexit71.unr-lcssa, label %.preheader.us.preheader.new

.preheader.us.preheader.new:                      ; preds = %.preheader.us.preheader
  %unroll_iter = and i64 %6, 2147483640
  br label %.preheader.us

.preheader.us.us.preheader:                       ; preds = %.preheader.lr.ph.split.us
  %wide.trip.count57 = zext nneg i32 %3 to i64
  %xtraiter72 = and i64 %wide.trip.count57, 1
  %20 = icmp eq i32 %3, 1
  %unroll_iter75 = and i64 %wide.trip.count57, 2147483646
  %lcmp.mod74.not = icmp eq i64 %xtraiter72, 0
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %.preheader.us.us.preheader, %._crit_edge38.split.us.us.us
  %indvars.iv64 = phi i64 [ 0, %.preheader.us.us.preheader ], [ %indvars.iv.next65, %._crit_edge38.split.us.us.us ]
  %21 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv64
  %22 = load ptr, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds ptr, ptr %0, i64 %indvars.iv64
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  br label %.lr.ph35.us.us.us

.lr.ph35.us.us.us:                                ; preds = %._crit_edge.us.us.us, %.preheader.us.us
  %indvars.iv59 = phi i64 [ %indvars.iv.next60, %._crit_edge.us.us.us ], [ 0, %.preheader.us.us ]
  %25 = getelementptr inbounds double, ptr %22, i64 %indvars.iv59
  store double 0.000000e+00, ptr %25, align 8, !tbaa !9
  br i1 %20, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph35.us.us.us.new

.lr.ph35.us.us.us.new:                            ; preds = %.lr.ph35.us.us.us, %.lr.ph35.us.us.us.new
  %indvars.iv54 = phi i64 [ %indvars.iv.next55.1, %.lr.ph35.us.us.us.new ], [ 0, %.lr.ph35.us.us.us ]
  %26 = phi double [ %40, %.lr.ph35.us.us.us.new ], [ 0.000000e+00, %.lr.ph35.us.us.us ]
  %niter76 = phi i64 [ %niter76.next.1, %.lr.ph35.us.us.us.new ], [ 0, %.lr.ph35.us.us.us ]
  %27 = getelementptr inbounds double, ptr %24, i64 %indvars.iv54
  %28 = load double, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv54
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 %indvars.iv59
  %32 = load double, ptr %31, align 8, !tbaa !9
  %33 = tail call double @llvm.fmuladd.f64(double %28, double %32, double %26)
  store double %33, ptr %25, align 8, !tbaa !9
  %indvars.iv.next55 = or disjoint i64 %indvars.iv54, 1
  %34 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.next55
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv.next55
  %37 = load ptr, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds double, ptr %37, i64 %indvars.iv59
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = tail call double @llvm.fmuladd.f64(double %35, double %39, double %33)
  store double %40, ptr %25, align 8, !tbaa !9
  %indvars.iv.next55.1 = add nuw nsw i64 %indvars.iv54, 2
  %niter76.next.1 = add i64 %niter76, 2
  %niter76.ncmp.1 = icmp eq i64 %niter76.next.1, %unroll_iter75
  br i1 %niter76.ncmp.1, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph35.us.us.us.new, !llvm.loop !11

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.lr.ph35.us.us.us.new, %.lr.ph35.us.us.us
  %indvars.iv54.unr = phi i64 [ 0, %.lr.ph35.us.us.us ], [ %indvars.iv.next55.1, %.lr.ph35.us.us.us.new ]
  %.unr = phi double [ 0.000000e+00, %.lr.ph35.us.us.us ], [ %40, %.lr.ph35.us.us.us.new ]
  br i1 %lcmp.mod74.not, label %._crit_edge.us.us.us, label %._crit_edge.us.us.us.epilog-lcssa

._crit_edge.us.us.us.epilog-lcssa:                ; preds = %._crit_edge.us.us.us.unr-lcssa
  %41 = getelementptr inbounds double, ptr %24, i64 %indvars.iv54.unr
  %42 = load double, ptr %41, align 8, !tbaa !9
  %43 = getelementptr inbounds ptr, ptr %1, i64 %indvars.iv54.unr
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds double, ptr %44, i64 %indvars.iv59
  %46 = load double, ptr %45, align 8, !tbaa !9
  %47 = tail call double @llvm.fmuladd.f64(double %42, double %46, double %.unr)
  store double %47, ptr %25, align 8, !tbaa !9
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.unr-lcssa, %._crit_edge.us.us.us.epilog-lcssa
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count62
  br i1 %exitcond63.not, label %._crit_edge38.split.us.us.us, label %.lr.ph35.us.us.us, !llvm.loop !13

._crit_edge38.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond68.not = icmp eq i64 %indvars.iv.next65, %6
  br i1 %exitcond68.not, label %._crit_edge, label %.preheader.us.us, !llvm.loop !14

.preheader.us:                                    ; preds = %.preheader.us, %.preheader.us.preheader.new
  %indvars.iv49 = phi i64 [ 0, %.preheader.us.preheader.new ], [ %indvars.iv.next50.7, %.preheader.us ]
  %niter = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter.next.7, %.preheader.us ]
  %48 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv49
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %49, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50 = or disjoint i64 %indvars.iv49, 1
  %50 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.1 = or disjoint i64 %indvars.iv49, 2
  %52 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.1
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %53, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.2 = or disjoint i64 %indvars.iv49, 3
  %54 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.2
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %55, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.3 = or disjoint i64 %indvars.iv49, 4
  %56 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.3
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %57, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.4 = or disjoint i64 %indvars.iv49, 5
  %58 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.4
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %59, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.5 = or disjoint i64 %indvars.iv49, 6
  %60 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.5
  %61 = load ptr, ptr %60, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %61, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.6 = or disjoint i64 %indvars.iv49, 7
  %62 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next50.6
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %63, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.7 = add nuw nsw i64 %indvars.iv49, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge.loopexit71.unr-lcssa, label %.preheader.us, !llvm.loop !14

64:                                               ; preds = %.lr.ph, %64
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %64 ]
  %65 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %15) #4
  %66 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv
  store ptr %65, ptr %66, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %.preheader32, label %64, !llvm.loop !15

._crit_edge.loopexit71.unr-lcssa:                 ; preds = %.preheader.us, %.preheader.us.preheader
  %indvars.iv49.unr = phi i64 [ 0, %.preheader.us.preheader ], [ %indvars.iv.next50.7, %.preheader.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.preheader.us.epil

.preheader.us.epil:                               ; preds = %._crit_edge.loopexit71.unr-lcssa, %.preheader.us.epil
  %indvars.iv49.epil = phi i64 [ %indvars.iv.next50.epil, %.preheader.us.epil ], [ %indvars.iv49.unr, %._crit_edge.loopexit71.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.us.epil ], [ 0, %._crit_edge.loopexit71.unr-lcssa ]
  %67 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv49.epil
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %68, i8 0, i64 %18, i1 false), !tbaa !9
  %indvars.iv.next50.epil = add nuw nsw i64 %indvars.iv49.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, label %.preheader.us.epil, !llvm.loop !16

._crit_edge:                                      ; preds = %._crit_edge.loopexit71.unr-lcssa, %.preheader.us.epil, %._crit_edge38.split.us.us.us, %5, %.preheader32
  ret ptr %10
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { nobuiltin 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { builtin 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


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