; LLVM IR from cjmcv/hpc :: tbb (base_parallel_scan)

; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Body = type { i32, ptr, ptr }
%"class.tbb::detail::d1::blocked_range" = type { i32, i32, i64 }
%"class.tbb::detail::d1::auto_partitioner" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca %class.Body, align 8
  %9 = alloca %"class.tbb::detail::d1::blocked_range", align 8
  %10 = alloca %"class.tbb::detail::d1::auto_partitioner", align 1
  %11 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #9
  store i32 100, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  %12 = call noalias noundef nonnull ptr @_Znam(i64 noundef 400) #10
  store ptr %12, ptr %3, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  %13 = call noalias noundef nonnull ptr @_Znam(i64 noundef 400) #10
  store ptr %13, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %28, %0
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 100
  br i1 %16, label %18, label %17

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

18:                                               ; preds = %14
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = load ptr, ptr %3, align 8, !tbaa !9
  %21 = load i32, ptr %5, align 4, !tbaa !5
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i32, ptr %20, i64 %22
  store i32 %19, ptr %23, align 4, !tbaa !5
  %24 = load ptr, ptr %4, align 8, !tbaa !9
  %25 = load i32, ptr %5, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i32, ptr %24, i64 %26
  store i32 0, ptr %27, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %18
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = add nsw i32 %29, 1
  store i32 %30, ptr %5, align 4, !tbaa !5
  br label %14, !llvm.loop !11

31:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %32 = call i64 @clock() #9
  store i64 %32, ptr %6, align 8, !tbaa !13
  %33 = load ptr, ptr %3, align 8, !tbaa !9
  %34 = getelementptr inbounds i32, ptr %33, i64 0
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = load ptr, ptr %4, align 8, !tbaa !9
  %37 = getelementptr inbounds i32, ptr %36, i64 0
  store i32 %35, ptr %37, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %38

38:                                               ; preds = %59, %31
  %39 = load i32, ptr %7, align 4, !tbaa !5
  %40 = icmp slt i32 %39, 100
  br i1 %40, label %42, label %41

41:                                               ; preds = %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %62

42:                                               ; preds = %38
  %43 = load ptr, ptr %3, align 8, !tbaa !9
  %44 = load i32, ptr %7, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds i32, ptr %43, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = load ptr, ptr %4, align 8, !tbaa !9
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %50 = sub nsw i32 %49, 1
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i32, ptr %48, i64 %51
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = add nsw i32 %47, %53
  %55 = load ptr, ptr %4, align 8, !tbaa !9
  %56 = load i32, ptr %7, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds i32, ptr %55, i64 %57
  store i32 %54, ptr %58, align 4, !tbaa !5
  br label %59

59:                                               ; preds = %42
  %60 = load i32, ptr %7, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %7, align 4, !tbaa !5
  br label %38, !llvm.loop !15

62:                                               ; preds = %41
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %64 = call i64 @clock() #9
  %65 = load i64, ptr %6, align 8, !tbaa !13
  %66 = sub nsw i64 %64, %65
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %63, i64 noundef %66)
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @.str.1)
  %69 = load ptr, ptr %4, align 8, !tbaa !9
  %70 = getelementptr inbounds i32, ptr %69, i64 99
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %68, i32 noundef %71)
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 4 %74, i8 0, i64 400, i1 false)
  %75 = call i64 @clock() #9
  store i64 %75, ptr %6, align 8, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #9
  %76 = load ptr, ptr %4, align 8, !tbaa !9
  %77 = load ptr, ptr %3, align 8, !tbaa !9
  call void @_ZN4BodyIiEC2EPiPKi(ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef %76, ptr noundef %77)
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #9
  call void @_ZN3tbb6detail2d113blocked_rangeIiEC2Eiim(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 0, i32 noundef 100, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #9
  call void @_ZN3tbb6detail2d116auto_partitionerC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @_ZN3tbb6detail2d113parallel_scanINS1_13blocked_rangeIiEE4BodyIiEEEvRKT_RT0_RKNS1_16auto_partitionerE(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 1 dereferenceable(1) %10)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #9
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  %79 = call i64 @clock() #9
  %80 = load i64, ptr %6, align 8, !tbaa !13
  %81 = sub nsw i64 %79, %80
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 noundef %81)
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef @.str.1)
  %84 = call noundef i32 @_ZNK4BodyIiE7get_sumEv(ptr noundef nonnull align 8 dereferenceable(24) %8)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %83, i32 noundef %84)
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #9
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %99, %62
  %88 = load i32, ptr %11, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 100
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #9
  br label %102

91:                                               ; preds = %87
  %92 = load ptr, ptr %4, align 8, !tbaa !9
  %93 = load i32, ptr %11, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %96)
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef @.str.3)
  br label %99

99:                                               ; preds = %91
  %100 = load i32, ptr %11, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %11, align 4, !tbaa !5
  br label %87, !llvm.loop !16

102:                                              ; preds = %90
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #9
  ret i32 0
}

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

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

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

; Function Attrs: nounwind
declare i64 @clock() #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BodyIiEC2EPiPKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb6detail2d113parallel_scanINS1_13blocked_rangeIiEE4BodyIiEEEvRKT_RT0_RKNS1_16auto_partitionerE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb6detail2d116auto_partitionerC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4BodyIiE7get_sumEv(ptr noundef nonnull align 8 dereferenceable(24)) #8 align 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 = { 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 #3 = { 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 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress 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 #9 = { nounwind }
attributes #10 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


; 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.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%class.Body = type { i32, ptr, ptr }
%"class.tbb::detail::d1::blocked_range" = type { i32, i32, i64 }
%"class.tbb::detail::d1::auto_partitioner" = type { i8 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1

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

35:                                               ; preds = %54
  %36 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  %37 = tail call i64 @clock() #10
  %38 = sub nsw i64 %37, %33
  %39 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %36, i64 noundef %38)
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.1)
  %41 = getelementptr inbounds i8, ptr %4, i64 396
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %40, i32 noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(400) %4, i8 0, i64 400, i1 false)
  %45 = tail call i64 @clock() #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %0) #10
  call void @_ZN4BodyIiEC2EPiPKi(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %4, ptr noundef nonnull %3)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #10
  call void @_ZN3tbb6detail2d113blocked_rangeIiEC2Eiim(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef 0, i32 noundef 100, i64 noundef 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #10
  call void @_ZN3tbb6detail2d116auto_partitionerC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @_ZN3tbb6detail2d113parallel_scanINS1_13blocked_rangeIiEE4BodyIiEEEvRKT_RT0_RKNS1_16auto_partitionerE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #10
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.2)
  %47 = call i64 @clock() #10
  %48 = sub nsw i64 %47, %45
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) %46, i64 noundef %48)
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.1)
  %51 = call noundef i32 @_ZNK4BodyIiE7get_sumEv(ptr noundef nonnull align 8 dereferenceable(24) %0)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %68

54:                                               ; preds = %54, %vector.ph
  %store_forwarded = phi i32 [ %34, %vector.ph ], [ %66, %54 ]
  %indvars.iv32 = phi i64 [ 1, %vector.ph ], [ %indvars.iv.next33.2, %54 ]
  %55 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv32
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = getelementptr i32, ptr %4, i64 %indvars.iv32
  %58 = add nsw i32 %store_forwarded, %56
  store i32 %58, ptr %57, align 4, !tbaa !5
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %59 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next33
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = getelementptr i32, ptr %4, i64 %indvars.iv.next33
  %62 = add nsw i32 %58, %60
  store i32 %62, ptr %61, align 4, !tbaa !5
  %indvars.iv.next33.1 = add nuw nsw i64 %indvars.iv32, 2
  %63 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv.next33.1
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr i32, ptr %4, i64 %indvars.iv.next33.1
  %66 = add nsw i32 %62, %64
  store i32 %66, ptr %65, align 4, !tbaa !5
  %indvars.iv.next33.2 = add nuw nsw i64 %indvars.iv32, 3
  %exitcond35.not.2 = icmp eq i64 %indvars.iv.next33.2, 100
  br i1 %exitcond35.not.2, label %35, label %54, !llvm.loop !9

67:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %0) #10
  ret i32 0

68:                                               ; preds = %35, %68
  %indvars.iv36 = phi i64 [ 0, %35 ], [ %indvars.iv.next37, %68 ]
  %69 = getelementptr inbounds i32, ptr %4, i64 %indvars.iv36
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %70)
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.3)
  %indvars.iv.next37 = add nuw nsw i64 %indvars.iv36, 1
  %exitcond39.not = icmp eq i64 %indvars.iv.next37, 100
  br i1 %exitcond39.not, label %67, label %68, !llvm.loop !11
}

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

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

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4BodyIiEC2EPiPKi(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) unnamed_addr #8 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3tbb6detail2d113parallel_scanINS1_13blocked_rangeIiEE4BodyIiEEEvRKT_RT0_RKNS1_16auto_partitionerE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3tbb6detail2d116auto_partitionerC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #8 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4BodyIiE7get_sumEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8 align 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 = { 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 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress 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 #9 = { builtin allocsize(0) }
attributes #10 = { 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}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass