; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Grid.ll (ZN6R3GridaSERKS_)

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

%class.R3Grid = type { %class.R3Affine, %class.R3Affine, double, double, ptr, [3 x i32], i32, i32, i32 }
%class.R3Affine = type { %class.R3Transformation, %class.R4Matrix, %class.R4Matrix, %class.RNFlags }
%class.R3Transformation = type { ptr }
%class.R4Matrix = type { [4 x [4 x double]] }
%class.RNFlags = type { i64 }

@.str = external hidden unnamed_addr constant [41 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(272)) #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(592) ptr @_ZN6R3GridaSERKS_(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(592) %1) #5 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %25

10:                                               ; preds = %2
  %11 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 8
  %12 = load i32, ptr %11, align 4, !tbaa !18
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %class.R3Grid, ptr %13, i32 0, i32 8
  %15 = load i32, ptr %14, align 4, !tbaa !18
  %16 = icmp ne i32 %12, %15
  br i1 %16, label %17, label %24

17:                                               ; preds = %10
  %18 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = icmp eq ptr %19, null
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @_ZdaPv(ptr noundef %19) #7
  br label %22

22:                                               ; preds = %21, %17
  %23 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  store ptr null, ptr %23, align 8, !tbaa !9
  br label %24

24:                                               ; preds = %22, %10
  br label %25

25:                                               ; preds = %24, %2
  %26 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = icmp ne ptr %27, null
  br i1 %28, label %50, label %29

29:                                               ; preds = %25
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.R3Grid, ptr %30, i32 0, i32 8
  %32 = load i32, ptr %31, align 4, !tbaa !18
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %50

34:                                               ; preds = %29
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.R3Grid, ptr %35, i32 0, i32 8
  %37 = load i32, ptr %36, align 4, !tbaa !18
  %38 = sext i32 %37 to i64
  %39 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %38, i64 8)
  %40 = extractvalue { i64, i1 } %39, 1
  %41 = extractvalue { i64, i1 } %39, 0
  %42 = select i1 %40, i64 -1, i64 %41
  %43 = call noalias noundef nonnull ptr @_Znam(i64 noundef %42) #8
  %44 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  store ptr %43, ptr %44, align 8, !tbaa !9
  %45 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = icmp ne ptr %46, null
  br i1 %47, label %49, label %48

48:                                               ; preds = %34
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.10, i32 noundef 511, ptr noundef @.str.2)
  br label %49

49:                                               ; preds = %48, %34
  br label %50

50:                                               ; preds = %49, %29, %25
  %51 = load ptr, ptr %4, align 8, !tbaa !5
  %52 = getelementptr inbounds %class.R3Grid, ptr %51, i32 0, i32 5
  %53 = getelementptr inbounds [3 x i32], ptr %52, i64 0, i64 0
  %54 = load i32, ptr %53, align 8, !tbaa !19
  %55 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 5
  %56 = getelementptr inbounds [3 x i32], ptr %55, i64 0, i64 0
  store i32 %54, ptr %56, align 8, !tbaa !19
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.R3Grid, ptr %57, i32 0, i32 5
  %59 = getelementptr inbounds [3 x i32], ptr %58, i64 0, i64 1
  %60 = load i32, ptr %59, align 4, !tbaa !19
  %61 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 5
  %62 = getelementptr inbounds [3 x i32], ptr %61, i64 0, i64 1
  store i32 %60, ptr %62, align 4, !tbaa !19
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %class.R3Grid, ptr %63, i32 0, i32 5
  %65 = getelementptr inbounds [3 x i32], ptr %64, i64 0, i64 2
  %66 = load i32, ptr %65, align 8, !tbaa !19
  %67 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 5
  %68 = getelementptr inbounds [3 x i32], ptr %67, i64 0, i64 2
  store i32 %66, ptr %68, align 8, !tbaa !19
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %class.R3Grid, ptr %69, i32 0, i32 6
  %71 = load i32, ptr %70, align 4, !tbaa !20
  %72 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 6
  store i32 %71, ptr %72, align 4, !tbaa !20
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.R3Grid, ptr %73, i32 0, i32 7
  %75 = load i32, ptr %74, align 8, !tbaa !21
  %76 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 7
  store i32 %75, ptr %76, align 8, !tbaa !21
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %class.R3Grid, ptr %77, i32 0, i32 8
  %79 = load i32, ptr %78, align 4, !tbaa !18
  %80 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 8
  store i32 %79, ptr %80, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !19
  br label %81

81:                                               ; preds = %100, %50
  %82 = load i32, ptr %5, align 4, !tbaa !19
  %83 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 8
  %84 = load i32, ptr %83, align 4, !tbaa !18
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %103

87:                                               ; preds = %81
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %class.R3Grid, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = load i32, ptr %5, align 4, !tbaa !19
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !22
  %95 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 4
  %96 = load ptr, ptr %95, align 8, !tbaa !9
  %97 = load i32, ptr %5, align 4, !tbaa !19
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds double, ptr %96, i64 %98
  store double %94, ptr %99, align 8, !tbaa !22
  br label %100

100:                                              ; preds = %87
  %101 = load i32, ptr %5, align 4, !tbaa !19
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %5, align 4, !tbaa !19
  br label %81, !llvm.loop !23

103:                                              ; preds = %86
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %class.R3Grid, ptr %104, i32 0, i32 0
  %106 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 0
  %107 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272) %106, ptr noundef nonnull align 8 dereferenceable(272) %105)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = getelementptr inbounds %class.R3Grid, ptr %108, i32 0, i32 1
  %110 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 1
  %111 = call noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272) %110, ptr noundef nonnull align 8 dereferenceable(272) %109)
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %class.R3Grid, ptr %112, i32 0, i32 2
  %114 = load double, ptr %113, align 8, !tbaa !25
  %115 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 2
  store double %114, ptr %115, align 8, !tbaa !25
  %116 = load ptr, ptr %4, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.R3Grid, ptr %116, i32 0, i32 3
  %118 = load double, ptr %117, align 8, !tbaa !26
  %119 = getelementptr inbounds %class.R3Grid, ptr %6, i32 0, i32 3
  store double %118, ptr %119, align 8, !tbaa !26
  ret ptr %6
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { "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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint 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 #5 = { 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 #6 = { 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 #7 = { builtin nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { 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, !6, i64 560}
!10 = !{!"_ZTS6R3Grid", !11, i64 0, !11, i64 272, !16, i64 544, !16, i64 552, !6, i64 560, !7, i64 568, !17, i64 580, !17, i64 584, !17, i64 588}
!11 = !{!"_ZTS8R3Affine", !12, i64 0, !13, i64 8, !13, i64 136, !14, i64 264}
!12 = !{!"_ZTS16R3Transformation"}
!13 = !{!"_ZTS8R4Matrix", !7, i64 0}
!14 = !{!"_ZTS7RNFlags", !15, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!10, !17, i64 588}
!19 = !{!17, !17, i64 0}
!20 = !{!10, !17, i64 580}
!21 = !{!10, !17, i64 584}
!22 = !{!16, !16, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !16, i64 544}
!26 = !{!10, !16, i64 552}


; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(272)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull align 8 dereferenceable(592) ptr @_ZN6R3GridaSERKS_(ptr noundef nonnull returned align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(592) %1) local_unnamed_addr #2 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 560
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %.thread, label %5

5:                                                ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 588
  %7 = load i32, ptr %6, align 4, !tbaa !17
  %8 = getelementptr inbounds i8, ptr %1, i64 588
  %9 = load i32, ptr %8, align 4, !tbaa !17
  %.not20 = icmp eq i32 %7, %9
  br i1 %.not20, label %18, label %10

10:                                               ; preds = %5
  tail call void @_ZdaPv(ptr noundef nonnull %4) #4
  store ptr null, ptr %3, align 8, !tbaa !5
  br label %.thread

.thread:                                          ; preds = %2, %10
  %11 = getelementptr inbounds i8, ptr %1, i64 588
  %12 = load i32, ptr %11, align 4, !tbaa !17
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %14, label %18

14:                                               ; preds = %.thread
  %15 = zext nneg i32 %12 to i64
  %16 = shl nuw nsw i64 %15, 3
  %17 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %16) #5
  store ptr %17, ptr %3, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %5, %14, %.thread
  %19 = phi ptr [ %17, %14 ], [ null, %.thread ], [ %4, %5 ]
  %20 = getelementptr inbounds i8, ptr %1, i64 568
  %21 = load i32, ptr %20, align 8, !tbaa !18
  %22 = getelementptr inbounds i8, ptr %0, i64 568
  store i32 %21, ptr %22, align 8, !tbaa !18
  %23 = getelementptr inbounds i8, ptr %1, i64 572
  %24 = load i32, ptr %23, align 4, !tbaa !18
  %25 = getelementptr inbounds i8, ptr %0, i64 572
  store i32 %24, ptr %25, align 4, !tbaa !18
  %26 = getelementptr inbounds i8, ptr %1, i64 576
  %27 = load i32, ptr %26, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %0, i64 576
  store i32 %27, ptr %28, align 8, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %1, i64 580
  %30 = getelementptr inbounds i8, ptr %0, i64 580
  %31 = load <2 x i32>, ptr %29, align 4, !tbaa !18
  store <2 x i32> %31, ptr %30, align 4, !tbaa !18
  %32 = getelementptr inbounds i8, ptr %1, i64 588
  %33 = load i32, ptr %32, align 4, !tbaa !17
  %34 = getelementptr inbounds i8, ptr %0, i64 588
  store i32 %33, ptr %34, align 4, !tbaa !17
  %35 = icmp sgt i32 %33, 0
  br i1 %35, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %18
  %36 = ptrtoint ptr %19 to i64
  %37 = getelementptr inbounds i8, ptr %1, i64 560
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %wide.trip.count = zext nneg i32 %33 to i64
  %min.iters.check = icmp ult i32 %33, 6
  %39 = ptrtoint ptr %38 to i64
  %40 = sub i64 %36, %39
  %diff.check = icmp ult i64 %40, 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 ]
  %xtraiter = and i64 %wide.trip.count, 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 ]
  %41 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.prol
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = getelementptr inbounds double, ptr %19, i64 %indvars.iv.prol
  store double %42, ptr %43, align 8, !tbaa !19
  %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 !20

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 ]
  %44 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %45 = icmp ugt i64 %44, -4
  br i1 %45, label %._crit_edge, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %46 = getelementptr inbounds double, ptr %38, i64 %index
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load = load <2 x double>, ptr %46, align 8, !tbaa !19
  %wide.load25 = load <2 x double>, ptr %47, align 8, !tbaa !19
  %48 = getelementptr inbounds double, ptr %19, i64 %index
  %49 = getelementptr inbounds i8, ptr %48, i64 16
  store <2 x double> %wide.load, ptr %48, align 8, !tbaa !19
  store <2 x double> %wide.load25, ptr %49, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %50 = icmp eq i64 %index.next, %n.vec
  br i1 %50, label %middle.block, label %vector.body, !llvm.loop !22

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

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %18
  %51 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272) %0, ptr noundef nonnull align 8 dereferenceable(272) %1)
  %52 = getelementptr inbounds i8, ptr %1, i64 272
  %53 = getelementptr inbounds i8, ptr %0, i64 272
  %54 = tail call noundef nonnull align 8 dereferenceable(272) ptr @_ZN8R3AffineaSERKS_(ptr noundef nonnull align 8 dereferenceable(272) %53, ptr noundef nonnull align 8 dereferenceable(272) %52)
  %55 = getelementptr inbounds i8, ptr %1, i64 544
  %56 = getelementptr inbounds i8, ptr %0, i64 544
  %57 = load <2 x double>, ptr %55, align 8, !tbaa !19
  store <2 x double> %57, ptr %56, align 8, !tbaa !19
  ret ptr %0

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 ]
  %58 = getelementptr inbounds double, ptr %38, i64 %indvars.iv
  %59 = load double, ptr %58, align 8, !tbaa !19
  %60 = getelementptr inbounds double, ptr %19, i64 %indvars.iv
  store double %59, ptr %60, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %61 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next
  %62 = load double, ptr %61, align 8, !tbaa !19
  %63 = getelementptr inbounds double, ptr %19, i64 %indvars.iv.next
  store double %62, ptr %63, align 8, !tbaa !19
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %64 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next.1
  %65 = load double, ptr %64, align 8, !tbaa !19
  %66 = getelementptr inbounds double, ptr %19, i64 %indvars.iv.next.1
  store double %65, ptr %66, align 8, !tbaa !19
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %67 = getelementptr inbounds double, ptr %38, i64 %indvars.iv.next.2
  %68 = load double, ptr %67, align 8, !tbaa !19
  %69 = getelementptr inbounds double, ptr %19, i64 %indvars.iv.next.2
  store double %68, ptr %69, align 8, !tbaa !19
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !26
}

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) local_unnamed_addr #3

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 = { inlinehint 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 = { 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 = { 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 #4 = { builtin 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, !15, i64 560}
!6 = !{!"_ZTS6R3Grid", !7, i64 0, !7, i64 272, !14, i64 544, !14, i64 552, !15, i64 560, !10, i64 568, !16, i64 580, !16, i64 584, !16, i64 588}
!7 = !{!"_ZTS8R3Affine", !8, i64 0, !9, i64 8, !9, i64 136, !12, i64 264}
!8 = !{!"_ZTS16R3Transformation"}
!9 = !{!"_ZTS8R4Matrix", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS7RNFlags", !13, i64 0}
!13 = !{!"long", !10, i64 0}
!14 = !{!"double", !10, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"int", !10, i64 0}
!17 = !{!6, !16, i64 588}
!18 = !{!16, !16, i64 0}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!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, !24}


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