; LLVM IR from redhatdragon/EchoEngine :: HAL/ExampleImplimentations/Windows/OpenMP3 (openmp3)

; 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::Frame" = type { i8, i8, i32, i8, ptr, i32, i32 }
%"class.OpenMP3::Iterator" = type <{ ptr, ptr, ptr, i8, [7 x i8] }>

@_ZN7OpenMP39kBitRatesE = external dso_local constant [15 x i32], align 16
@_ZN7OpenMP312kSampleRatesE = external dso_local constant [3 x i32], align 4
@_ZN7OpenMP35kInfoE = external dso_local constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #0 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %15 = load ptr, ptr %4, align 8
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %16, i32 0, i32 4
  store ptr null, ptr %17, align 8, !tbaa !9
  %18 = call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %19 = icmp ult i32 %18, 5
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %181

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %22 = call noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  store i32 %22, ptr %6, align 4, !tbaa !13
  br label %23

23:                                               ; preds = %31, %21
  %24 = load i32, ptr %6, align 4, !tbaa !13
  %25 = and i32 %24, -1048576
  %26 = icmp ne i32 %25, -1048576
  br i1 %26, label %27, label %36

27:                                               ; preds = %23
  %28 = call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %29 = icmp ult i32 %28, 5
  br i1 %29, label %30, label %31

30:                                               ; preds = %27
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %180

31:                                               ; preds = %27
  %32 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = getelementptr inbounds i8, ptr %33, i64 -3
  store ptr %34, ptr %32, align 8, !tbaa !14
  %35 = call noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  store i32 %35, ptr %6, align 4, !tbaa !13
  br label %23, !llvm.loop !17

36:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  %37 = load i32, ptr %6, align 4, !tbaa !13
  %38 = and i32 %37, 524288
  %39 = lshr i32 %38, 19
  store i32 %39, ptr %8, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %40 = load i32, ptr %6, align 4, !tbaa !13
  %41 = and i32 %40, 393216
  %42 = lshr i32 %41, 17
  store i32 %42, ptr %9, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %43 = load i32, ptr %6, align 4, !tbaa !13
  %44 = and i32 %43, 65536
  %45 = lshr i32 %44, 16
  store i32 %45, ptr %10, align 4, !tbaa !13
  %46 = load i32, ptr %6, align 4, !tbaa !13
  %47 = and i32 %46, 61440
  %48 = lshr i32 %47, 12
  %49 = trunc i32 %48 to i8
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %50, i32 0, i32 0
  store i8 %49, ptr %51, align 8, !tbaa !21
  %52 = load i32, ptr %6, align 4, !tbaa !13
  %53 = and i32 %52, 3072
  %54 = lshr i32 %53, 10
  %55 = trunc i32 %54 to i8
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %56, i32 0, i32 1
  store i8 %55, ptr %57, align 1, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %58 = load i32, ptr %6, align 4, !tbaa !13
  %59 = and i32 %58, 512
  %60 = lshr i32 %59, 9
  store i32 %60, ptr %11, align 4, !tbaa !13
  %61 = load i32, ptr %6, align 4, !tbaa !13
  %62 = and i32 %61, 192
  %63 = lshr i32 %62, 6
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %64, i32 0, i32 2
  store i32 %63, ptr %65, align 4, !tbaa !23
  %66 = load i32, ptr %6, align 4, !tbaa !13
  %67 = and i32 %66, 48
  %68 = lshr i32 %67, 4
  %69 = trunc i32 %68 to i8
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  %71 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %70, i32 0, i32 3
  store i8 %69, ptr %71, align 8, !tbaa !24
  %72 = load i32, ptr %8, align 4, !tbaa !13
  %73 = icmp ne i32 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %36
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %179

75:                                               ; preds = %36
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %76, i32 0, i32 0
  %78 = load i8, ptr %77, align 8, !tbaa !21
  %79 = zext i8 %78 to i32
  %80 = icmp eq i32 %79, 0
  br i1 %80, label %87, label %81

81:                                               ; preds = %75
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %82, i32 0, i32 0
  %84 = load i8, ptr %83, align 8, !tbaa !21
  %85 = zext i8 %84 to i32
  %86 = icmp sgt i32 %85, 14
  br i1 %86, label %87, label %88

87:                                               ; preds = %81, %75
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %179

88:                                               ; preds = %81
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %89, i32 0, i32 1
  %91 = load i8, ptr %90, align 1, !tbaa !22
  %92 = zext i8 %91 to i32
  %93 = icmp sgt i32 %92, 2
  br i1 %93, label %94, label %95

94:                                               ; preds = %88
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %179

95:                                               ; preds = %88
  %96 = load i32, ptr %9, align 4, !tbaa !19
  %97 = icmp ne i32 %96, 1
  br i1 %97, label %98, label %99

98:                                               ; preds = %95
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %179

99:                                               ; preds = %95
  %100 = load i32, ptr %10, align 4, !tbaa !13
  %101 = icmp ne i32 %100, 0
  br i1 %101, label %110, label %102

102:                                              ; preds = %99
  %103 = call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %104 = icmp ult i32 %103, 2
  br i1 %104, label %105, label %106

105:                                              ; preds = %102
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %179

106:                                              ; preds = %102
  %107 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 1
  %108 = load ptr, ptr %107, align 8, !tbaa !14
  %109 = getelementptr inbounds i8, ptr %108, i64 2
  store ptr %109, ptr %107, align 8, !tbaa !14
  br label %110

110:                                              ; preds = %106, %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %111, i32 0, i32 0
  %113 = load i8, ptr %112, align 8, !tbaa !21
  %114 = zext i8 %113 to i64
  %115 = getelementptr inbounds [15 x i32], ptr @_ZN7OpenMP39kBitRatesE, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !13
  %117 = mul i32 144, %116
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %118, i32 0, i32 1
  %120 = load i8, ptr %119, align 1, !tbaa !22
  %121 = zext i8 %120 to i64
  %122 = getelementptr inbounds [3 x i32], ptr @_ZN7OpenMP312kSampleRatesE, i64 0, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !13
  %124 = udiv i32 %117, %123
  %125 = load i32, ptr %11, align 4, !tbaa !13
  %126 = add i32 %124, %125
  store i32 %126, ptr %12, align 4, !tbaa !13
  %127 = load i32, ptr %12, align 4, !tbaa !13
  %128 = sub i32 %127, 4
  store i32 %128, ptr %12, align 4, !tbaa !13
  %129 = call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %15)
  %130 = load i32, ptr %12, align 4, !tbaa !13
  %131 = icmp ult i32 %129, %130
  br i1 %131, label %132, label %133

132:                                              ; preds = %110
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %178

133:                                              ; preds = %110
  %134 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 1
  %135 = load ptr, ptr %134, align 8, !tbaa !14
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %136, i32 0, i32 4
  store ptr %135, ptr %137, align 8, !tbaa !9
  %138 = load i32, ptr %12, align 4, !tbaa !13
  %139 = load i32, ptr %10, align 4, !tbaa !13
  %140 = icmp ne i32 %139, 0
  %141 = zext i1 %140 to i64
  %142 = select i1 %140, i32 0, i32 2
  %143 = sub i32 %138, %142
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %144, i32 0, i32 5
  store i32 %143, ptr %145, align 8, !tbaa !25
  %146 = load ptr, ptr %5, align 8, !tbaa !5
  %147 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %146, i32 0, i32 6
  store i32 1152, ptr %147, align 4, !tbaa !26
  %148 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 3
  %149 = load i8, ptr %148, align 8, !tbaa !27, !range !28, !noundef !29
  %150 = trunc i8 %149 to i1
  br i1 %150, label %151, label %172

151:                                              ; preds = %133
  %152 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 3
  store i8 0, ptr %152, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !23
  %156 = icmp eq i32 %155, 3
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, i32 17, i32 32
  store i32 %158, ptr %13, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %159 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !14
  %161 = load i32, ptr %13, align 4, !tbaa !13
  %162 = zext i32 %161 to i64
  %163 = getelementptr inbounds i8, ptr %160, i64 %162
  store ptr %163, ptr %14, align 8, !tbaa !5
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = load i32, ptr %164, align 4, !tbaa !13
  %166 = load i32, ptr @_ZN7OpenMP35kInfoE, align 1, !tbaa !13
  %167 = icmp eq i32 %165, %166
  br i1 %167, label %168, label %171

168:                                              ; preds = %151
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.OpenMP3::Frame", ptr %169, i32 0, i32 6
  store i32 0, ptr %170, align 4, !tbaa !26
  br label %171

171:                                              ; preds = %168, %151
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  br label %172

172:                                              ; preds = %171, %133
  %173 = load i32, ptr %12, align 4, !tbaa !13
  %174 = getelementptr inbounds %"class.OpenMP3::Iterator", ptr %15, i32 0, i32 1
  %175 = load ptr, ptr %174, align 8, !tbaa !14
  %176 = zext i32 %173 to i64
  %177 = getelementptr inbounds i8, ptr %175, i64 %176
  store ptr %177, ptr %174, align 8, !tbaa !14
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %178

178:                                              ; preds = %172, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %179

179:                                              ; preds = %178, %105, %98, %94, %87, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %180

180:                                              ; preds = %179, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  br label %181

181:                                              ; preds = %180, %20
  %182 = load i1, ptr %3, align 1
  ret i1 %182
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25)) #0 align 2

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

attributes #0 = { 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 #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTSN7OpenMP35FrameE", !7, i64 0, !7, i64 1, !11, i64 4, !7, i64 8, !6, i64 16, !12, i64 24, !12, i64 28}
!11 = !{!"_ZTSN7OpenMP34ModeE", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !6, i64 8}
!15 = !{!"_ZTSN7OpenMP38IteratorE", !6, i64 0, !6, i64 8, !6, i64 16, !16, i64 24}
!16 = !{!"bool", !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN7OpenMP35LayerE", !7, i64 0}
!21 = !{!10, !7, i64 0}
!22 = !{!10, !7, i64 1}
!23 = !{!10, !11, i64 4}
!24 = !{!10, !7, i64 8}
!25 = !{!10, !12, i64 24}
!26 = !{!10, !12, i64 28}
!27 = !{!15, !16, i64 24}
!28 = !{i8 0, i8 2}
!29 = !{}


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

@_ZN7OpenMP39kBitRatesE = external dso_local local_unnamed_addr constant [15 x i32], align 16
@_ZN7OpenMP312kSampleRatesE = external dso_local local_unnamed_addr constant [3 x i32], align 4
@_ZN7OpenMP35kInfoE = external dso_local local_unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7OpenMP38Iterator7GetNextERNS_5FrameE(ptr noundef nonnull align 8 dereferenceable(25) %0, ptr nocapture noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %1, i64 16
  store ptr null, ptr %3, align 8, !tbaa !5
  %4 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %5 = icmp ult i32 %4, 5
  br i1 %5, label %.loopexit, label %6

6:                                                ; preds = %2
  %7 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %.not52 = icmp ugt i32 %7, -1048577
  br i1 %.not52, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %6
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %9

9:                                                ; preds = %.lr.ph, %12
  %10 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %11 = icmp ult i32 %10, 5
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %9
  %13 = load ptr, ptr %8, align 8, !tbaa !12
  %14 = getelementptr inbounds i8, ptr %13, i64 -3
  store ptr %14, ptr %8, align 8, !tbaa !12
  %15 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %.not = icmp ugt i32 %15, -1048577
  br i1 %.not, label %._crit_edge, label %9, !llvm.loop !15

._crit_edge:                                      ; preds = %12, %6
  %.036.lcssa = phi i32 [ %7, %6 ], [ %15, %12 ]
  %16 = lshr i32 %.036.lcssa, 12
  %17 = trunc i32 %16 to i8
  %18 = and i8 %17, 15
  store i8 %18, ptr %1, align 8, !tbaa !17
  %19 = lshr i32 %.036.lcssa, 10
  %20 = trunc i32 %19 to i8
  %21 = and i8 %20, 3
  %22 = getelementptr inbounds i8, ptr %1, i64 1
  store i8 %21, ptr %22, align 1, !tbaa !18
  %23 = lshr i32 %.036.lcssa, 9
  %24 = and i32 %23, 1
  %25 = lshr i32 %.036.lcssa, 6
  %26 = and i32 %25, 3
  %27 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %26, ptr %27, align 4, !tbaa !19
  %28 = trunc i32 %.036.lcssa to i8
  %29 = lshr i8 %28, 4
  %30 = and i8 %29, 3
  %31 = getelementptr inbounds i8, ptr %1, i64 8
  store i8 %30, ptr %31, align 8, !tbaa !20
  %32 = and i32 %.036.lcssa, 524288
  %.not39.not = icmp eq i32 %32, 0
  br i1 %.not39.not, label %.loopexit, label %33

33:                                               ; preds = %._crit_edge
  %34 = icmp ne i8 %18, 0
  %35 = icmp ne i8 %18, 15
  %or.cond.not49 = and i1 %34, %35
  %36 = icmp ne i8 %21, 3
  %or.cond43.not46 = and i1 %36, %or.cond.not49
  %37 = and i32 %.036.lcssa, 393216
  %.not40 = icmp eq i32 %37, 131072
  %or.cond44 = and i1 %.not40, %or.cond43.not46
  br i1 %or.cond44, label %38, label %.loopexit

38:                                               ; preds = %33
  %39 = and i32 %.036.lcssa, 65536
  %.not41 = icmp eq i32 %39, 0
  br i1 %.not41, label %40, label %47

40:                                               ; preds = %38
  %41 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %42 = icmp ult i32 %41, 2
  br i1 %42, label %.loopexit, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %0, i64 8
  %45 = load ptr, ptr %44, align 8, !tbaa !12
  %46 = getelementptr inbounds i8, ptr %45, i64 2
  store ptr %46, ptr %44, align 8, !tbaa !12
  %.pre = load i8, ptr %1, align 8, !tbaa !17
  %.pre53 = load i8, ptr %22, align 1, !tbaa !18
  br label %47

47:                                               ; preds = %43, %38
  %48 = phi i8 [ %.pre53, %43 ], [ %21, %38 ]
  %49 = phi i8 [ %.pre, %43 ], [ %18, %38 ]
  %50 = zext i8 %49 to i64
  %51 = getelementptr inbounds [15 x i32], ptr @_ZN7OpenMP39kBitRatesE, i64 0, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !21
  %53 = mul i32 %52, 144
  %54 = zext i8 %48 to i64
  %55 = getelementptr inbounds [3 x i32], ptr @_ZN7OpenMP312kSampleRatesE, i64 0, i64 %54
  %56 = load i32, ptr %55, align 4, !tbaa !21
  %57 = udiv i32 %53, %56
  %58 = or disjoint i32 %24, -4
  %59 = add i32 %58, %57
  %60 = tail call noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25) %0)
  %.not50 = icmp ult i32 %60, %59
  br i1 %.not50, label %.loopexit, label %61

61:                                               ; preds = %47
  %62 = getelementptr inbounds i8, ptr %0, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !12
  store ptr %63, ptr %3, align 8, !tbaa !5
  %64 = lshr exact i32 %39, 15
  %65 = xor i32 %64, 2
  %66 = sub i32 %59, %65
  %67 = getelementptr inbounds i8, ptr %1, i64 24
  store i32 %66, ptr %67, align 8, !tbaa !22
  %68 = getelementptr inbounds i8, ptr %1, i64 28
  store i32 1152, ptr %68, align 4, !tbaa !23
  %69 = getelementptr inbounds i8, ptr %0, i64 24
  %70 = load i8, ptr %69, align 8, !tbaa !24, !range !25, !noundef !26
  %71 = trunc nuw i8 %70 to i1
  br i1 %71, label %72, label %81

72:                                               ; preds = %61
  store i8 0, ptr %69, align 8, !tbaa !24
  %73 = load i32, ptr %27, align 4, !tbaa !19
  %74 = icmp eq i32 %73, 3
  %75 = select i1 %74, i64 17, i64 32
  %76 = getelementptr inbounds i8, ptr %63, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !21
  %78 = load i32, ptr @_ZN7OpenMP35kInfoE, align 1, !tbaa !21
  %79 = icmp eq i32 %77, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %72
  store i32 0, ptr %68, align 4, !tbaa !23
  br label %81

81:                                               ; preds = %72, %80, %61
  %82 = zext i32 %59 to i64
  %83 = getelementptr inbounds i8, ptr %63, i64 %82
  store ptr %83, ptr %62, align 8, !tbaa !12
  br label %.loopexit

.loopexit:                                        ; preds = %9, %81, %47, %40, %33, %._crit_edge, %2
  %.3 = phi i1 [ false, %2 ], [ false, %._crit_edge ], [ false, %33 ], [ false, %40 ], [ false, %47 ], [ true, %81 ], [ false, %9 ]
  ret i1 %.3
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN7OpenMP38Iterator7Private12GetRemainderERKS0_(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN7OpenMP38Iterator7Private8ReadWordERS0_(ptr noundef nonnull align 8 dereferenceable(25)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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" }

!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, !10, i64 16}
!6 = !{!"_ZTSN7OpenMP35FrameE", !7, i64 0, !7, i64 1, !9, i64 4, !7, i64 8, !10, i64 16, !11, i64 24, !11, i64 28}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!"_ZTSN7OpenMP34ModeE", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !10, i64 8}
!13 = !{!"_ZTSN7OpenMP38IteratorE", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !7, i64 0}
!18 = !{!6, !7, i64 1}
!19 = !{!6, !9, i64 4}
!20 = !{!6, !7, i64 8}
!21 = !{!11, !11, i64 0}
!22 = !{!6, !11, i64 24}
!23 = !{!6, !11, i64 28}
!24 = !{!13, !14, i64 24}
!25 = !{i8 0, i8 2}
!26 = !{}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass