; LLVM IR from siconos/siconos :: externals/lbl/metis4/graph.ll_ (SetUpGraph2)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.graphdef = type { ptr, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

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

declare void @__InitGraph(ptr noundef) #1

declare ptr @__idxmalloc(i32 noundef, ptr noundef) #1

declare ptr @__fmalloc(i32 noundef, ptr noundef) #1

; 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 @__SetUpGraph2(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !9
  store i32 %2, ptr %10, align 4, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  call void @__InitGraph(ptr noundef %18)
  %19 = load i32, ptr %9, align 4, !tbaa !9
  %20 = load ptr, ptr %8, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.graphdef, ptr %20, i32 0, i32 2
  store i32 %19, ptr %21, align 8, !tbaa !11
  %22 = load ptr, ptr %11, align 8, !tbaa !5
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds i32, ptr %22, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.graphdef, ptr %27, i32 0, i32 3
  store i32 %26, ptr %28, align 4, !tbaa !13
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.graphdef, ptr %30, i32 0, i32 24
  store i32 %29, ptr %31, align 8, !tbaa !14
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.graphdef, ptr %33, i32 0, i32 4
  store ptr %32, ptr %34, align 8, !tbaa !15
  %35 = load ptr, ptr %12, align 8, !tbaa !5
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.graphdef, ptr %36, i32 0, i32 7
  store ptr %35, ptr %37, align 8, !tbaa !16
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.graphdef, ptr %39, i32 0, i32 8
  store ptr %38, ptr %40, align 8, !tbaa !17
  %41 = load i32, ptr %9, align 4, !tbaa !9
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = mul nsw i32 %41, %42
  %44 = call ptr @__fmalloc(i32 noundef %43, ptr noundef @.str.3)
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.graphdef, ptr %45, i32 0, i32 25
  store ptr %44, ptr %46, align 8, !tbaa !18
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.graphdef, ptr %47, i32 0, i32 25
  %49 = load ptr, ptr %48, align 8, !tbaa !18
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = mul nsw i32 %51, %52
  %54 = sext i32 %53 to i64
  %55 = mul i64 4, %54
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %49, ptr align 1 %50, i64 %55, i1 false)
  %56 = load i32, ptr %9, align 4, !tbaa !9
  %57 = mul nsw i32 2, %56
  %58 = call ptr @__idxmalloc(i32 noundef %57, ptr noundef @.str)
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.graphdef, ptr %59, i32 0, i32 0
  store ptr %58, ptr %60, align 8, !tbaa !19
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.graphdef, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !19
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.graphdef, ptr %64, i32 0, i32 9
  store ptr %63, ptr %65, align 8, !tbaa !20
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %66

66:                                               ; preds = %104, %7
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = icmp slt i32 %67, %68
  br i1 %69, label %70, label %107

70:                                               ; preds = %66
  store i32 0, ptr %17, align 4, !tbaa !9
  %71 = load ptr, ptr %11, align 8, !tbaa !5
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds i32, ptr %71, i64 %73
  %75 = load i32, ptr %74, align 4, !tbaa !9
  store i32 %75, ptr %16, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %93, %70
  %77 = load i32, ptr %16, align 4, !tbaa !9
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = load i32, ptr %15, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %78, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !9
  %84 = icmp slt i32 %77, %83
  br i1 %84, label %85, label %96

85:                                               ; preds = %76
  %86 = load ptr, ptr %14, align 8, !tbaa !5
  %87 = load i32, ptr %16, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !9
  %91 = load i32, ptr %17, align 4, !tbaa !9
  %92 = add nsw i32 %91, %90
  store i32 %92, ptr %17, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %85
  %94 = load i32, ptr %16, align 4, !tbaa !9
  %95 = add nsw i32 %94, 1
  store i32 %95, ptr %16, align 4, !tbaa !9
  br label %76, !llvm.loop !21

96:                                               ; preds = %76
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.graphdef, ptr %98, i32 0, i32 9
  %100 = load ptr, ptr %99, align 8, !tbaa !20
  %101 = load i32, ptr %15, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds i32, ptr %100, i64 %102
  store i32 %97, ptr %103, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %96
  %105 = load i32, ptr %15, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %15, align 4, !tbaa !9
  br label %66, !llvm.loop !23

107:                                              ; preds = %66
  %108 = load ptr, ptr %8, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.graphdef, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !19
  %111 = load i32, ptr %9, align 4, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i32, ptr %110, i64 %112
  %114 = load ptr, ptr %8, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.graphdef, ptr %114, i32 0, i32 11
  store ptr %113, ptr %115, align 8, !tbaa !24
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = call ptr @__idxmalloc(i32 noundef %116, ptr noundef @.str.2)
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.graphdef, ptr %118, i32 0, i32 10
  store ptr %117, ptr %119, align 8, !tbaa !25
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %132, %107
  %121 = load i32, ptr %15, align 4, !tbaa !9
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %124, label %135

124:                                              ; preds = %120
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = load ptr, ptr %8, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.graphdef, ptr %126, i32 0, i32 10
  %128 = load ptr, ptr %127, align 8, !tbaa !25
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  store i32 %125, ptr %131, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %124
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %15, align 4, !tbaa !9
  br label %120, !llvm.loop !26

135:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  ret void
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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: readwrite) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 = !{!12, !10, i64 16}
!12 = !{!"graphdef", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !6, i64 96, !6, i64 104, !10, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !10, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208}
!13 = !{!12, !10, i64 20}
!14 = !{!12, !10, i64 176}
!15 = !{!12, !6, i64 24}
!16 = !{!12, !6, i64 48}
!17 = !{!12, !6, i64 56}
!18 = !{!12, !6, i64 184}
!19 = !{!12, !6, i64 0}
!20 = !{!12, !6, i64 64}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = !{!12, !6, i64 80}
!25 = !{!12, !6, i64 72}
!26 = distinct !{!26, !22}


; 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 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1

declare void @__InitGraph(ptr noundef) local_unnamed_addr #0

declare ptr @__idxmalloc(i32 noundef, ptr noundef) local_unnamed_addr #0

declare ptr @__fmalloc(i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @__SetUpGraph2(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef readonly %5, ptr noundef %6) local_unnamed_addr #1 {
  tail call void @__InitGraph(ptr noundef %0) #4
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  store i32 %1, ptr %8, align 8, !tbaa !5
  %9 = sext i32 %1 to i64
  %10 = getelementptr inbounds i32, ptr %3, i64 %9
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %11, ptr %12, align 4, !tbaa !12
  %13 = getelementptr inbounds i8, ptr %0, i64 176
  store i32 %2, ptr %13, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  store ptr %3, ptr %14, align 8, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %0, i64 48
  store ptr %4, ptr %15, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %0, i64 56
  store ptr %6, ptr %16, align 8, !tbaa !16
  %17 = mul nsw i32 %2, %1
  %18 = tail call ptr @__fmalloc(i32 noundef %17, ptr noundef nonnull @.str.3) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 184
  store ptr %18, ptr %19, align 8, !tbaa !17
  %20 = sext i32 %17 to i64
  %21 = shl nsw i64 %20, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %18, ptr align 1 %5, i64 %21, i1 false)
  %22 = shl nsw i32 %1, 1
  %23 = tail call ptr @__idxmalloc(i32 noundef %22, ptr noundef nonnull @.str) #4
  store ptr %23, ptr %0, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 64
  store ptr %23, ptr %24, align 8, !tbaa !19
  %25 = icmp sgt i32 %1, 0
  br i1 %25, label %.lr.ph58.preheader, label %._crit_edge59.thread

._crit_edge59.thread:                             ; preds = %7
  %26 = getelementptr inbounds i32, ptr %23, i64 %9
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %26, ptr %27, align 8, !tbaa !20
  %28 = tail call ptr @__idxmalloc(i32 noundef %1, ptr noundef nonnull @.str.2) #4
  %29 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %28, ptr %29, align 8, !tbaa !21
  br label %._crit_edge63

.lr.ph58.preheader:                               ; preds = %7
  %wide.trip.count68 = zext nneg i32 %1 to i64
  br label %.lr.ph58

.lr.ph58:                                         ; preds = %.lr.ph58.preheader, %._crit_edge
  %indvars.iv65 = phi i64 [ 0, %.lr.ph58.preheader ], [ %indvars.iv.next66, %._crit_edge ]
  %30 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv65
  %31 = load i32, ptr %30, align 4, !tbaa !11
  %indvars.iv.next66 = add nuw nsw i64 %indvars.iv65, 1
  %32 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next66
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = icmp slt i32 %31, %33
  br i1 %34, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.lr.ph58
  %35 = sext i32 %31 to i64
  %wide.trip.count = sext i32 %33 to i64
  %36 = sub nsw i64 %wide.trip.count, %35
  %min.iters.check = icmp ult i64 %36, 8
  br i1 %min.iters.check, label %.lr.ph.preheader90, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %36, -8
  %ind.end = add nsw i64 %n.vec, %35
  %invariant.gep = getelementptr i32, ptr %6, i64 %35
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %38, %vector.body ]
  %vec.phi75 = phi <4 x i32> [ zeroinitializer, %vector.ph ], [ %39, %vector.body ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %index
  %37 = getelementptr inbounds i8, ptr %gep, i64 16
  %wide.load = load <4 x i32>, ptr %gep, align 4, !tbaa !11
  %wide.load76 = load <4 x i32>, ptr %37, align 4, !tbaa !11
  %38 = add <4 x i32> %wide.load, %vec.phi
  %39 = add <4 x i32> %wide.load76, %vec.phi75
  %index.next = add nuw i64 %index, 8
  %40 = icmp eq i64 %index.next, %n.vec
  br i1 %40, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <4 x i32> %39, %38
  %41 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %36, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader90

.lr.ph.preheader90:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %35, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.054.ph = phi i32 [ 0, %.lr.ph.preheader ], [ %41, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader90, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader90 ]
  %.054 = phi i32 [ %44, %.lr.ph ], [ %.054.ph, %.lr.ph.preheader90 ]
  %42 = getelementptr inbounds i32, ptr %6, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !11
  %44 = add nsw i32 %43, %.054
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %.lr.ph58
  %.0.lcssa = phi i32 [ 0, %.lr.ph58 ], [ %41, %middle.block ], [ %44, %.lr.ph ]
  %45 = getelementptr inbounds i32, ptr %23, i64 %indvars.iv65
  store i32 %.0.lcssa, ptr %45, align 4, !tbaa !11
  %exitcond69.not = icmp eq i64 %indvars.iv.next66, %wide.trip.count68
  br i1 %exitcond69.not, label %._crit_edge59, label %.lr.ph58, !llvm.loop !27

._crit_edge59:                                    ; preds = %._crit_edge
  %46 = getelementptr inbounds i32, ptr %23, i64 %9
  %47 = getelementptr inbounds i8, ptr %0, i64 80
  store ptr %46, ptr %47, align 8, !tbaa !20
  %48 = tail call ptr @__idxmalloc(i32 noundef %1, ptr noundef nonnull @.str.2) #4
  %49 = getelementptr inbounds i8, ptr %0, i64 72
  store ptr %48, ptr %49, align 8, !tbaa !21
  br i1 %25, label %.lr.ph62.preheader, label %._crit_edge63

.lr.ph62.preheader:                               ; preds = %._crit_edge59
  %wide.trip.count73 = zext nneg i32 %1 to i64
  %min.iters.check79 = icmp ult i32 %1, 8
  br i1 %min.iters.check79, label %.lr.ph62.preheader89, label %vector.ph80

vector.ph80:                                      ; preds = %.lr.ph62.preheader
  %n.vec82 = and i64 %wide.trip.count68, 2147483640
  br label %vector.body84

vector.body84:                                    ; preds = %vector.body84, %vector.ph80
  %index85 = phi i64 [ 0, %vector.ph80 ], [ %index.next87, %vector.body84 ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph80 ], [ %vec.ind.next, %vector.body84 ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %50 = getelementptr inbounds i32, ptr %48, i64 %index85
  %51 = getelementptr inbounds i8, ptr %50, i64 16
  store <4 x i32> %vec.ind, ptr %50, align 4, !tbaa !11
  store <4 x i32> %step.add, ptr %51, align 4, !tbaa !11
  %index.next87 = add nuw i64 %index85, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %52 = icmp eq i64 %index.next87, %n.vec82
  br i1 %52, label %middle.block77, label %vector.body84, !llvm.loop !28

middle.block77:                                   ; preds = %vector.body84
  %cmp.n88 = icmp eq i64 %n.vec82, %wide.trip.count68
  br i1 %cmp.n88, label %._crit_edge63, label %.lr.ph62.preheader89

.lr.ph62.preheader89:                             ; preds = %middle.block77, %.lr.ph62.preheader
  %indvars.iv70.ph = phi i64 [ 0, %.lr.ph62.preheader ], [ %n.vec82, %middle.block77 ]
  br label %.lr.ph62

.lr.ph62:                                         ; preds = %.lr.ph62.preheader89, %.lr.ph62
  %indvars.iv70 = phi i64 [ %indvars.iv.next71, %.lr.ph62 ], [ %indvars.iv70.ph, %.lr.ph62.preheader89 ]
  %53 = getelementptr inbounds i32, ptr %48, i64 %indvars.iv70
  %54 = trunc nuw nsw i64 %indvars.iv70 to i32
  store i32 %54, ptr %53, align 4, !tbaa !11
  %indvars.iv.next71 = add nuw nsw i64 %indvars.iv70, 1
  %exitcond74.not = icmp eq i64 %indvars.iv.next71, %wide.trip.count73
  br i1 %exitcond74.not, label %._crit_edge63, label %.lr.ph62, !llvm.loop !29

._crit_edge63:                                    ; preds = %.lr.ph62, %middle.block77, %._crit_edge59.thread, %._crit_edge59
  ret void
}

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v4i32(<4 x i32>) #3

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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 16}
!6 = !{!"graphdef", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !7, i64 96, !7, i64 104, !10, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !7, i64 168, !10, i64 176, !7, i64 184, !7, i64 192, !7, i64 200, !7, i64 208}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!10, !10, i64 0}
!12 = !{!6, !10, i64 20}
!13 = !{!6, !10, i64 176}
!14 = !{!6, !7, i64 24}
!15 = !{!6, !7, i64 48}
!16 = !{!6, !7, i64 56}
!17 = !{!6, !7, i64 184}
!18 = !{!6, !7, i64 0}
!19 = !{!6, !7, i64 64}
!20 = !{!6, !7, i64 80}
!21 = !{!6, !7, i64 72}
!22 = distinct !{!22, !23, !24, !25}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!"llvm.loop.isvectorized", i32 1}
!25 = !{!"llvm.loop.unroll.runtime.disable"}
!26 = distinct !{!26, !23, !25, !24}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23, !24, !25}
!29 = distinct !{!29, !23, !25, !24}


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