; LLVM IR from ritikbanger/Hacktoberfest2022-DSA :: 30. CPP Programs (matrixmul)

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

@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1

declare i32 @printf(ptr noundef, ...) #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @displaymatrix(ptr noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @multmatrix(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %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 [100 x [100 x i32]], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = 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 40000, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %15

15:                                               ; preds = %69, %5
  %16 = load i32, ptr %12, align 4, !tbaa !9
  %17 = load i32, ptr %8, align 4, !tbaa !9
  %18 = icmp slt i32 %16, %17
  br i1 %18, label %19, label %72

19:                                               ; preds = %15
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %65, %19
  %21 = load i32, ptr %13, align 4, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %24, label %68

24:                                               ; preds = %20
  %25 = load i32, ptr %12, align 4, !tbaa !9
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [100 x [100 x i32]], ptr %11, i64 0, i64 %26
  %28 = load i32, ptr %13, align 4, !tbaa !9
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [100 x i32], ptr %27, i64 0, i64 %29
  store i32 0, ptr %30, align 4, !tbaa !9
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %31

31:                                               ; preds = %61, %24
  %32 = load i32, ptr %14, align 4, !tbaa !9
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %35, label %64

35:                                               ; preds = %31
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load i32, ptr %12, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [100 x i32], ptr %36, i64 %38
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [100 x i32], ptr %39, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = load i32, ptr %14, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100 x i32], ptr %44, i64 %46
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100 x i32], ptr %47, i64 0, i64 %49
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = mul nsw i32 %43, %51
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [100 x [100 x i32]], ptr %11, i64 0, i64 %54
  %56 = load i32, ptr %13, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x i32], ptr %55, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = add nsw i32 %59, %52
  store i32 %60, ptr %58, align 4, !tbaa !9
  br label %61

61:                                               ; preds = %35
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %14, align 4, !tbaa !9
  br label %31, !llvm.loop !11

64:                                               ; preds = %31
  br label %65

65:                                               ; preds = %64
  %66 = load i32, ptr %13, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %13, align 4, !tbaa !9
  br label %20, !llvm.loop !13

68:                                               ; preds = %20
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %12, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %12, align 4, !tbaa !9
  br label %15, !llvm.loop !14

72:                                               ; preds = %15
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  %74 = getelementptr inbounds [100 x [100 x i32]], ptr %11, i64 0, i64 0
  %75 = load i32, ptr %8, align 4, !tbaa !9
  %76 = load i32, ptr %10, align 4, !tbaa !9
  call void @displaymatrix(ptr noundef %74, i32 noundef %75, i32 noundef %76)
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 40000, ptr %11) #3
  ret void
}

attributes #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 = { 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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !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"

@.str.5 = external hidden unnamed_addr constant [22 x i8], align 1

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local void @displaymatrix(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @multmatrix(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca [100 x [100 x i32]], align 16
  call void @llvm.lifetime.start.p0(i64 40000, ptr nonnull %6) #5
  %7 = icmp sgt i32 %2, 0
  %8 = icmp sgt i32 %4, 0
  %or.cond = and i1 %7, %8
  br i1 %or.cond, label %.preheader.lr.ph.split.us, label %._crit_edge

.preheader.lr.ph.split.us:                        ; preds = %5
  %9 = icmp sgt i32 %3, 0
  br i1 %9, label %.preheader.us.us.preheader, label %.preheader.us.preheader

.preheader.us.preheader:                          ; preds = %.preheader.lr.ph.split.us
  %10 = zext nneg i32 %4 to i64
  %11 = shl nuw nsw i64 %10, 2
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 7
  %12 = icmp ult i32 %2, 8
  br i1 %12, label %._crit_edge.loopexit58.unr-lcssa, label %.preheader.us.preheader.new

.preheader.us.preheader.new:                      ; preds = %.preheader.us.preheader
  %unroll_iter = and i64 %wide.trip.count, 2147483640
  %invariant.gep = getelementptr i8, ptr %6, i64 400
  %invariant.gep62 = getelementptr i8, ptr %6, i64 800
  %invariant.gep64 = getelementptr i8, ptr %6, i64 1200
  %invariant.gep66 = getelementptr i8, ptr %6, i64 1600
  %invariant.gep68 = getelementptr i8, ptr %6, i64 2000
  %invariant.gep70 = getelementptr i8, ptr %6, i64 2400
  %invariant.gep72 = getelementptr i8, ptr %6, i64 2800
  br label %.preheader.us

.preheader.us.us.preheader:                       ; preds = %.preheader.lr.ph.split.us
  %wide.trip.count49 = zext nneg i32 %2 to i64
  %wide.trip.count44 = zext nneg i32 %4 to i64
  %wide.trip.count36 = zext nneg i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 8
  %n.vec = and i64 %wide.trip.count36, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count36
  br label %.preheader.us.us

.preheader.us.us:                                 ; preds = %.preheader.us.us.preheader, %._crit_edge26.split.us.us.us
  %indvars.iv46 = phi i64 [ 0, %.preheader.us.us.preheader ], [ %indvars.iv.next47, %._crit_edge26.split.us.us.us ]
  br label %.lr.ph.us.us.us

.lr.ph.us.us.us:                                  ; preds = %._crit_edge.us.us.us, %.preheader.us.us
  %indvars.iv41 = phi i64 [ %indvars.iv.next42, %._crit_edge.us.us.us ], [ 0, %.preheader.us.us ]
  %13 = getelementptr inbounds [100 x [100 x i32]], ptr %6, i64 0, i64 %indvars.iv46, i64 %indvars.iv41
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us.us.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us.us.us ]
  %vec.phi = phi <4 x i32> [ %49, %vector.body ], [ zeroinitializer, %.lr.ph.us.us.us ]
  %vec.phi53 = phi <4 x i32> [ %50, %vector.body ], [ zeroinitializer, %.lr.ph.us.us.us ]
  %14 = or disjoint i64 %index, 1
  %15 = or disjoint i64 %index, 2
  %16 = or disjoint i64 %index, 3
  %17 = or disjoint i64 %index, 4
  %18 = or disjoint i64 %index, 5
  %19 = or disjoint i64 %index, 6
  %20 = or disjoint i64 %index, 7
  %21 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvars.iv46, i64 %index
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load = load <4 x i32>, ptr %21, align 4, !tbaa !5
  %wide.load54 = load <4 x i32>, ptr %22, align 4, !tbaa !5
  %23 = getelementptr inbounds [100 x i32], ptr %1, i64 %index, i64 %indvars.iv41
  %24 = getelementptr inbounds [100 x i32], ptr %1, i64 %14, i64 %indvars.iv41
  %25 = getelementptr inbounds [100 x i32], ptr %1, i64 %15, i64 %indvars.iv41
  %26 = getelementptr inbounds [100 x i32], ptr %1, i64 %16, i64 %indvars.iv41
  %27 = getelementptr inbounds [100 x i32], ptr %1, i64 %17, i64 %indvars.iv41
  %28 = getelementptr inbounds [100 x i32], ptr %1, i64 %18, i64 %indvars.iv41
  %29 = getelementptr inbounds [100 x i32], ptr %1, i64 %19, i64 %indvars.iv41
  %30 = getelementptr inbounds [100 x i32], ptr %1, i64 %20, i64 %indvars.iv41
  %31 = load i32, ptr %23, align 4, !tbaa !5
  %32 = load i32, ptr %24, align 4, !tbaa !5
  %33 = load i32, ptr %25, align 4, !tbaa !5
  %34 = load i32, ptr %26, align 4, !tbaa !5
  %35 = insertelement <4 x i32> poison, i32 %31, i64 0
  %36 = insertelement <4 x i32> %35, i32 %32, i64 1
  %37 = insertelement <4 x i32> %36, i32 %33, i64 2
  %38 = insertelement <4 x i32> %37, i32 %34, i64 3
  %39 = load i32, ptr %27, align 4, !tbaa !5
  %40 = load i32, ptr %28, align 4, !tbaa !5
  %41 = load i32, ptr %29, align 4, !tbaa !5
  %42 = load i32, ptr %30, align 4, !tbaa !5
  %43 = insertelement <4 x i32> poison, i32 %39, i64 0
  %44 = insertelement <4 x i32> %43, i32 %40, i64 1
  %45 = insertelement <4 x i32> %44, i32 %41, i64 2
  %46 = insertelement <4 x i32> %45, i32 %42, i64 3
  %47 = mul nsw <4 x i32> %38, %wide.load
  %48 = mul nsw <4 x i32> %46, %wide.load54
  %49 = add <4 x i32> %vec.phi, %47
  %50 = add <4 x i32> %vec.phi53, %48
  %index.next = add nuw i64 %index, 8
  %51 = icmp eq i64 %index.next, %n.vec
  br i1 %51, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %50, %49
  %52 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  br i1 %cmp.n, label %._crit_edge.us.us.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph.us.us.us
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.us.us.us ], [ %n.vec, %middle.block ]
  %.ph = phi i32 [ 0, %.lr.ph.us.us.us ], [ %52, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %53 = phi i32 [ %59, %scalar.ph ], [ %.ph, %scalar.ph.preheader ]
  %54 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvars.iv46, i64 %indvars.iv
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = getelementptr inbounds [100 x i32], ptr %1, i64 %indvars.iv, i64 %indvars.iv41
  %57 = load i32, ptr %56, align 4, !tbaa !5
  %58 = mul nsw i32 %57, %55
  %59 = add nsw i32 %53, %58
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond37.not = icmp eq i64 %indvars.iv.next, %wide.trip.count36
  br i1 %exitcond37.not, label %._crit_edge.us.us.us, label %scalar.ph, !llvm.loop !13

._crit_edge.us.us.us:                             ; preds = %scalar.ph, %middle.block
  %.lcssa = phi i32 [ %52, %middle.block ], [ %59, %scalar.ph ]
  store i32 %.lcssa, ptr %13, align 4, !tbaa !5
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next42, %wide.trip.count44
  br i1 %exitcond45.not, label %._crit_edge26.split.us.us.us, label %.lr.ph.us.us.us, !llvm.loop !14

._crit_edge26.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %indvars.iv.next47 = add nuw nsw i64 %indvars.iv46, 1
  %exitcond50.not = icmp eq i64 %indvars.iv.next47, %wide.trip.count49
  br i1 %exitcond50.not, label %._crit_edge, label %.preheader.us.us, !llvm.loop !15

.preheader.us:                                    ; preds = %.preheader.us, %.preheader.us.preheader.new
  %indvar = phi i64 [ 0, %.preheader.us.preheader.new ], [ %indvar.next.7, %.preheader.us ]
  %niter = phi i64 [ 0, %.preheader.us.preheader.new ], [ %niter.next.7, %.preheader.us ]
  %60 = mul nuw nsw i64 %indvar, 400
  %scevgep = getelementptr i8, ptr %6, i64 %60
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep, i8 0, i64 %11, i1 false), !tbaa !5
  %61 = mul nuw i64 %indvar, 400
  %gep = getelementptr i8, ptr %invariant.gep, i64 %61
  call void @llvm.memset.p0.i64(ptr align 16 %gep, i8 0, i64 %11, i1 false), !tbaa !5
  %62 = mul nuw i64 %indvar, 400
  %gep63 = getelementptr i8, ptr %invariant.gep62, i64 %62
  call void @llvm.memset.p0.i64(ptr align 16 %gep63, i8 0, i64 %11, i1 false), !tbaa !5
  %63 = mul nuw i64 %indvar, 400
  %gep65 = getelementptr i8, ptr %invariant.gep64, i64 %63
  call void @llvm.memset.p0.i64(ptr align 16 %gep65, i8 0, i64 %11, i1 false), !tbaa !5
  %64 = mul nuw i64 %indvar, 400
  %gep67 = getelementptr i8, ptr %invariant.gep66, i64 %64
  call void @llvm.memset.p0.i64(ptr align 16 %gep67, i8 0, i64 %11, i1 false), !tbaa !5
  %65 = mul nuw i64 %indvar, 400
  %gep69 = getelementptr i8, ptr %invariant.gep68, i64 %65
  call void @llvm.memset.p0.i64(ptr align 16 %gep69, i8 0, i64 %11, i1 false), !tbaa !5
  %66 = mul nuw i64 %indvar, 400
  %gep71 = getelementptr i8, ptr %invariant.gep70, i64 %66
  call void @llvm.memset.p0.i64(ptr align 16 %gep71, i8 0, i64 %11, i1 false), !tbaa !5
  %67 = mul nuw i64 %indvar, 400
  %gep73 = getelementptr i8, ptr %invariant.gep72, i64 %67
  call void @llvm.memset.p0.i64(ptr align 16 %gep73, i8 0, i64 %11, i1 false), !tbaa !5
  %indvar.next.7 = add nuw nsw i64 %indvar, 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.loopexit58.unr-lcssa, label %.preheader.us, !llvm.loop !15

._crit_edge.loopexit58.unr-lcssa:                 ; preds = %.preheader.us, %.preheader.us.preheader
  %indvar.unr = phi i64 [ 0, %.preheader.us.preheader ], [ %indvar.next.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.loopexit58.unr-lcssa, %.preheader.us.epil
  %indvar.epil = phi i64 [ %indvar.next.epil, %.preheader.us.epil ], [ %indvar.unr, %._crit_edge.loopexit58.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader.us.epil ], [ 0, %._crit_edge.loopexit58.unr-lcssa ]
  %68 = mul nuw nsw i64 %indvar.epil, 400
  %scevgep.epil = getelementptr i8, ptr %6, i64 %68
  call void @llvm.memset.p0.i64(ptr align 16 %scevgep.epil, i8 0, i64 %11, i1 false), !tbaa !5
  %indvar.next.epil = add nuw nsw i64 %indvar.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.loopexit58.unr-lcssa, %.preheader.us.epil, %._crit_edge26.split.us.us.us, %5
  %69 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  call void @displaymatrix(ptr noundef nonnull %6, i32 noundef %2, i32 noundef %4)
  call void @llvm.lifetime.end.p0(i64 40000, ptr nonnull %6) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #4

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}


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