; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_blocked_range3d.ll (Z12ParallelTestv)

; 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.tbb::blocked_range3d" = type { %"class.tbb::blocked_range", %"class.tbb::blocked_range", %"class.tbb::blocked_range" }
%"class.tbb::blocked_range" = type { i32, i32, i64 }
%struct.Striker = type { i8 }

@Array = external dso_local global [32 x [32 x [32 x i8]]], align 16
@.str.17 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12ParallelTestv() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.tbb::blocked_range3d", align 8
  %6 = alloca %struct.Striker, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #2
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %126, %0
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = icmp slt i32 %11, 32
  br i1 %12, label %14, label %13

13:                                               ; preds = %10
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #2
  br label %128

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

15:                                               ; preds = %114, %14
  %16 = load i32, ptr %3, align 4, !tbaa !5
  %17 = icmp slt i32 %16, 32
  br i1 %17, label %19, label %18

18:                                               ; preds = %15
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #2
  br label %116

19:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %20

20:                                               ; preds = %102, %19
  %21 = load i32, ptr %4, align 4, !tbaa !5
  %22 = icmp slt i32 %21, 32
  br i1 %22, label %24, label %23

23:                                               ; preds = %20
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  br label %104

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #2
  %25 = load i32, ptr %1, align 4, !tbaa !5
  %26 = load i32, ptr %3, align 4, !tbaa !5
  %27 = load i32, ptr %4, align 4, !tbaa !5
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %5, i32 noundef 0, i32 noundef %25, i64 noundef 5, i32 noundef 0, i32 noundef %26, i64 noundef 3, i32 noundef 0, i32 noundef %27, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 1 dereferenceable(1) %6)
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #2
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %89, %24
  %29 = load i32, ptr %7, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 32
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 11, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  br label %92

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #2
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %85, %32
  %34 = load i32, ptr %8, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 32
  br i1 %35, label %37, label %36

36:                                               ; preds = %33
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  br label %88

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #2
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %81, %37
  %39 = load i32, ptr %9, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 32
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  store i32 17, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  br label %84

42:                                               ; preds = %38
  %43 = load i32, ptr %7, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %44
  %46 = load i32, ptr %8, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [32 x [32 x i8]], ptr %45, i64 0, i64 %47
  %49 = load i32, ptr %9, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [32 x i8], ptr %48, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !9
  %53 = zext i8 %52 to i32
  %54 = load i32, ptr %7, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %65

57:                                               ; preds = %42
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %65

61:                                               ; preds = %57
  %62 = load i32, ptr %9, align 4, !tbaa !5
  %63 = load i32, ptr %4, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br label %65

65:                                               ; preds = %61, %57, %42
  %66 = phi i1 [ false, %57 ], [ false, %42 ], [ %64, %61 ]
  %67 = zext i1 %66 to i32
  %68 = icmp eq i32 %53, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  br label %71

70:                                               ; preds = %65
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str.17, i32 noundef 156, ptr noundef @.str.18, ptr noundef null)
  br label %71

71:                                               ; preds = %70, %69
  %72 = load i32, ptr %7, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %73
  %75 = load i32, ptr %8, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [32 x [32 x i8]], ptr %74, i64 0, i64 %76
  %78 = load i32, ptr %9, align 4, !tbaa !5
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [32 x i8], ptr %77, i64 0, i64 %79
  store i8 0, ptr %80, align 1, !tbaa !9
  br label %81

81:                                               ; preds = %71
  %82 = load i32, ptr %9, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %9, align 4, !tbaa !5
  br label %38, !llvm.loop !10

84:                                               ; preds = %41
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %8, align 4, !tbaa !5
  br label %33, !llvm.loop !12

88:                                               ; preds = %36
  br label %89

89:                                               ; preds = %88
  %90 = load i32, ptr %7, align 4, !tbaa !5
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !5
  br label %28, !llvm.loop !13

92:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #2
  br label %93

93:                                               ; preds = %92
  %94 = load i32, ptr %4, align 4, !tbaa !5
  %95 = icmp slt i32 %94, 3
  br i1 %95, label %96, label %99

96:                                               ; preds = %93
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = add nsw i32 %97, 1
  br label %102

99:                                               ; preds = %93
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = mul nsw i32 %100, 3
  br label %102

102:                                              ; preds = %99, %96
  %103 = phi i32 [ %98, %96 ], [ %101, %99 ]
  store i32 %103, ptr %4, align 4, !tbaa !5
  br label %20, !llvm.loop !14

104:                                              ; preds = %23
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %3, align 4, !tbaa !5
  %107 = icmp slt i32 %106, 3
  br i1 %107, label %108, label %111

108:                                              ; preds = %105
  %109 = load i32, ptr %3, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  br label %114

111:                                              ; preds = %105
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = mul nsw i32 %112, 3
  br label %114

114:                                              ; preds = %111, %108
  %115 = phi i32 [ %110, %108 ], [ %113, %111 ]
  store i32 %115, ptr %3, align 4, !tbaa !5
  br label %15, !llvm.loop !15

116:                                              ; preds = %18
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %1, align 4, !tbaa !5
  %119 = icmp slt i32 %118, 3
  br i1 %119, label %120, label %123

120:                                              ; preds = %117
  %121 = load i32, ptr %1, align 4, !tbaa !5
  %122 = add nsw i32 %121, 1
  br label %126

123:                                              ; preds = %117
  %124 = load i32, ptr %1, align 4, !tbaa !5
  %125 = mul nsw i32 %124, 3
  br label %126

126:                                              ; preds = %123, %120
  %127 = phi i32 [ %122, %120 ], [ %125, %123 ]
  store i32 %127, ptr %1, align 4, !tbaa !5
  br label %10, !llvm.loop !16

128:                                              ; preds = %13
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}
!13 = distinct !{!13, !11}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}


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

%"class.tbb::blocked_range3d" = type { %"class.tbb::blocked_range", %"class.tbb::blocked_range", %"class.tbb::blocked_range" }
%"class.tbb::blocked_range" = type { i32, i32, i64 }
%struct.Striker = type { i8 }

@Array = external dso_local local_unnamed_addr global [32 x [32 x [32 x i8]]], align 16
@.str.17 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12ParallelTestv() local_unnamed_addr #1 {
  %1 = alloca %"class.tbb::blocked_range3d", align 8
  %2 = alloca %struct.Striker, align 1
  br label %.preheader40

.preheader40:                                     ; preds = %0, %6
  %.03746 = phi i32 [ 0, %0 ], [ %10, %6 ]
  %3 = sext i32 %.03746 to i64
  br label %.preheader39

4:                                                ; preds = %6
  ret void

.preheader39:                                     ; preds = %.preheader40, %77
  %.03645 = phi i32 [ 0, %.preheader40 ], [ %81, %77 ]
  %5 = sext i32 %.03645 to i64
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 0, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38

6:                                                ; preds = %77
  %7 = icmp slt i32 %.03746, 3
  %8 = add nsw i32 %.03746, 1
  %9 = mul nsw i32 %.03746, 3
  %10 = select i1 %7, i32 %8, i32 %9
  %11 = icmp slt i32 %10, 32
  br i1 %11, label %.preheader40, label %4, !llvm.loop !5

.preheader38:                                     ; preds = %.preheader39, %83
  %indvars.iv52 = phi i64 [ 0, %.preheader39 ], [ %indvars.iv.next53, %83 ]
  br label %.preheader

12:                                               ; preds = %83
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 1, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38.1

.preheader38.1:                                   ; preds = %24, %12
  %indvars.iv52.1 = phi i64 [ 0, %12 ], [ %indvars.iv.next53.1, %24 ]
  %13 = icmp slt i64 %indvars.iv52.1, %3
  br label %.preheader.1

.preheader.1:                                     ; preds = %23, %.preheader38.1
  %indvars.iv48.1 = phi i64 [ 0, %.preheader38.1 ], [ %indvars.iv.next49.1, %23 ]
  %14 = icmp slt i64 %indvars.iv48.1, %5
  %or.cond.1 = and i1 %13, %14
  br label %15

15:                                               ; preds = %22, %.preheader.1
  %indvars.iv.1 = phi i64 [ 0, %.preheader.1 ], [ %indvars.iv.next.1, %22 ]
  %16 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52.1, i64 %indvars.iv48.1, i64 %indvars.iv.1
  %17 = load i8, ptr %16, align 1, !tbaa !7
  %18 = icmp eq i64 %indvars.iv.1, 0
  %spec.select.1 = and i1 %or.cond.1, %18
  %19 = zext i1 %spec.select.1 to i8
  %20 = icmp eq i8 %17, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %15
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %22

22:                                               ; preds = %21, %15
  store i8 0, ptr %16, align 1, !tbaa !7
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, 32
  br i1 %exitcond.1.not, label %23, label %15, !llvm.loop !10

23:                                               ; preds = %22
  %indvars.iv.next49.1 = add nuw nsw i64 %indvars.iv48.1, 1
  %exitcond51.1.not = icmp eq i64 %indvars.iv.next49.1, 32
  br i1 %exitcond51.1.not, label %24, label %.preheader.1, !llvm.loop !11

24:                                               ; preds = %23
  %indvars.iv.next53.1 = add nuw nsw i64 %indvars.iv52.1, 1
  %exitcond55.1.not = icmp eq i64 %indvars.iv.next53.1, 32
  br i1 %exitcond55.1.not, label %25, label %.preheader38.1, !llvm.loop !12

25:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 2, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38.2

.preheader38.2:                                   ; preds = %37, %25
  %indvars.iv52.2 = phi i64 [ 0, %25 ], [ %indvars.iv.next53.2, %37 ]
  %26 = icmp slt i64 %indvars.iv52.2, %3
  br label %.preheader.2

.preheader.2:                                     ; preds = %36, %.preheader38.2
  %indvars.iv48.2 = phi i64 [ 0, %.preheader38.2 ], [ %indvars.iv.next49.2, %36 ]
  %27 = icmp slt i64 %indvars.iv48.2, %5
  %or.cond.2 = and i1 %26, %27
  br label %28

28:                                               ; preds = %35, %.preheader.2
  %indvars.iv.2 = phi i64 [ 0, %.preheader.2 ], [ %indvars.iv.next.2, %35 ]
  %29 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52.2, i64 %indvars.iv48.2, i64 %indvars.iv.2
  %30 = load i8, ptr %29, align 1, !tbaa !7
  %31 = icmp ult i64 %indvars.iv.2, 2
  %spec.select.2 = and i1 %or.cond.2, %31
  %32 = zext i1 %spec.select.2 to i8
  %33 = icmp eq i8 %30, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %28
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %35

35:                                               ; preds = %34, %28
  store i8 0, ptr %29, align 1, !tbaa !7
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv.2, 1
  %exitcond.2.not = icmp eq i64 %indvars.iv.next.2, 32
  br i1 %exitcond.2.not, label %36, label %28, !llvm.loop !10

36:                                               ; preds = %35
  %indvars.iv.next49.2 = add nuw nsw i64 %indvars.iv48.2, 1
  %exitcond51.2.not = icmp eq i64 %indvars.iv.next49.2, 32
  br i1 %exitcond51.2.not, label %37, label %.preheader.2, !llvm.loop !11

37:                                               ; preds = %36
  %indvars.iv.next53.2 = add nuw nsw i64 %indvars.iv52.2, 1
  %exitcond55.2.not = icmp eq i64 %indvars.iv.next53.2, 32
  br i1 %exitcond55.2.not, label %38, label %.preheader38.2, !llvm.loop !12

38:                                               ; preds = %37
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 3, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38.3

.preheader38.3:                                   ; preds = %50, %38
  %indvars.iv52.3 = phi i64 [ 0, %38 ], [ %indvars.iv.next53.3, %50 ]
  %39 = icmp slt i64 %indvars.iv52.3, %3
  br label %.preheader.3

.preheader.3:                                     ; preds = %49, %.preheader38.3
  %indvars.iv48.3 = phi i64 [ 0, %.preheader38.3 ], [ %indvars.iv.next49.3, %49 ]
  %40 = icmp slt i64 %indvars.iv48.3, %5
  %or.cond.3 = and i1 %39, %40
  br label %41

41:                                               ; preds = %48, %.preheader.3
  %indvars.iv.3 = phi i64 [ 0, %.preheader.3 ], [ %indvars.iv.next.3, %48 ]
  %42 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52.3, i64 %indvars.iv48.3, i64 %indvars.iv.3
  %43 = load i8, ptr %42, align 1, !tbaa !7
  %44 = icmp ult i64 %indvars.iv.3, 3
  %spec.select.3 = and i1 %or.cond.3, %44
  %45 = zext i1 %spec.select.3 to i8
  %46 = icmp eq i8 %43, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %41
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %48

48:                                               ; preds = %47, %41
  store i8 0, ptr %42, align 1, !tbaa !7
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv.3, 1
  %exitcond.3.not = icmp eq i64 %indvars.iv.next.3, 32
  br i1 %exitcond.3.not, label %49, label %41, !llvm.loop !10

49:                                               ; preds = %48
  %indvars.iv.next49.3 = add nuw nsw i64 %indvars.iv48.3, 1
  %exitcond51.3.not = icmp eq i64 %indvars.iv.next49.3, 32
  br i1 %exitcond51.3.not, label %50, label %.preheader.3, !llvm.loop !11

50:                                               ; preds = %49
  %indvars.iv.next53.3 = add nuw nsw i64 %indvars.iv52.3, 1
  %exitcond55.3.not = icmp eq i64 %indvars.iv.next53.3, 32
  br i1 %exitcond55.3.not, label %51, label %.preheader38.3, !llvm.loop !12

51:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 9, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38.4

.preheader38.4:                                   ; preds = %63, %51
  %indvars.iv52.4 = phi i64 [ 0, %51 ], [ %indvars.iv.next53.4, %63 ]
  %52 = icmp slt i64 %indvars.iv52.4, %3
  br label %.preheader.4

.preheader.4:                                     ; preds = %62, %.preheader38.4
  %indvars.iv48.4 = phi i64 [ 0, %.preheader38.4 ], [ %indvars.iv.next49.4, %62 ]
  %53 = icmp slt i64 %indvars.iv48.4, %5
  %or.cond.4 = and i1 %52, %53
  br label %54

54:                                               ; preds = %61, %.preheader.4
  %indvars.iv.4 = phi i64 [ 0, %.preheader.4 ], [ %indvars.iv.next.4, %61 ]
  %55 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52.4, i64 %indvars.iv48.4, i64 %indvars.iv.4
  %56 = load i8, ptr %55, align 1, !tbaa !7
  %57 = icmp ult i64 %indvars.iv.4, 9
  %spec.select.4 = and i1 %or.cond.4, %57
  %58 = zext i1 %spec.select.4 to i8
  %59 = icmp eq i8 %56, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %54
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %61

61:                                               ; preds = %60, %54
  store i8 0, ptr %55, align 1, !tbaa !7
  %indvars.iv.next.4 = add nuw nsw i64 %indvars.iv.4, 1
  %exitcond.4.not = icmp eq i64 %indvars.iv.next.4, 32
  br i1 %exitcond.4.not, label %62, label %54, !llvm.loop !10

62:                                               ; preds = %61
  %indvars.iv.next49.4 = add nuw nsw i64 %indvars.iv48.4, 1
  %exitcond51.4.not = icmp eq i64 %indvars.iv.next49.4, 32
  br i1 %exitcond51.4.not, label %63, label %.preheader.4, !llvm.loop !11

63:                                               ; preds = %62
  %indvars.iv.next53.4 = add nuw nsw i64 %indvars.iv52.4, 1
  %exitcond55.4.not = icmp eq i64 %indvars.iv.next53.4, 32
  br i1 %exitcond55.4.not, label %64, label %.preheader38.4, !llvm.loop !12

64:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %1) #2
  call void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48) %1, i32 noundef 0, i32 noundef %.03746, i64 noundef 5, i32 noundef 0, i32 noundef %.03645, i64 noundef 3, i32 noundef 0, i32 noundef 27, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #2
  call void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48) %1, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #2
  br label %.preheader38.5

.preheader38.5:                                   ; preds = %76, %64
  %indvars.iv52.5 = phi i64 [ 0, %64 ], [ %indvars.iv.next53.5, %76 ]
  %65 = icmp slt i64 %indvars.iv52.5, %3
  br label %.preheader.5

.preheader.5:                                     ; preds = %75, %.preheader38.5
  %indvars.iv48.5 = phi i64 [ 0, %.preheader38.5 ], [ %indvars.iv.next49.5, %75 ]
  %66 = icmp slt i64 %indvars.iv48.5, %5
  %or.cond.5 = and i1 %65, %66
  br label %67

67:                                               ; preds = %74, %.preheader.5
  %indvars.iv.5 = phi i64 [ 0, %.preheader.5 ], [ %indvars.iv.next.5, %74 ]
  %68 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52.5, i64 %indvars.iv48.5, i64 %indvars.iv.5
  %69 = load i8, ptr %68, align 1, !tbaa !7
  %70 = icmp ult i64 %indvars.iv.5, 27
  %spec.select.5 = and i1 %or.cond.5, %70
  %71 = zext i1 %spec.select.5 to i8
  %72 = icmp eq i8 %69, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %67
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %74

74:                                               ; preds = %73, %67
  store i8 0, ptr %68, align 1, !tbaa !7
  %indvars.iv.next.5 = add nuw nsw i64 %indvars.iv.5, 1
  %exitcond.5.not = icmp eq i64 %indvars.iv.next.5, 32
  br i1 %exitcond.5.not, label %75, label %67, !llvm.loop !10

75:                                               ; preds = %74
  %indvars.iv.next49.5 = add nuw nsw i64 %indvars.iv48.5, 1
  %exitcond51.5.not = icmp eq i64 %indvars.iv.next49.5, 32
  br i1 %exitcond51.5.not, label %76, label %.preheader.5, !llvm.loop !11

76:                                               ; preds = %75
  %indvars.iv.next53.5 = add nuw nsw i64 %indvars.iv52.5, 1
  %exitcond55.5.not = icmp eq i64 %indvars.iv.next53.5, 32
  br i1 %exitcond55.5.not, label %77, label %.preheader38.5, !llvm.loop !12

77:                                               ; preds = %76
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %1) #2
  %78 = icmp slt i32 %.03645, 3
  %79 = add nsw i32 %.03645, 1
  %80 = mul nsw i32 %.03645, 3
  %81 = select i1 %78, i32 %79, i32 %80
  %82 = icmp slt i32 %81, 32
  br i1 %82, label %.preheader39, label %6, !llvm.loop !13

.preheader:                                       ; preds = %.preheader38, %84
  %indvars.iv48 = phi i64 [ 0, %.preheader38 ], [ %indvars.iv.next49, %84 ]
  br label %85

83:                                               ; preds = %84
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond55.not = icmp eq i64 %indvars.iv.next53, 32
  br i1 %exitcond55.not, label %12, label %.preheader38, !llvm.loop !12

84:                                               ; preds = %90
  %indvars.iv.next49 = add nuw nsw i64 %indvars.iv48, 1
  %exitcond51.not = icmp eq i64 %indvars.iv.next49, 32
  br i1 %exitcond51.not, label %83, label %.preheader, !llvm.loop !11

85:                                               ; preds = %.preheader, %90
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next, %90 ]
  %86 = getelementptr inbounds [32 x [32 x [32 x i8]]], ptr @Array, i64 0, i64 %indvars.iv52, i64 %indvars.iv48, i64 %indvars.iv
  %87 = load i8, ptr %86, align 1, !tbaa !7
  %88 = icmp eq i8 %87, 0
  br i1 %88, label %90, label %89

89:                                               ; preds = %85
  call void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str.17, i32 noundef 156, ptr noundef nonnull @.str.18, ptr noundef null)
  br label %90

90:                                               ; preds = %85, %89
  store i8 0, ptr %86, align 1, !tbaa !7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  br i1 %exitcond.not, label %84, label %85, !llvm.loop !10
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb15blocked_range3dIiiiEC2Eiimiimiim(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef, i32 noundef, i32 noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb12parallel_forINS_15blocked_range3dIiiiEE7StrikerEEvRKT_RKT0_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass