; LLVM IR from sympiler/nasoq :: nasoq_driver.ll (ZN7sym_lib11copy_sparseEPN6format3CSCE)

; 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.format::CSC" = type { i64, i64, i64, i32, i8, i8, ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6format3CSCC2Emmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7sym_lib11copy_sparseEPN6format3CSCE(ptr noundef %0) #3 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = icmp ne ptr %9, null
  br i1 %10, label %12, label %11

11:                                               ; preds = %1
  store ptr null, ptr %2, align 8
  br label %111

12:                                               ; preds = %1
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds %"struct.format::CSC", ptr %13, i32 0, i32 1
  %15 = load i64, ptr %14, align 8, !tbaa !9
  %16 = icmp eq i64 %15, 0
  br i1 %16, label %22, label %17

17:                                               ; preds = %12
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.format::CSC", ptr %18, i32 0, i32 0
  %20 = load i64, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i64 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %17, %12
  store ptr null, ptr %2, align 8
  br label %111

23:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %24 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 56) #5
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.format::CSC", ptr %25, i32 0, i32 0
  %27 = load i64, ptr %26, align 8, !tbaa !14
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.format::CSC", ptr %28, i32 0, i32 1
  %30 = load i64, ptr %29, align 8, !tbaa !9
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.format::CSC", ptr %31, i32 0, i32 2
  %33 = load i64, ptr %32, align 8, !tbaa !15
  invoke void @_ZN6format3CSCC2Emmm(ptr noundef nonnull align 8 dereferenceable(56) %24, i64 noundef %27, i64 noundef %30, i64 noundef %33)
          to label %34 unwind label %44

34:                                               ; preds = %23
  store ptr %24, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !16
  br label %35

35:                                               ; preds = %62, %34
  %36 = load i32, ptr %7, align 4, !tbaa !16
  %37 = sext i32 %36 to i64
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.format::CSC", ptr %38, i32 0, i32 1
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = add i64 %40, 1
  %42 = icmp ult i64 %37, %41
  br i1 %42, label %48, label %43

43:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %65

44:                                               ; preds = %23
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %5, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %24, i64 noundef 56) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %113

48:                                               ; preds = %35
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.format::CSC", ptr %49, i32 0, i32 6
  %51 = load ptr, ptr %50, align 8, !tbaa !17
  %52 = load i32, ptr %7, align 4, !tbaa !16
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds i32, ptr %51, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !16
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.format::CSC", ptr %56, i32 0, i32 6
  %58 = load ptr, ptr %57, align 8, !tbaa !17
  %59 = load i32, ptr %7, align 4, !tbaa !16
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds i32, ptr %58, i64 %60
  store i32 %55, ptr %61, align 4, !tbaa !16
  br label %62

62:                                               ; preds = %48
  %63 = load i32, ptr %7, align 4, !tbaa !16
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %7, align 4, !tbaa !16
  br label %35, !llvm.loop !18

65:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !16
  br label %66

66:                                               ; preds = %101, %65
  %67 = load i32, ptr %8, align 4, !tbaa !16
  %68 = sext i32 %67 to i64
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.format::CSC", ptr %69, i32 0, i32 2
  %71 = load i64, ptr %70, align 8, !tbaa !15
  %72 = icmp ult i64 %68, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %104

74:                                               ; preds = %66
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %"struct.format::CSC", ptr %75, i32 0, i32 7
  %77 = load ptr, ptr %76, align 8, !tbaa !20
  %78 = load i32, ptr %8, align 4, !tbaa !16
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %77, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !16
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.format::CSC", ptr %82, i32 0, i32 7
  %84 = load ptr, ptr %83, align 8, !tbaa !20
  %85 = load i32, ptr %8, align 4, !tbaa !16
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds i32, ptr %84, i64 %86
  store i32 %81, ptr %87, align 4, !tbaa !16
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.format::CSC", ptr %88, i32 0, i32 8
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = load i32, ptr %8, align 4, !tbaa !16
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.format::CSC", ptr %95, i32 0, i32 8
  %97 = load ptr, ptr %96, align 8, !tbaa !21
  %98 = load i32, ptr %8, align 4, !tbaa !16
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %97, i64 %99
  store double %94, ptr %100, align 8, !tbaa !22
  br label %101

101:                                              ; preds = %74
  %102 = load i32, ptr %8, align 4, !tbaa !16
  %103 = add nsw i32 %102, 1
  store i32 %103, ptr %8, align 4, !tbaa !16
  br label %66, !llvm.loop !24

104:                                              ; preds = %73
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.format::CSC", ptr %105, i32 0, i32 3
  %107 = load i32, ptr %106, align 8, !tbaa !25
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.format::CSC", ptr %108, i32 0, i32 3
  store i32 %107, ptr %109, align 8, !tbaa !25
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %110, ptr %2, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %111

111:                                              ; preds = %104, %22, %11
  %112 = load ptr, ptr %2, align 8
  ret ptr %112

113:                                              ; preds = %44
  %114 = load ptr, ptr %5, align 8
  %115 = load i32, ptr %6, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nobuiltin 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 #3 = { 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 #4 = { nounwind }
attributes #5 = { builtin allocsize(0) }
attributes #6 = { builtin 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, !11, i64 8}
!10 = !{!"_ZTSN6format3CSCE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 28, !13, i64 29, !6, i64 32, !6, i64 40, !6, i64 48}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = !{!10, !11, i64 0}
!15 = !{!10, !11, i64 16}
!16 = !{!12, !12, i64 0}
!17 = !{!10, !6, i64 32}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 40}
!21 = !{!10, !6, i64 48}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !7, i64 0}
!24 = distinct !{!24, !19}
!25 = !{!10, !12, i64 24}


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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6format3CSCC2Emmm(ptr noundef nonnull align 8 dereferenceable(56), i64 noundef, i64 noundef, i64 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7sym_lib11copy_sparseEPN6format3CSCE(ptr noundef readonly %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %93, label %2

2:                                                ; preds = %1
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i64, ptr %3, align 8, !tbaa !5
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %93, label %6

6:                                                ; preds = %2
  %7 = load i64, ptr %0, align 8, !tbaa !13
  %8 = icmp eq i64 %7, 0
  br i1 %8, label %93, label %9

9:                                                ; preds = %6
  %10 = tail call noalias noundef nonnull dereferenceable(56) ptr @_Znwm(i64 noundef 56) #3
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i64, ptr %11, align 8, !tbaa !14
  invoke void @_ZN6format3CSCC2Emmm(ptr noundef nonnull align 8 dereferenceable(56) %10, i64 noundef %7, i64 noundef %4, i64 noundef %12)
          to label %.preheader34 unwind label %64

.preheader34:                                     ; preds = %9
  %13 = load i64, ptr %3, align 8, !tbaa !5
  %.not38 = icmp eq i64 %13, -1
  br i1 %.not38, label %.preheader, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader34
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = getelementptr inbounds i8, ptr %10, i64 32
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %18 = add i64 %13, 1
  %min.iters.check = icmp ult i64 %18, 8
  %19 = ptrtoint ptr %17 to i64
  %20 = ptrtoint ptr %15 to i64
  %21 = sub i64 %19, %20
  %diff.check = icmp ult i64 %21, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %22 = add i64 %13, 1
  %23 = sub i64 %13, %indvars.iv.ph
  %xtraiter = and i64 %22, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %24 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.prol
  %25 = load i32, ptr %24, align 4, !tbaa !16
  %26 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv.prol
  store i32 %25, ptr %26, align 4, !tbaa !16
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !17

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %27 = icmp ult i64 %23, 3
  br i1 %27, label %.preheader, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %18, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %28 = getelementptr inbounds i32, ptr %15, i64 %index
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %wide.load = load <4 x i32>, ptr %28, align 4, !tbaa !16
  %wide.load45 = load <4 x i32>, ptr %29, align 4, !tbaa !16
  %30 = getelementptr inbounds i32, ptr %17, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  store <4 x i32> %wide.load, ptr %30, align 4, !tbaa !16
  store <4 x i32> %wide.load45, ptr %31, align 4, !tbaa !16
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !19

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %18, %n.vec
  br i1 %cmp.n, label %.preheader, label %scalar.ph.preheader

.preheader:                                       ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %.preheader34
  %33 = load i64, ptr %11, align 8, !tbaa !14
  %.not39 = icmp eq i64 %33, 0
  br i1 %.not39, label %._crit_edge, label %.lr.ph37

.lr.ph37:                                         ; preds = %.preheader
  %34 = getelementptr inbounds i8, ptr %0, i64 40
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %36 = getelementptr inbounds i8, ptr %10, i64 40
  %37 = load ptr, ptr %36, align 8, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %0, i64 48
  %39 = load ptr, ptr %38, align 8, !tbaa !24
  %40 = getelementptr inbounds i8, ptr %10, i64 48
  %41 = load ptr, ptr %40, align 8, !tbaa !24
  %min.iters.check51 = icmp ult i64 %33, 10
  br i1 %min.iters.check51, label %scalar.ph50.preheader, label %vector.memcheck46

scalar.ph50.preheader:                            ; preds = %middle.block49, %vector.memcheck46, %.lr.ph37
  %indvars.iv41.ph = phi i64 [ 0, %vector.memcheck46 ], [ 0, %.lr.ph37 ], [ %n.vec54, %middle.block49 ]
  %.neg = or disjoint i64 %indvars.iv41.ph, 1
  %xtraiter66 = and i64 %33, 1
  %lcmp.mod67.not = icmp eq i64 %xtraiter66, 0
  br i1 %lcmp.mod67.not, label %scalar.ph50.prol.loopexit, label %scalar.ph50.prol

scalar.ph50.prol:                                 ; preds = %scalar.ph50.preheader
  %42 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv41.ph
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv41.ph
  store i32 %43, ptr %44, align 4, !tbaa !16
  %45 = getelementptr inbounds double, ptr %39, i64 %indvars.iv41.ph
  %46 = load double, ptr %45, align 8, !tbaa !25
  %47 = getelementptr inbounds double, ptr %41, i64 %indvars.iv41.ph
  store double %46, ptr %47, align 8, !tbaa !25
  %indvars.iv.next42.prol = or disjoint i64 %indvars.iv41.ph, 1
  br label %scalar.ph50.prol.loopexit

scalar.ph50.prol.loopexit:                        ; preds = %scalar.ph50.prol, %scalar.ph50.preheader
  %indvars.iv41.unr = phi i64 [ %indvars.iv41.ph, %scalar.ph50.preheader ], [ %indvars.iv.next42.prol, %scalar.ph50.prol ]
  %48 = icmp eq i64 %33, %.neg
  br i1 %48, label %._crit_edge, label %scalar.ph50

vector.memcheck46:                                ; preds = %.lr.ph37
  %49 = ptrtoint ptr %41 to i64
  %50 = ptrtoint ptr %39 to i64
  %51 = ptrtoint ptr %37 to i64
  %52 = ptrtoint ptr %35 to i64
  %53 = sub i64 %51, %52
  %diff.check47 = icmp ult i64 %53, 16
  %54 = sub i64 %49, %50
  %diff.check48 = icmp ult i64 %54, 32
  %conflict.rdx = or i1 %diff.check47, %diff.check48
  br i1 %conflict.rdx, label %scalar.ph50.preheader, label %vector.ph52

vector.ph52:                                      ; preds = %vector.memcheck46
  %n.vec54 = and i64 %33, -4
  br label %vector.body56

vector.body56:                                    ; preds = %vector.body56, %vector.ph52
  %index57 = phi i64 [ 0, %vector.ph52 ], [ %index.next62, %vector.body56 ]
  %55 = getelementptr inbounds i32, ptr %35, i64 %index57
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %wide.load58 = load <2 x i32>, ptr %55, align 4, !tbaa !16
  %wide.load59 = load <2 x i32>, ptr %56, align 4, !tbaa !16
  %57 = getelementptr inbounds i32, ptr %37, i64 %index57
  %58 = getelementptr inbounds i8, ptr %57, i64 8
  store <2 x i32> %wide.load58, ptr %57, align 4, !tbaa !16
  store <2 x i32> %wide.load59, ptr %58, align 4, !tbaa !16
  %59 = getelementptr inbounds double, ptr %39, i64 %index57
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %wide.load60 = load <2 x double>, ptr %59, align 8, !tbaa !25
  %wide.load61 = load <2 x double>, ptr %60, align 8, !tbaa !25
  %61 = getelementptr inbounds double, ptr %41, i64 %index57
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  store <2 x double> %wide.load60, ptr %61, align 8, !tbaa !25
  store <2 x double> %wide.load61, ptr %62, align 8, !tbaa !25
  %index.next62 = add nuw i64 %index57, 4
  %63 = icmp eq i64 %index.next62, %n.vec54
  br i1 %63, label %middle.block49, label %vector.body56, !llvm.loop !27

middle.block49:                                   ; preds = %vector.body56
  %cmp.n63 = icmp eq i64 %33, %n.vec54
  br i1 %cmp.n63, label %._crit_edge, label %scalar.ph50.preheader

64:                                               ; preds = %9
  %65 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 56) #4
  resume { ptr, i32 } %65

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %66 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  %67 = load i32, ptr %66, align 4, !tbaa !16
  %68 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv
  store i32 %67, ptr %68, align 4, !tbaa !16
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %69 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.next
  %70 = load i32, ptr %69, align 4, !tbaa !16
  %71 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv.next
  store i32 %70, ptr %71, align 4, !tbaa !16
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %72 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.next.1
  %73 = load i32, ptr %72, align 4, !tbaa !16
  %74 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv.next.1
  store i32 %73, ptr %74, align 4, !tbaa !16
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %75 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv.next.2
  %76 = load i32, ptr %75, align 4, !tbaa !16
  %77 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv.next.2
  store i32 %76, ptr %77, align 4, !tbaa !16
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.2, %13
  br i1 %exitcond.not.3, label %.preheader, label %scalar.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %scalar.ph50.prol.loopexit, %scalar.ph50, %middle.block49, %.preheader
  %78 = getelementptr inbounds i8, ptr %0, i64 24
  %79 = load i32, ptr %78, align 8, !tbaa !29
  %80 = getelementptr inbounds i8, ptr %10, i64 24
  store i32 %79, ptr %80, align 8, !tbaa !29
  br label %93

scalar.ph50:                                      ; preds = %scalar.ph50.prol.loopexit, %scalar.ph50
  %indvars.iv41 = phi i64 [ %indvars.iv.next42.1, %scalar.ph50 ], [ %indvars.iv41.unr, %scalar.ph50.prol.loopexit ]
  %81 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv41
  %82 = load i32, ptr %81, align 4, !tbaa !16
  %83 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv41
  store i32 %82, ptr %83, align 4, !tbaa !16
  %84 = getelementptr inbounds double, ptr %39, i64 %indvars.iv41
  %85 = load double, ptr %84, align 8, !tbaa !25
  %86 = getelementptr inbounds double, ptr %41, i64 %indvars.iv41
  store double %85, ptr %86, align 8, !tbaa !25
  %indvars.iv.next42 = add nuw nsw i64 %indvars.iv41, 1
  %87 = getelementptr inbounds i32, ptr %35, i64 %indvars.iv.next42
  %88 = load i32, ptr %87, align 4, !tbaa !16
  %89 = getelementptr inbounds i32, ptr %37, i64 %indvars.iv.next42
  store i32 %88, ptr %89, align 4, !tbaa !16
  %90 = getelementptr inbounds double, ptr %39, i64 %indvars.iv.next42
  %91 = load double, ptr %90, align 8, !tbaa !25
  %92 = getelementptr inbounds double, ptr %41, i64 %indvars.iv.next42
  store double %91, ptr %92, align 8, !tbaa !25
  %indvars.iv.next42.1 = add nuw nsw i64 %indvars.iv41, 2
  %exitcond44.not.1 = icmp eq i64 %indvars.iv.next42.1, %33
  br i1 %exitcond44.not.1, label %._crit_edge, label %scalar.ph50, !llvm.loop !30

93:                                               ; preds = %2, %6, %1, %._crit_edge
  %.030 = phi ptr [ %10, %._crit_edge ], [ null, %1 ], [ null, %6 ], [ null, %2 ]
  ret ptr %.030
}

attributes #0 = { 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 #1 = { nobuiltin 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 #2 = { 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 #3 = { builtin allocsize(0) }
attributes #4 = { builtin 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, !7, i64 8}
!6 = !{!"_ZTSN6format3CSCE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 28, !11, i64 29, !12, i64 32, !12, i64 40, !12, i64 48}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !12, i64 32}
!16 = !{!10, !10, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20, !21, !22}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = !{!6, !12, i64 40}
!24 = !{!6, !12, i64 48}
!25 = !{!26, !26, i64 0}
!26 = !{!"double", !8, i64 0}
!27 = distinct !{!27, !20, !21, !22}
!28 = distinct !{!28, !20, !21}
!29 = !{!6, !10, i64 24}
!30 = distinct !{!30, !20, !21}


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