; LLVM IR from redhatdragon/EchoEngine :: HAL/ExampleImplimentations/Windows/OpenMP3/[resources]/example.ll (Z7LoadMP3PKvj)

; 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.OpenMP3::Library" = type { i8 }
%"class.OpenMP3::Iterator" = type <{ ptr, ptr, ptr, i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.OpenMP3::Decoder" = type <{ ptr, [8320 x i8], [10496 x i8], [2 x [32 x [18 x float]]], [2 x [1024 x float]], ptr, i32, [4 x i8] }>
%"class.OpenMP3::Frame" = type { i8, i8, i32, i8, ptr, i32, i32 }

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

declare void @_ZN7OpenMP37LibraryC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1

declare void @_ZN7OpenMP38IteratorC1ERKNS_7LibraryEPKhj(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) unnamed_addr #1

declare void @_ZN7OpenMP35FrameC1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

declare noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(32)) #1

declare noundef i32 @_ZNK7OpenMP35Frame7GetModeEv(ptr noundef nonnull align 8 dereferenceable(32)) #1

; 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
define dso_local void @_Z7LoadMP3PKvj(ptr noundef %0, i32 noundef %1) #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.OpenMP3::Library", align 1
  %6 = alloca %"class.OpenMP3::Iterator", align 8
  %7 = alloca [2 x [1152 x float]], align 16
  %8 = alloca [2 x %"class.std::vector"], align 16
  %9 = alloca i8, align 1
  %10 = alloca %"class.OpenMP3::Decoder", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.OpenMP3::Frame", align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #4
  call void @_ZN7OpenMP37LibraryC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %5)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #4
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load i32, ptr %4, align 4, !tbaa !9
  call void @_ZN7OpenMP38IteratorC1ERKNS_7LibraryEPKhj(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 1 dereferenceable(1) %5, ptr noundef %21, i32 noundef %22)
  call void @llvm.lifetime.start.p0(i64 9216, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #4
  %23 = getelementptr inbounds [2 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %24 = getelementptr inbounds %"class.std::vector", ptr %23, i64 2
  br label %25

25:                                               ; preds = %25, %2
  %26 = phi ptr [ %23, %2 ], [ %27, %25 ]
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #4
  %27 = getelementptr inbounds %"class.std::vector", ptr %26, i64 1
  %28 = icmp eq ptr %27, %24
  br i1 %28, label %29, label %25

29:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  store i8 1, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 31640, ptr %10) #4
  invoke void @_ZN7OpenMP37DecoderC1ERKNS_7LibraryE(ptr noundef nonnull align 8 dereferenceable(31636) %10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %30 unwind label %43

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  invoke void @_ZN7OpenMP35FrameC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %31 unwind label %47

31:                                               ; preds = %30
  br label %32

32:                                               ; preds = %91, %31
  %33 = invoke noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25) %6, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %34 unwind label %47

34:                                               ; preds = %32
  br i1 %33, label %35, label %95

35:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %36 = getelementptr inbounds [2 x [1152 x float]], ptr %7, i64 0, i64 0
  %37 = invoke noundef i32 @_ZN7OpenMP37Decoder12ProcessFrameERKNS_5FrameEPA1152_f(ptr noundef nonnull align 8 dereferenceable(31636) %10, ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef %36)
          to label %38 unwind label %51

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

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

42:                                               ; preds = %39
  store i32 4, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %84

43:                                               ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %11, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %12, align 4
  br label %107

47:                                               ; preds = %32, %30
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %11, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %12, align 4
  br label %106

51:                                               ; preds = %87, %35
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %11, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %12, align 4
  br label %94

55:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [2 x %"class.std::vector"], ptr %8, i64 0, i64 %57
  store ptr %58, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %59 = load i32, ptr %15, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [2 x [1152 x float]], ptr %7, i64 0, i64 %60
  %62 = getelementptr inbounds [1152 x float], ptr %61, i64 0, i64 0
  store ptr %62, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %73, %55
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 7, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %80

68:                                               ; preds = %63
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = load ptr, ptr %18, align 8, !tbaa !5
  %71 = getelementptr inbounds float, ptr %70, i32 1
  store ptr %71, ptr %18, align 8, !tbaa !5
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 4 dereferenceable(4) %70)
          to label %72 unwind label %76

72:                                               ; preds = %68
  br label %73

73:                                               ; preds = %72
  %74 = load i32, ptr %19, align 4, !tbaa !9
  %75 = add i32 %74, 1
  store i32 %75, ptr %19, align 4, !tbaa !9
  br label %63, !llvm.loop !13

76:                                               ; preds = %68
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %11, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  br label %94

80:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %15, align 4, !tbaa !9
  br label %39, !llvm.loop !15

84:                                               ; preds = %42
  %85 = load i8, ptr %9, align 1, !tbaa !11, !range !16, !noundef !17
  %86 = trunc i8 %85 to i1
  br i1 %86, label %87, label %91

87:                                               ; preds = %84
  %88 = invoke noundef i32 @_ZNK7OpenMP35Frame7GetModeEv(ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %89 unwind label %51

89:                                               ; preds = %87
  %90 = icmp eq i32 %88, 3
  br label %91

91:                                               ; preds = %89, %84
  %92 = phi i1 [ false, %84 ], [ %90, %89 ]
  %93 = zext i1 %92 to i8
  store i8 %93, ptr %9, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %32, !llvm.loop !18

94:                                               ; preds = %76, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %106

95:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %96 = getelementptr inbounds [2 x %"class.std::vector"], ptr %8, i64 0, i64 0
  %97 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %96) #4
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 31640, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  %99 = getelementptr inbounds [2 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %100 = getelementptr inbounds %"class.std::vector", ptr %99, i64 2
  br label %101

101:                                              ; preds = %101, %95
  %102 = phi ptr [ %100, %95 ], [ %103, %101 ]
  %103 = getelementptr inbounds %"class.std::vector", ptr %102, i64 -1
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %103) #4
  %104 = icmp eq ptr %103, %99
  br i1 %104, label %105, label %101

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 9216, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  ret void

106:                                              ; preds = %94, %47
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  br label %107

107:                                              ; preds = %106, %43
  call void @llvm.lifetime.end.p0(i64 31640, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  %108 = getelementptr inbounds [2 x %"class.std::vector"], ptr %8, i32 0, i32 0
  %109 = getelementptr inbounds %"class.std::vector", ptr %108, i64 2
  br label %110

110:                                              ; preds = %110, %107
  %111 = phi ptr [ %109, %107 ], [ %112, %110 ]
  %112 = getelementptr inbounds %"class.std::vector", ptr %111, i64 -1
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %112) #4
  %113 = icmp eq ptr %112, %108
  br i1 %113, label %114, label %110

114:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 9216, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #4
  br label %115

115:                                              ; preds = %114
  %116 = load ptr, ptr %11, align 8
  %117 = load i32, ptr %12, align 4
  %118 = insertvalue { ptr, i32 } poison, ptr %116, 0
  %119 = insertvalue { ptr, i32 } %118, i32 %117, 1
  resume { ptr, i32 } %119
}

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

declare void @_ZN7OpenMP37DecoderC1ERKNS_7LibraryE(ptr noundef nonnull align 8 dereferenceable(31636), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_ZN7OpenMP37Decoder12ProcessFrameERKNS_5FrameEPA1152_f(ptr noundef nonnull align 8 dereferenceable(31636), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !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"

%"class.OpenMP3::Library" = type { i8 }
%"class.OpenMP3::Iterator" = type <{ ptr, ptr, ptr, i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.OpenMP3::Decoder" = type <{ ptr, [8320 x i8], [10496 x i8], [2 x [32 x [18 x float]]], [2 x [1024 x float]], ptr, i32, [4 x i8] }>
%"class.OpenMP3::Frame" = type { i8, i8, i32, i8, ptr, i32, i32 }

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

declare void @_ZN7OpenMP37LibraryC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1

declare void @_ZN7OpenMP38IteratorC1ERKNS_7LibraryEPKhj(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef, i32 noundef) unnamed_addr #1

declare void @_ZN7OpenMP35FrameC1Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1

declare noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

declare noundef i32 @_ZNK7OpenMP35Frame7GetModeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

; 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
define dso_local void @_Z7LoadMP3PKvj(ptr noundef %0, i32 noundef %1) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.OpenMP3::Library", align 1
  %4 = alloca %"class.OpenMP3::Iterator", align 8
  %5 = alloca [2 x [1152 x float]], align 16
  %6 = alloca [2 x %"class.std::vector"], align 16
  %7 = alloca %"class.OpenMP3::Decoder", align 8
  %8 = alloca %"class.OpenMP3::Frame", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZN7OpenMP37LibraryC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #4
  call void @_ZN7OpenMP38IteratorC1ERKNS_7LibraryEPKhj(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 1 dereferenceable(1) %3, ptr noundef %0, i32 noundef %1)
  call void @llvm.lifetime.start.p0(i64 9216, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #4
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %.ptr.1 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIfSaIfEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1) #4
  call void @llvm.lifetime.start.p0(i64 31640, ptr nonnull %7) #4
  invoke void @_ZN7OpenMP37DecoderC1ERKNS_7LibraryE(ptr noundef nonnull align 8 dereferenceable(31636) %7, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %9 unwind label %21

9:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #4
  invoke void @_ZN7OpenMP35FrameC1Ev(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %.preheader27.preheader unwind label %.loopexit.split-lp

.preheader27.preheader:                           ; preds = %9
  %10 = getelementptr inbounds i8, ptr %5, i64 4608
  br label %.preheader27

.preheader27:                                     ; preds = %.preheader27.backedge, %.preheader27.preheader
  %.0 = phi i1 [ true, %.preheader27.preheader ], [ %.0.be, %.preheader27.backedge ]
  %11 = invoke noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25) %4, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %12 unwind label %.loopexit

12:                                               ; preds = %.preheader27
  br i1 %11, label %13, label %29

13:                                               ; preds = %12
  %14 = invoke noundef i32 @_ZN7OpenMP37Decoder12ProcessFrameERKNS_5FrameEPA1152_f(ptr noundef nonnull align 8 dereferenceable(31636) %7, ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull %5)
          to label %.preheader unwind label %23

.preheader:                                       ; preds = %13
  %.not = icmp eq i32 %14, 0
  br i1 %.not, label %.split.us, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.preheader, %15
  %.01329.us = phi i32 [ %17, %15 ], [ 0, %.preheader ]
  %.01428.us = phi ptr [ %16, %15 ], [ %5, %.preheader ]
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 4 dereferenceable(4) %.01428.us)
          to label %15 unwind label %.split32.us.loopexit

15:                                               ; preds = %.lr.ph.us.preheader
  %16 = getelementptr inbounds i8, ptr %.01428.us, i64 4
  %17 = add nuw i32 %.01329.us, 1
  %exitcond.not = icmp eq i32 %17, %14
  br i1 %exitcond.not, label %._crit_edge.us, label %.lr.ph.us.preheader, !llvm.loop !5

._crit_edge.us:                                   ; preds = %15, %18
  %.01329.us.1 = phi i32 [ %20, %18 ], [ 0, %15 ]
  %.01428.us.1 = phi ptr [ %19, %18 ], [ %10, %15 ]
  invoke void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24) %.ptr.1, ptr noundef nonnull align 4 dereferenceable(4) %.01428.us.1)
          to label %18 unwind label %.split32.us.loopexit.split-lp

18:                                               ; preds = %._crit_edge.us
  %19 = getelementptr inbounds i8, ptr %.01428.us.1, i64 4
  %20 = add nuw i32 %.01329.us.1, 1
  %exitcond.1.not = icmp eq i32 %20, %14
  br i1 %exitcond.1.not, label %.split.us, label %._crit_edge.us, !llvm.loop !5

.split32.us.loopexit:                             ; preds = %.lr.ph.us.preheader
  %lpad.loopexit35 = landingpad { ptr, i32 }
          cleanup
  br label %.split32.us

.split32.us.loopexit.split-lp:                    ; preds = %._crit_edge.us
  %lpad.loopexit.split-lp36 = landingpad { ptr, i32 }
          cleanup
  br label %.split32.us

.split.us:                                        ; preds = %18, %.preheader
  br i1 %.0, label %25, label %.preheader27.backedge

21:                                               ; preds = %2
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %32

.loopexit:                                        ; preds = %.preheader27
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.split32.us

.loopexit.split-lp:                               ; preds = %9
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.split32.us

23:                                               ; preds = %25, %13
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %.split32.us

25:                                               ; preds = %.split.us
  %26 = invoke noundef i32 @_ZNK7OpenMP35Frame7GetModeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %27 unwind label %23

27:                                               ; preds = %25
  %28 = icmp eq i32 %26, 3
  br label %.preheader27.backedge

.preheader27.backedge:                            ; preds = %27, %.split.us
  %.0.be = phi i1 [ false, %.split.us ], [ %28, %27 ]
  br label %.preheader27, !llvm.loop !7

29:                                               ; preds = %12
  %30 = call noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 31640, ptr nonnull %7) #4
  %31 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %31) #4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 9216, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  ret void

.split32.us:                                      ; preds = %.split32.us.loopexit, %.split32.us.loopexit.split-lp, %.loopexit, %.loopexit.split-lp, %23
  %.pn.pn = phi { ptr, i32 } [ %24, %23 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit35, %.split32.us.loopexit ], [ %lpad.loopexit.split-lp36, %.split32.us.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #4
  br label %32

32:                                               ; preds = %.split32.us, %21
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.split32.us ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 31640, ptr nonnull %7) #4
  %33 = getelementptr inbounds i8, ptr %6, i64 24
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %33) #4
  call void @_ZNSt6vectorIfSaIfEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 9216, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  resume { ptr, i32 } %.pn.pn.pn
}

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

declare void @_ZN7OpenMP37DecoderC1ERKNS_7LibraryE(ptr noundef nonnull align 8 dereferenceable(31636), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_ZN7OpenMP37Decoder12ProcessFrameERKNS_5FrameEPA1152_f(ptr noundef nonnull align 8 dereferenceable(31636), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backERKf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIfSaIfEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass