; LLVM IR from AlgoGenesis/C :: 2D Arrays/SetMatrixZero (Program)

; 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: nounwind uwtable
define dso_local void @setMatrixZero(ptr noundef %0, i32 noundef %1, i32 noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [100 x i32], align 16
  %8 = alloca [100 x i32], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 400, ptr %7) #3
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 400, ptr %8) #3
  call void @llvm.memset.p0.i64(ptr align 16 %8, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %14

14:                                               ; preds = %47, %3
  %15 = load i32, ptr %9, align 4, !tbaa !9
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %50

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %20

20:                                               ; preds = %43, %19
  %21 = load i32, ptr %11, align 4, !tbaa !9
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = icmp slt i32 %21, %22
  br i1 %23, label %25, label %24

24:                                               ; preds = %20
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %46

25:                                               ; preds = %20
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [100 x i32], ptr %26, i64 %28
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [100 x i32], ptr %29, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %42

35:                                               ; preds = %25
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %37
  store i32 1, ptr %38, align 4, !tbaa !9
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %40
  store i32 1, ptr %41, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %35, %25
  br label %43

43:                                               ; preds = %42
  %44 = load i32, ptr %11, align 4, !tbaa !9
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %11, align 4, !tbaa !9
  br label %20, !llvm.loop !11

46:                                               ; preds = %24
  br label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %9, align 4, !tbaa !9
  br label %14, !llvm.loop !13

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

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

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

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

57:                                               ; preds = %83, %56
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %57
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %86

62:                                               ; preds = %57
  %63 = load i32, ptr %12, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [100 x i32], ptr %7, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %74, label %68

68:                                               ; preds = %62
  %69 = load i32, ptr %13, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [100 x i32], ptr %8, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %82

74:                                               ; preds = %68, %62
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %12, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [100 x i32], ptr %75, i64 %77
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100 x i32], ptr %78, i64 0, i64 %80
  store i32 0, ptr %81, align 4, !tbaa !9
  br label %82

82:                                               ; preds = %74, %68
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %13, align 4, !tbaa !9
  br label %57, !llvm.loop !14

86:                                               ; preds = %61
  br label %87

87:                                               ; preds = %86
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %12, align 4, !tbaa !9
  br label %51, !llvm.loop !15

90:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 400, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 400, ptr %7) #3
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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}
!15 = distinct !{!15, !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 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: nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @setMatrixZero(ptr nocapture noundef %0, i32 noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = alloca [100 x i32], align 16
  %5 = alloca [100 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %4) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %4, i8 0, i64 400, i1 false)
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %5) #3
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %5, i8 0, i64 400, i1 false)
  %6 = icmp sgt i32 %1, 0
  %7 = icmp sgt i32 %2, 0
  %or.cond = and i1 %6, %7
  br i1 %or.cond, label %.preheader26.us.preheader, label %._crit_edge31

.preheader26.us.preheader:                        ; preds = %3
  %wide.trip.count43 = zext nneg i32 %1 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  %xtraiter = and i64 %wide.trip.count, 1
  %8 = icmp eq i32 %2, 1
  %unroll_iter = and i64 %wide.trip.count, 2147483646
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader26.us

.preheader26.us:                                  ; preds = %.preheader26.us.preheader, %._crit_edge.us
  %indvars.iv40 = phi i64 [ 0, %.preheader26.us.preheader ], [ %indvars.iv.next41, %._crit_edge.us ]
  %9 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %indvars.iv40
  br i1 %8, label %._crit_edge.us.unr-lcssa, label %.preheader26.us.new

.preheader26.us.new:                              ; preds = %.preheader26.us, %21
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %21 ], [ 0, %.preheader26.us ]
  %niter = phi i64 [ %niter.next.1, %21 ], [ 0, %.preheader26.us ]
  %10 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvars.iv40, i64 %indvars.iv
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %.preheader26.us.new
  store i32 1, ptr %9, align 4, !tbaa !5
  %14 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv
  store i32 1, ptr %14, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %13, %.preheader26.us.new
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %16 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvars.iv40, i64 %indvars.iv.next
  %17 = load i32, ptr %16, align 4, !tbaa !5
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %15
  store i32 1, ptr %9, align 4, !tbaa !5
  %20 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv.next
  store i32 1, ptr %20, align 4, !tbaa !5
  br label %21

21:                                               ; preds = %19, %15
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.us.unr-lcssa, label %.preheader26.us.new, !llvm.loop !9

._crit_edge.us.unr-lcssa:                         ; preds = %21, %.preheader26.us
  %indvars.iv.unr = phi i64 [ 0, %.preheader26.us ], [ %indvars.iv.next.1, %21 ]
  br i1 %lcmp.mod.not, label %._crit_edge.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.unr-lcssa
  %22 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvars.iv40, i64 %indvars.iv.unr
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %._crit_edge.us

25:                                               ; preds = %.epil.preheader
  store i32 1, ptr %9, align 4, !tbaa !5
  %26 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv.unr
  store i32 1, ptr %26, align 4, !tbaa !5
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %.epil.preheader, %25, %._crit_edge.us.unr-lcssa
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next41, %wide.trip.count43
  br i1 %exitcond44.not, label %.preheader25, label %.preheader26.us, !llvm.loop !11

.preheader25:                                     ; preds = %._crit_edge.us
  br i1 %6, label %.preheader.us.preheader, label %._crit_edge31

.preheader.us.preheader:                          ; preds = %.preheader25
  %27 = zext nneg i32 %2 to i64
  %28 = shl nuw nsw i64 %27, 2
  %wide.trip.count54 = zext nneg i32 %1 to i64
  %min.iters.check = icmp ult i32 %2, 8
  %n.vec = and i64 %wide.trip.count, 2147483640
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.us.preheader, %._crit_edge.us35
  %indvar = phi i64 [ 0, %.preheader.us.preheader ], [ %indvar.next, %._crit_edge.us35 ]
  %29 = getelementptr inbounds [100 x i32], ptr %4, i64 0, i64 %indvar
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = icmp eq i32 %30, 1
  br i1 %31, label %.lr.ph.split.us.us.preheader, label %.lr.ph.split.us34.preheader

.lr.ph.split.us34.preheader:                      ; preds = %.preheader.us
  br i1 %min.iters.check, label %.lr.ph.split.us34.preheader73, label %vector.body

.lr.ph.split.us34.preheader73:                    ; preds = %middle.block, %.lr.ph.split.us34.preheader
  %indvars.iv45.ph = phi i64 [ 0, %.lr.ph.split.us34.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph.split.us34

vector.body:                                      ; preds = %.lr.ph.split.us34.preheader, %pred.store.continue72
  %index = phi i64 [ %index.next, %pred.store.continue72 ], [ 0, %.lr.ph.split.us34.preheader ]
  %32 = or disjoint i64 %index, 4
  %33 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %index
  %34 = getelementptr inbounds i8, ptr %33, i64 16
  %wide.load = load <4 x i32>, ptr %33, align 16, !tbaa !5
  %wide.load58 = load <4 x i32>, ptr %34, align 16, !tbaa !5
  %35 = icmp eq <4 x i32> %wide.load, <i32 1, i32 1, i32 1, i32 1>
  %36 = icmp eq <4 x i32> %wide.load58, <i32 1, i32 1, i32 1, i32 1>
  %37 = extractelement <4 x i1> %35, i64 0
  br i1 %37, label %pred.store.if, label %pred.store.continue

pred.store.if:                                    ; preds = %vector.body
  %38 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %index
  store i32 0, ptr %38, align 4, !tbaa !5
  br label %pred.store.continue

pred.store.continue:                              ; preds = %pred.store.if, %vector.body
  %39 = extractelement <4 x i1> %35, i64 1
  br i1 %39, label %pred.store.if59, label %pred.store.continue60

pred.store.if59:                                  ; preds = %pred.store.continue
  %40 = or disjoint i64 %index, 1
  %41 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %40
  store i32 0, ptr %41, align 4, !tbaa !5
  br label %pred.store.continue60

pred.store.continue60:                            ; preds = %pred.store.if59, %pred.store.continue
  %42 = extractelement <4 x i1> %35, i64 2
  br i1 %42, label %pred.store.if61, label %pred.store.continue62

pred.store.if61:                                  ; preds = %pred.store.continue60
  %43 = or disjoint i64 %index, 2
  %44 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %43
  store i32 0, ptr %44, align 4, !tbaa !5
  br label %pred.store.continue62

pred.store.continue62:                            ; preds = %pred.store.if61, %pred.store.continue60
  %45 = extractelement <4 x i1> %35, i64 3
  br i1 %45, label %pred.store.if63, label %pred.store.continue64

pred.store.if63:                                  ; preds = %pred.store.continue62
  %46 = or disjoint i64 %index, 3
  %47 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %46
  store i32 0, ptr %47, align 4, !tbaa !5
  br label %pred.store.continue64

pred.store.continue64:                            ; preds = %pred.store.if63, %pred.store.continue62
  %48 = extractelement <4 x i1> %36, i64 0
  br i1 %48, label %pred.store.if65, label %pred.store.continue66

pred.store.if65:                                  ; preds = %pred.store.continue64
  %49 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %32
  store i32 0, ptr %49, align 4, !tbaa !5
  br label %pred.store.continue66

pred.store.continue66:                            ; preds = %pred.store.if65, %pred.store.continue64
  %50 = extractelement <4 x i1> %36, i64 1
  br i1 %50, label %pred.store.if67, label %pred.store.continue68

pred.store.if67:                                  ; preds = %pred.store.continue66
  %51 = or disjoint i64 %index, 5
  %52 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %51
  store i32 0, ptr %52, align 4, !tbaa !5
  br label %pred.store.continue68

pred.store.continue68:                            ; preds = %pred.store.if67, %pred.store.continue66
  %53 = extractelement <4 x i1> %36, i64 2
  br i1 %53, label %pred.store.if69, label %pred.store.continue70

pred.store.if69:                                  ; preds = %pred.store.continue68
  %54 = or disjoint i64 %index, 6
  %55 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %54
  store i32 0, ptr %55, align 4, !tbaa !5
  br label %pred.store.continue70

pred.store.continue70:                            ; preds = %pred.store.if69, %pred.store.continue68
  %56 = extractelement <4 x i1> %36, i64 3
  br i1 %56, label %pred.store.if71, label %pred.store.continue72

pred.store.if71:                                  ; preds = %pred.store.continue70
  %57 = or disjoint i64 %index, 7
  %58 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %57
  store i32 0, ptr %58, align 4, !tbaa !5
  br label %pred.store.continue72

pred.store.continue72:                            ; preds = %pred.store.if71, %pred.store.continue70
  %index.next = add nuw i64 %index, 8
  %59 = icmp eq i64 %index.next, %n.vec
  br i1 %59, label %middle.block, label %vector.body, !llvm.loop !12

middle.block:                                     ; preds = %pred.store.continue72
  br i1 %cmp.n, label %._crit_edge.us35, label %.lr.ph.split.us34.preheader73

.lr.ph.split.us.us.preheader:                     ; preds = %.preheader.us
  %60 = mul nuw nsw i64 %indvar, 400
  %scevgep = getelementptr i8, ptr %0, i64 %60
  tail call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 0, i64 %28, i1 false), !tbaa !5
  br label %._crit_edge.us35

.lr.ph.split.us34:                                ; preds = %.lr.ph.split.us34.preheader73, %66
  %indvars.iv45 = phi i64 [ %indvars.iv.next46, %66 ], [ %indvars.iv45.ph, %.lr.ph.split.us34.preheader73 ]
  %61 = getelementptr inbounds [100 x i32], ptr %5, i64 0, i64 %indvars.iv45
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %64, label %66

64:                                               ; preds = %.lr.ph.split.us34
  %65 = getelementptr inbounds [100 x i32], ptr %0, i64 %indvar, i64 %indvars.iv45
  store i32 0, ptr %65, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %64, %.lr.ph.split.us34
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next46, %27
  br i1 %exitcond49.not, label %._crit_edge.us35, label %.lr.ph.split.us34, !llvm.loop !15

._crit_edge.us35:                                 ; preds = %66, %middle.block, %.lr.ph.split.us.us.preheader
  %indvar.next = add nuw nsw i64 %indvar, 1
  %exitcond55.not = icmp eq i64 %indvar.next, %wide.trip.count54
  br i1 %exitcond55.not, label %._crit_edge31, label %.preheader.us, !llvm.loop !16

._crit_edge31:                                    ; preds = %._crit_edge.us35, %3, %.preheader25
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %4) #3
  ret void
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10, !13, !14}
!13 = !{!"llvm.loop.isvectorized", i32 1}
!14 = !{!"llvm.loop.unroll.runtime.disable"}
!15 = distinct !{!15, !10, !14, !13}
!16 = distinct !{!16, !10}


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