; LLVM IR from ROCm/aomp :: test/smoke/simd (simd)

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

@.str = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca [100 x i32], align 16
  %3 = alloca [100 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 400, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 400, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %20, %0
  %11 = load i32, ptr %4, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 100
  br i1 %12, label %13, label %23

13:                                               ; preds = %10
  %14 = load i32, ptr %4, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %15
  store i32 -1, ptr %16, align 4, !tbaa !5
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %18
  store i32 -1, ptr %19, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %13
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %4, align 4, !tbaa !5
  br label %10, !llvm.loop !9

23:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %24

24:                                               ; preds = %32, %23
  %25 = load i32, ptr %6, align 4, !tbaa !5
  %26 = icmp slt i32 %25, 100
  br i1 %26, label %27, label %35

27:                                               ; preds = %24
  %28 = load i32, ptr %6, align 4, !tbaa !5
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %30
  store i32 %28, ptr %31, align 4, !tbaa !5
  br label %32

32:                                               ; preds = %27
  %33 = load i32, ptr %6, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %6, align 4, !tbaa !5
  br label %24, !llvm.loop !11

35:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %44, %35
  %37 = load i32, ptr %4, align 4, !tbaa !5
  %38 = icmp slt i32 %37, 100
  br i1 %38, label %39, label %47

39:                                               ; preds = %36
  %40 = load i32, ptr %4, align 4, !tbaa !5
  %41 = load i32, ptr %4, align 4, !tbaa !5
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %42
  store i32 %40, ptr %43, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %39
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %36, !llvm.loop !12

47:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 -1, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 -1, ptr %8, align 4, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %71, %47
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 100
  br i1 %50, label %51, label %74

51:                                               ; preds = %48
  %52 = load i32, ptr %4, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = load i32, ptr %4, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp ne i32 %55, %59
  br i1 %60, label %61, label %70

61:                                               ; preds = %51
  %62 = load i32, ptr %7, align 4, !tbaa !5
  %63 = icmp eq i32 %62, -1
  br i1 %63, label %64, label %66

64:                                               ; preds = %61
  %65 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %65, ptr %7, align 4, !tbaa !5
  br label %66

66:                                               ; preds = %64, %61
  %67 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %67, ptr %8, align 4, !tbaa !5
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %66, %51
  br label %71

71:                                               ; preds = %70
  %72 = load i32, ptr %4, align 4, !tbaa !5
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %4, align 4, !tbaa !5
  br label %48, !llvm.loop !13

74:                                               ; preds = %48
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %115

77:                                               ; preds = %74
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %80, label %91

80:                                               ; preds = %77
  %81 = load i32, ptr %7, align 4, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = load i32, ptr %7, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %81, i32 noundef %85, i32 noundef %89)
  br label %114

91:                                               ; preds = %77
  %92 = load i32, ptr %7, align 4, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !5
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %92, i32 noundef %96, i32 noundef %100, i32 noundef %101)
  %103 = load i32, ptr %8, align 4, !tbaa !5
  %104 = load i32, ptr %8, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100 x i32], ptr %2, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [100 x i32], ptr %3, i64 0, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  %112 = load i32, ptr %5, align 4, !tbaa !5
  %113 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %103, i32 noundef %107, i32 noundef %111, i32 noundef %112)
  br label %114

114:                                              ; preds = %91, %80
  store i32 0, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %119

115:                                              ; preds = %74
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i32 noundef %116)
  %118 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %118, ptr %1, align 4
  store i32 1, ptr %9, align 4
  br label %119

119:                                              ; preds = %115, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 400, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 400, ptr %2) #3
  %120 = load i32, ptr %1, align 4
  ret i32 %120
}

; 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 = { 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 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10}


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

; Function Attrs: nofree nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
.preheader47.preheader:
  %0 = alloca [100 x i32], align 16
  %1 = alloca [100 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %0) #4
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %1) #4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %0, i8 -1, i64 400, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(400) %1, i8 -1, i64 400, i1 false), !tbaa !5
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, ptr %0, align 16, !tbaa !5
  store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, ptr %2, align 16, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = getelementptr inbounds i8, ptr %0, i64 48
  store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, ptr %3, align 16, !tbaa !5
  store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, ptr %4, align 16, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = getelementptr inbounds i8, ptr %0, i64 80
  store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, ptr %5, align 16, !tbaa !5
  store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, ptr %6, align 16, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 96
  %8 = getelementptr inbounds i8, ptr %0, i64 112
  store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, ptr %7, align 16, !tbaa !5
  store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, ptr %8, align 16, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 128
  %10 = getelementptr inbounds i8, ptr %0, i64 144
  store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, ptr %9, align 16, !tbaa !5
  store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, ptr %10, align 16, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 160
  %12 = getelementptr inbounds i8, ptr %0, i64 176
  store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, ptr %11, align 16, !tbaa !5
  store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, ptr %12, align 16, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 192
  %14 = getelementptr inbounds i8, ptr %0, i64 208
  store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, ptr %13, align 16, !tbaa !5
  store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, ptr %14, align 16, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 224
  %16 = getelementptr inbounds i8, ptr %0, i64 240
  store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, ptr %15, align 16, !tbaa !5
  store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, ptr %16, align 16, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 256
  %18 = getelementptr inbounds i8, ptr %0, i64 272
  store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, ptr %17, align 16, !tbaa !5
  store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %0, i64 288
  %20 = getelementptr inbounds i8, ptr %0, i64 304
  store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, ptr %19, align 16, !tbaa !5
  store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, ptr %20, align 16, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %0, i64 320
  %22 = getelementptr inbounds i8, ptr %0, i64 336
  store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, ptr %21, align 16, !tbaa !5
  store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, ptr %22, align 16, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 352
  %24 = getelementptr inbounds i8, ptr %0, i64 368
  store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, ptr %23, align 16, !tbaa !5
  store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, ptr %24, align 16, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %0, i64 384
  store i32 96, ptr %25, align 16, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %0, i64 388
  store i32 97, ptr %26, align 4, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %0, i64 392
  store i32 98, ptr %27, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %0, i64 396
  store i32 99, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds i8, ptr %1, i64 16
  store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, ptr %1, align 16, !tbaa !5
  store <4 x i32> <i32 4, i32 5, i32 6, i32 7>, ptr %29, align 16, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %1, i64 32
  %31 = getelementptr inbounds i8, ptr %1, i64 48
  store <4 x i32> <i32 8, i32 9, i32 10, i32 11>, ptr %30, align 16, !tbaa !5
  store <4 x i32> <i32 12, i32 13, i32 14, i32 15>, ptr %31, align 16, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %1, i64 64
  %33 = getelementptr inbounds i8, ptr %1, i64 80
  store <4 x i32> <i32 16, i32 17, i32 18, i32 19>, ptr %32, align 16, !tbaa !5
  store <4 x i32> <i32 20, i32 21, i32 22, i32 23>, ptr %33, align 16, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %1, i64 96
  %35 = getelementptr inbounds i8, ptr %1, i64 112
  store <4 x i32> <i32 24, i32 25, i32 26, i32 27>, ptr %34, align 16, !tbaa !5
  store <4 x i32> <i32 28, i32 29, i32 30, i32 31>, ptr %35, align 16, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %1, i64 128
  %37 = getelementptr inbounds i8, ptr %1, i64 144
  store <4 x i32> <i32 32, i32 33, i32 34, i32 35>, ptr %36, align 16, !tbaa !5
  store <4 x i32> <i32 36, i32 37, i32 38, i32 39>, ptr %37, align 16, !tbaa !5
  %38 = getelementptr inbounds i8, ptr %1, i64 160
  %39 = getelementptr inbounds i8, ptr %1, i64 176
  store <4 x i32> <i32 40, i32 41, i32 42, i32 43>, ptr %38, align 16, !tbaa !5
  store <4 x i32> <i32 44, i32 45, i32 46, i32 47>, ptr %39, align 16, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %1, i64 192
  %41 = getelementptr inbounds i8, ptr %1, i64 208
  store <4 x i32> <i32 48, i32 49, i32 50, i32 51>, ptr %40, align 16, !tbaa !5
  store <4 x i32> <i32 52, i32 53, i32 54, i32 55>, ptr %41, align 16, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %1, i64 224
  %43 = getelementptr inbounds i8, ptr %1, i64 240
  store <4 x i32> <i32 56, i32 57, i32 58, i32 59>, ptr %42, align 16, !tbaa !5
  store <4 x i32> <i32 60, i32 61, i32 62, i32 63>, ptr %43, align 16, !tbaa !5
  %44 = getelementptr inbounds i8, ptr %1, i64 256
  %45 = getelementptr inbounds i8, ptr %1, i64 272
  store <4 x i32> <i32 64, i32 65, i32 66, i32 67>, ptr %44, align 16, !tbaa !5
  store <4 x i32> <i32 68, i32 69, i32 70, i32 71>, ptr %45, align 16, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %1, i64 288
  %47 = getelementptr inbounds i8, ptr %1, i64 304
  store <4 x i32> <i32 72, i32 73, i32 74, i32 75>, ptr %46, align 16, !tbaa !5
  store <4 x i32> <i32 76, i32 77, i32 78, i32 79>, ptr %47, align 16, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %1, i64 320
  %49 = getelementptr inbounds i8, ptr %1, i64 336
  store <4 x i32> <i32 80, i32 81, i32 82, i32 83>, ptr %48, align 16, !tbaa !5
  store <4 x i32> <i32 84, i32 85, i32 86, i32 87>, ptr %49, align 16, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %1, i64 352
  %51 = getelementptr inbounds i8, ptr %1, i64 368
  store <4 x i32> <i32 88, i32 89, i32 90, i32 91>, ptr %50, align 16, !tbaa !5
  store <4 x i32> <i32 92, i32 93, i32 94, i32 95>, ptr %51, align 16, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %1, i64 384
  store i32 96, ptr %52, align 16, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %1, i64 388
  store i32 97, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds i8, ptr %1, i64 392
  store i32 98, ptr %54, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %1, i64 396
  store i32 99, ptr %55, align 4, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %.preheader, %.preheader47.preheader
  %indvars.iv61 = phi i64 [ 0, %.preheader47.preheader ], [ %indvars.iv.next62.1, %.preheader ]
  %.054 = phi i32 [ -1, %.preheader47.preheader ], [ %.1.1, %.preheader ]
  %.03653 = phi i32 [ -1, %.preheader47.preheader ], [ %.2.1, %.preheader ]
  %.03952 = phi i32 [ 0, %.preheader47.preheader ], [ %.140.1, %.preheader ]
  %56 = getelementptr inbounds [100 x i32], ptr %0, i64 0, i64 %indvars.iv61
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %indvars.iv61
  %59 = load i32, ptr %58, align 8, !tbaa !5
  %.not45 = icmp ne i32 %57, %59
  %60 = icmp eq i32 %.03653, -1
  %61 = zext i1 %.not45 to i32
  %.140 = add nuw nsw i32 %.03952, %61
  %62 = select i1 %.not45, i1 %60, i1 false
  %63 = trunc nuw nsw i64 %indvars.iv61 to i32
  %.2 = select i1 %62, i32 %63, i32 %.03653
  %.1 = select i1 %.not45, i32 %63, i32 %.054
  %indvars.iv.next62 = or disjoint i64 %indvars.iv61, 1
  %64 = getelementptr inbounds [100 x i32], ptr %0, i64 0, i64 %indvars.iv.next62
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %indvars.iv.next62
  %67 = load i32, ptr %66, align 4, !tbaa !5
  %.not45.1 = icmp ne i32 %65, %67
  %68 = icmp eq i32 %.2, -1
  %69 = zext i1 %.not45.1 to i32
  %.140.1 = add nuw nsw i32 %.140, %69
  %70 = select i1 %.not45.1, i1 %68, i1 false
  %71 = trunc nuw nsw i64 %indvars.iv.next62 to i32
  %.2.1 = select i1 %70, i32 %71, i32 %.2
  %.1.1 = select i1 %.not45.1, i32 %71, i32 %.1
  %indvars.iv.next62.1 = add nuw nsw i64 %indvars.iv61, 2
  %exitcond64.not.1 = icmp eq i64 %indvars.iv.next62.1, 100
  br i1 %exitcond64.not.1, label %72, label %.preheader, !llvm.loop !9

72:                                               ; preds = %.preheader
  switch i32 %.140.1, label %80 [
    i32 0, label %93
    i32 1, label %73
  ]

73:                                               ; preds = %72
  %74 = sext i32 %.2.1 to i64
  %75 = getelementptr inbounds [100 x i32], ptr %0, i64 0, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %74
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %.2.1, i32 noundef %76, i32 noundef %78)
  br label %95

80:                                               ; preds = %72
  %81 = sext i32 %.2.1 to i64
  %82 = getelementptr inbounds [100 x i32], ptr %0, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !5
  %84 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %81
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %.2.1, i32 noundef %83, i32 noundef %85, i32 noundef %.140.1)
  %87 = sext i32 %.1.1 to i64
  %88 = getelementptr inbounds [100 x i32], ptr %0, i64 0, i64 %87
  %89 = load i32, ptr %88, align 4, !tbaa !5
  %90 = getelementptr inbounds [100 x i32], ptr %1, i64 0, i64 %87
  %91 = load i32, ptr %90, align 4, !tbaa !5
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %.1.1, i32 noundef %89, i32 noundef %91, i32 noundef %.140.1)
  br label %95

93:                                               ; preds = %72
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i32 noundef 0)
  br label %95

95:                                               ; preds = %73, %80, %93
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %1) #4
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %0) #4
  ret i32 0
}

; 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

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

attributes #0 = { nofree 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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