; LLVM IR from ROCm/aomp :: test/usm/implicit_maps (implicit_maps)

; 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.T = type { i32, i32, i32 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [1024 x i32], align 16
  %3 = alloca [1024 x i32], align 16
  %4 = alloca [1024 x i32], align 16
  %5 = alloca %struct.T, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4096, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #3
  %13 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 0
  store i32 1, ptr %13, align 4, !tbaa !5
  %14 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 1
  store i32 2, ptr %14, align 4, !tbaa !10
  %15 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 2
  store i32 3, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %16

16:                                               ; preds = %30, %0
  %17 = load i32, ptr %7, align 4, !tbaa !12
  %18 = icmp slt i32 %17, 1024
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  br label %33

20:                                               ; preds = %16
  %21 = load i32, ptr %7, align 4, !tbaa !12
  %22 = load i32, ptr %7, align 4, !tbaa !12
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %23
  store i32 %21, ptr %24, align 4, !tbaa !12
  %25 = load i32, ptr %7, align 4, !tbaa !12
  %26 = add nsw i32 %25, 3
  %27 = load i32, ptr %7, align 4, !tbaa !12
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %28
  store i32 %26, ptr %29, align 4, !tbaa !12
  br label %30

30:                                               ; preds = %20
  %31 = load i32, ptr %7, align 4, !tbaa !12
  %32 = add nsw i32 %31, 1
  store i32 %32, ptr %7, align 4, !tbaa !12
  br label %16, !llvm.loop !13

33:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %34

34:                                               ; preds = %63, %33
  %35 = load i32, ptr %8, align 4, !tbaa !12
  %36 = icmp slt i32 %35, 1024
  br i1 %36, label %38, label %37

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

38:                                               ; preds = %34
  %39 = load i32, ptr %8, align 4, !tbaa !12
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !12
  %43 = load i32, ptr %8, align 4, !tbaa !12
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %44
  %46 = load i32, ptr %45, align 4, !tbaa !12
  %47 = add nsw i32 %42, %46
  %48 = load i32, ptr %8, align 4, !tbaa !12
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !12
  %51 = load i32, ptr %8, align 4, !tbaa !12
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %53, label %62

53:                                               ; preds = %38
  %54 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 1
  %55 = load i32, ptr %54, align 4, !tbaa !10
  %56 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 2
  %57 = load i32, ptr %56, align 4, !tbaa !11
  %58 = add nsw i32 %55, %57
  %59 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 0
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = add nsw i32 %60, %58
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %53, %38
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %8, align 4, !tbaa !12
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %8, align 4, !tbaa !12
  br label %34, !llvm.loop !15

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

67:                                               ; preds = %75, %66
  %68 = load i32, ptr %9, align 4, !tbaa !12
  %69 = icmp slt i32 %68, 1024
  br i1 %69, label %71, label %70

70:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %78

71:                                               ; preds = %67
  %72 = load i32, ptr %9, align 4, !tbaa !12
  %73 = load i32, ptr %6, align 4, !tbaa !12
  %74 = add nsw i32 %73, %72
  store i32 %74, ptr %6, align 4, !tbaa !12
  br label %75

75:                                               ; preds = %71
  %76 = load i32, ptr %9, align 4, !tbaa !12
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %9, align 4, !tbaa !12
  br label %67, !llvm.loop !16

78:                                               ; preds = %70
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !12
  %79 = load i32, ptr %6, align 4, !tbaa !12
  %80 = icmp ne i32 %79, 523776
  br i1 %80, label %81, label %86

81:                                               ; preds = %78
  %82 = load i32, ptr %10, align 4, !tbaa !12
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %10, align 4, !tbaa !12
  %84 = load i32, ptr %6, align 4, !tbaa !12
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %84, i32 noundef 523776)
  br label %86

86:                                               ; preds = %81, %78
  %87 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 0
  %88 = load i32, ptr %87, align 4, !tbaa !5
  %89 = icmp ne i32 %88, 6
  br i1 %89, label %90, label %96

90:                                               ; preds = %86
  %91 = load i32, ptr %10, align 4, !tbaa !12
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %10, align 4, !tbaa !12
  %93 = getelementptr inbounds %struct.T, ptr %5, i32 0, i32 0
  %94 = load i32, ptr %93, align 4, !tbaa !5
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %94, i32 noundef 6)
  br label %96

96:                                               ; preds = %90, %86
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !12
  br label %97

97:                                               ; preds = %140, %96
  %98 = load i32, ptr %11, align 4, !tbaa !12
  %99 = icmp slt i32 %98, 1024
  br i1 %99, label %101, label %100

100:                                              ; preds = %97
  store i32 11, ptr %12, align 4
  br label %143

101:                                              ; preds = %97
  %102 = load i32, ptr %11, align 4, !tbaa !12
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !12
  %106 = load i32, ptr %11, align 4, !tbaa !12
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %107
  %109 = load i32, ptr %108, align 4, !tbaa !12
  %110 = load i32, ptr %11, align 4, !tbaa !12
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !12
  %114 = add nsw i32 %109, %113
  %115 = icmp ne i32 %105, %114
  br i1 %115, label %116, label %139

116:                                              ; preds = %101
  %117 = load i32, ptr %10, align 4, !tbaa !12
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr %10, align 4, !tbaa !12
  %119 = load i32, ptr %11, align 4, !tbaa !12
  %120 = load i32, ptr %11, align 4, !tbaa !12
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !12
  %124 = load i32, ptr %11, align 4, !tbaa !12
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [1024 x i32], ptr %3, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !12
  %128 = load i32, ptr %11, align 4, !tbaa !12
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [1024 x i32], ptr %4, i64 0, i64 %129
  %131 = load i32, ptr %130, align 4, !tbaa !12
  %132 = add nsw i32 %127, %131
  %133 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %119, i32 noundef %123, i32 noundef %132)
  %134 = load i32, ptr %10, align 4, !tbaa !12
  %135 = icmp sgt i32 %134, 10
  br i1 %135, label %136, label %138

136:                                              ; preds = %116
  %137 = load i32, ptr %10, align 4, !tbaa !12
  store i32 %137, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %143

138:                                              ; preds = %116
  br label %139

139:                                              ; preds = %138, %101
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %11, align 4, !tbaa !12
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %11, align 4, !tbaa !12
  br label %97, !llvm.loop !17

143:                                              ; preds = %136, %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  %144 = load i32, ptr %12, align 4
  switch i32 %144, label %147 [
    i32 11, label %145
  ]

145:                                              ; preds = %143
  %146 = load i32, ptr %10, align 4, !tbaa !12
  store i32 %146, ptr %1, align 4
  store i32 1, ptr %12, align 4
  br label %147

147:                                              ; preds = %145, %143
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr %2) #3
  %148 = load i32, ptr %1, align 4
  ret i32 %148
}

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

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

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

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


; 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.2 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
vector.ph:
  %0 = alloca [1024 x i32], align 16
  %1 = alloca [1024 x i32], align 16
  %2 = alloca [1024 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %0) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %1) #3
  call void @llvm.lifetime.start.p0(i64 4096, ptr nonnull %2) #3
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next.1, %vector.body ]
  %vec.ind = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next.1, %vector.body ]
  %vec.ind71 = phi <4 x i32> [ <i32 0, i32 1, i32 2, i32 3>, %vector.ph ], [ %vec.ind.next74.1, %vector.body ]
  %step.add = add <4 x i32> %vec.ind, <i32 4, i32 4, i32 4, i32 4>
  %3 = getelementptr inbounds [1024 x i32], ptr %1, i64 0, i64 %index
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  store <4 x i32> %vec.ind, ptr %3, align 16, !tbaa !5
  store <4 x i32> %step.add, ptr %4, align 16, !tbaa !5
  %5 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %index
  %6 = add <4 x i32> %vec.ind71, <i32 3, i32 3, i32 3, i32 3>
  %7 = add <4 x i32> %vec.ind71, <i32 7, i32 7, i32 7, i32 7>
  %8 = getelementptr inbounds i8, ptr %5, i64 16
  store <4 x i32> %6, ptr %5, align 16, !tbaa !5
  store <4 x i32> %7, ptr %8, align 16, !tbaa !5
  %index.next = or disjoint i64 %index, 8
  %vec.ind.next = add <4 x i32> %vec.ind, <i32 8, i32 8, i32 8, i32 8>
  %step.add.1 = add <4 x i32> %vec.ind, <i32 12, i32 12, i32 12, i32 12>
  %9 = getelementptr inbounds [1024 x i32], ptr %1, i64 0, i64 %index.next
  %10 = getelementptr inbounds i8, ptr %9, i64 16
  store <4 x i32> %vec.ind.next, ptr %9, align 16, !tbaa !5
  store <4 x i32> %step.add.1, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %index.next
  %12 = add <4 x i32> %vec.ind71, <i32 11, i32 11, i32 11, i32 11>
  %13 = add <4 x i32> %vec.ind71, <i32 15, i32 15, i32 15, i32 15>
  %14 = getelementptr inbounds i8, ptr %11, i64 16
  store <4 x i32> %12, ptr %11, align 16, !tbaa !5
  store <4 x i32> %13, ptr %14, align 16, !tbaa !5
  %index.next.1 = add nuw nsw i64 %index, 16
  %vec.ind.next.1 = add <4 x i32> %vec.ind, <i32 16, i32 16, i32 16, i32 16>
  %vec.ind.next74.1 = add <4 x i32> %vec.ind71, <i32 16, i32 16, i32 16, i32 16>
  %15 = icmp eq i64 %index.next.1, 1024
  br i1 %15, label %.preheader52.peel.next, label %vector.body, !llvm.loop !9

.preheader52.peel.next:                           ; preds = %vector.body
  %16 = load i32, ptr %1, align 16, !tbaa !5
  %17 = load i32, ptr %2, align 16, !tbaa !5
  %18 = add nsw i32 %17, %16
  store i32 %18, ptr %0, align 16, !tbaa !5
  br label %vector.body79

vector.body79:                                    ; preds = %vector.body79.1, %.preheader52.peel.next
  %index80 = phi i64 [ 0, %.preheader52.peel.next ], [ %index.next84.1, %vector.body79.1 ]
  %offset.idx = or disjoint i64 %index80, 1
  %19 = getelementptr inbounds [1024 x i32], ptr %1, i64 0, i64 %offset.idx
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <4 x i32>, ptr %19, align 4, !tbaa !5
  %wide.load81 = load <4 x i32>, ptr %20, align 4, !tbaa !5
  %21 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %offset.idx
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  %wide.load82 = load <4 x i32>, ptr %21, align 4, !tbaa !5
  %wide.load83 = load <4 x i32>, ptr %22, align 4, !tbaa !5
  %23 = add nsw <4 x i32> %wide.load82, %wide.load
  %24 = add nsw <4 x i32> %wide.load83, %wide.load81
  %25 = getelementptr inbounds [1024 x i32], ptr %0, i64 0, i64 %offset.idx
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  store <4 x i32> %23, ptr %25, align 4, !tbaa !5
  store <4 x i32> %24, ptr %26, align 4, !tbaa !5
  %27 = icmp eq i64 %index80, 1008
  br i1 %27, label %.preheader52, label %vector.body79.1, !llvm.loop !13

vector.body79.1:                                  ; preds = %vector.body79
  %offset.idx.1 = or disjoint i64 %index80, 9
  %28 = getelementptr inbounds [1024 x i32], ptr %1, i64 0, i64 %offset.idx.1
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %wide.load.1 = load <4 x i32>, ptr %28, align 4, !tbaa !5
  %wide.load81.1 = load <4 x i32>, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %offset.idx.1
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load82.1 = load <4 x i32>, ptr %30, align 4, !tbaa !5
  %wide.load83.1 = load <4 x i32>, ptr %31, align 4, !tbaa !5
  %32 = add nsw <4 x i32> %wide.load82.1, %wide.load.1
  %33 = add nsw <4 x i32> %wide.load83.1, %wide.load81.1
  %34 = getelementptr inbounds [1024 x i32], ptr %0, i64 0, i64 %offset.idx.1
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store <4 x i32> %32, ptr %34, align 4, !tbaa !5
  store <4 x i32> %33, ptr %35, align 4, !tbaa !5
  %index.next84.1 = add nuw nsw i64 %index80, 16
  br label %vector.body79

.preheader52:                                     ; preds = %vector.body79
  %36 = getelementptr inbounds i8, ptr %1, i64 4068
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %2, i64 4068
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = add nsw i32 %39, %37
  %41 = getelementptr inbounds i8, ptr %0, i64 4068
  store i32 %40, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %1, i64 4072
  %43 = load i32, ptr %42, align 8, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %2, i64 4072
  %45 = load i32, ptr %44, align 8, !tbaa !5
  %46 = add nsw i32 %45, %43
  %47 = getelementptr inbounds i8, ptr %0, i64 4072
  store i32 %46, ptr %47, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %1, i64 4076
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %2, i64 4076
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = add nsw i32 %51, %49
  %53 = getelementptr inbounds i8, ptr %0, i64 4076
  store i32 %52, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %1, i64 4080
  %55 = load i32, ptr %54, align 16, !tbaa !5
  %56 = getelementptr inbounds i8, ptr %2, i64 4080
  %57 = load i32, ptr %56, align 16, !tbaa !5
  %58 = add nsw i32 %57, %55
  %59 = getelementptr inbounds i8, ptr %0, i64 4080
  store i32 %58, ptr %59, align 16, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %1, i64 4084
  %61 = load i32, ptr %60, align 4, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %2, i64 4084
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = add nsw i32 %63, %61
  %65 = getelementptr inbounds i8, ptr %0, i64 4084
  store i32 %64, ptr %65, align 4, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %1, i64 4088
  %67 = load i32, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %2, i64 4088
  %69 = load i32, ptr %68, align 8, !tbaa !5
  %70 = add nsw i32 %69, %67
  %71 = getelementptr inbounds i8, ptr %0, i64 4088
  store i32 %70, ptr %71, align 8, !tbaa !5
  %72 = getelementptr inbounds i8, ptr %1, i64 4092
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = getelementptr inbounds i8, ptr %2, i64 4092
  %75 = load i32, ptr %74, align 4, !tbaa !5
  %76 = add nsw i32 %75, %73
  %77 = getelementptr inbounds i8, ptr %0, i64 4092
  store i32 %76, ptr %77, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader52, %90
  %indvars.iv66 = phi i64 [ %indvars.iv.next67, %90 ], [ 0, %.preheader52 ]
  %.258 = phi i32 [ %.3, %90 ], [ 0, %.preheader52 ]
  %78 = getelementptr inbounds [1024 x i32], ptr %0, i64 0, i64 %indvars.iv66
  %79 = load i32, ptr %78, align 4, !tbaa !5
  %80 = getelementptr inbounds [1024 x i32], ptr %1, i64 0, i64 %indvars.iv66
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = getelementptr inbounds [1024 x i32], ptr %2, i64 0, i64 %indvars.iv66
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = add nsw i32 %83, %81
  %.not50 = icmp eq i32 %79, %84
  br i1 %.not50, label %90, label %85

85:                                               ; preds = %.preheader
  %86 = add nsw i32 %.258, 1
  %87 = trunc nuw nsw i64 %indvars.iv66 to i32
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %87, i32 noundef %79, i32 noundef %84)
  %89 = icmp sgt i32 %.258, 9
  br i1 %89, label %91, label %90

90:                                               ; preds = %.preheader, %85
  %.3 = phi i32 [ %86, %85 ], [ %.258, %.preheader ]
  %indvars.iv.next67 = add nuw nsw i64 %indvars.iv66, 1
  %exitcond69 = icmp eq i64 %indvars.iv.next67, 1024
  br i1 %exitcond69, label %91, label %.preheader, !llvm.loop !15

91:                                               ; preds = %85, %90
  %spec.select51 = phi i32 [ %.3, %90 ], [ %86, %85 ]
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %1) #3
  call void @llvm.lifetime.end.p0(i64 4096, ptr nonnull %0) #3
  ret i32 %spec.select51
}

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

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

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

attributes #0 = { mustprogress nofree norecurse 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !14, !11, !12}
!14 = !{!"llvm.loop.peeled.count", i32 1}
!15 = distinct !{!15, !10}


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