; LLVM IR from SSBMTonberry/pocketlzma :: pocketlzma_program (LzmaEnc_SetProps)

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

%"struct.plz::c::_CLzmaEncProps" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%"struct.plz::c::CLzmaEnc" = type { ptr, %"struct.plz::c::_IMatchFinder", i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], i32, i32, ptr, %"struct.plz::c::CRangeEnc", i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, %"struct.plz::c::_CMatchFinder", [128 x i32], [549 x i32], [16 x i32], [4 x [64 x i32]], [4 x [128 x i32]], [16 x i16], [12 x i16], [12 x i16], [12 x i16], [12 x i16], [12 x [16 x i16]], [12 x [16 x i16]], [4 x [64 x i16]], [128 x i16], %"struct.plz::c::CLenEnc", %"struct.plz::c::CLenEnc", [8192 x i8], %"struct.plz::c::CLenPriceEnc", %"struct.plz::c::CLenPriceEnc", [2048 x %"struct.plz::c::COptimal"], %"struct.plz::c::CSaveState" }
%"struct.plz::c::_IMatchFinder" = type { ptr, ptr, ptr, ptr, ptr }
%"struct.plz::c::CRangeEnc" = type { i32, i32, i64, i64, ptr, ptr, ptr, ptr, i64, i32 }
%"struct.plz::c::_CMatchFinder" = type { ptr, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i32, ptr, ptr, i32, i32, ptr, ptr, i32, i32, i32, i32, i64, i32, i32, i32, i32, [256 x i32], i64, i64 }
%"struct.plz::c::CLenEnc" = type { [256 x i16], [256 x i16] }
%"struct.plz::c::CLenPriceEnc" = type { i32, [16 x [272 x i32]] }
%"struct.plz::c::COptimal" = type { i32, i16, i16, i32, i32, [4 x i32] }
%"struct.plz::c::CSaveState" = type { ptr, i32, [4 x i32], [16 x i16], [12 x i16], [12 x i16], [12 x i16], [12 x i16], [12 x [16 x i16]], [12 x [16 x i16]], [4 x [64 x i16]], [128 x i16], %"struct.plz::c::CLenEnc", %"struct.plz::c::CLenEnc" }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @LzmaEncProps_Normalize(ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local i32 @LzmaEnc_SetProps(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.plz::c::_CLzmaEncProps", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #3
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %12, i64 56, i1 false), !tbaa.struct !9
  call void @LzmaEncProps_Normalize(ptr noundef %7)
  %13 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 2
  %14 = load i32, ptr %13, align 8, !tbaa !14
  %15 = icmp sgt i32 %14, 8
  br i1 %15, label %33, label %16

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 3
  %18 = load i32, ptr %17, align 4, !tbaa !16
  %19 = icmp sgt i32 %18, 4
  br i1 %19, label %33, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 4
  %22 = load i32, ptr %21, align 8, !tbaa !17
  %23 = icmp sgt i32 %22, 4
  br i1 %23, label %33, label %24

24:                                               ; preds = %20
  %25 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 1
  %26 = load i32, ptr %25, align 4, !tbaa !18
  %27 = zext i32 %26 to i64
  %28 = icmp ugt i64 %27, 2147483648
  br i1 %28, label %33, label %29

29:                                               ; preds = %24
  %30 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 1
  %31 = load i32, ptr %30, align 4, !tbaa !18
  %32 = icmp ugt i32 %31, 1610612736
  br i1 %32, label %33, label %34

33:                                               ; preds = %29, %24, %20, %16, %2
  store i32 5, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %110

34:                                               ; preds = %29
  %35 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 1
  %36 = load i32, ptr %35, align 4, !tbaa !18
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %37, i32 0, i32 29
  store i32 %36, ptr %38, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %39 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 6
  %40 = load i32, ptr %39, align 8, !tbaa !28
  store i32 %40, ptr %9, align 4, !tbaa !10
  %41 = load i32, ptr %9, align 4, !tbaa !10
  %42 = icmp ult i32 %41, 5
  br i1 %42, label %43, label %44

43:                                               ; preds = %34
  store i32 5, ptr %9, align 4, !tbaa !10
  br label %44

44:                                               ; preds = %43, %34
  %45 = load i32, ptr %9, align 4, !tbaa !10
  %46 = icmp ugt i32 %45, 273
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  store i32 273, ptr %9, align 4, !tbaa !10
  br label %48

48:                                               ; preds = %47, %44
  %49 = load i32, ptr %9, align 4, !tbaa !10
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %50, i32 0, i32 8
  store i32 %49, ptr %51, align 8, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  %52 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 2
  %53 = load i32, ptr %52, align 8, !tbaa !14
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %54, i32 0, i32 16
  store i32 %53, ptr %55, align 4, !tbaa !30
  %56 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 3
  %57 = load i32, ptr %56, align 4, !tbaa !16
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %58, i32 0, i32 17
  store i32 %57, ptr %59, align 8, !tbaa !31
  %60 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 4
  %61 = load i32, ptr %60, align 8, !tbaa !17
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %62, i32 0, i32 18
  store i32 %61, ptr %63, align 4, !tbaa !32
  %64 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 5
  %65 = load i32, ptr %64, align 4, !tbaa !33
  %66 = icmp eq i32 %65, 0
  %67 = zext i1 %66 to i32
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %68, i32 0, i32 20
  store i32 %67, ptr %69, align 4, !tbaa !34
  %70 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 7
  %71 = load i32, ptr %70, align 4, !tbaa !35
  %72 = icmp ne i32 %71, 0
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 1, i32 0
  %75 = trunc i32 %74 to i8
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %76, i32 0, i32 31
  %78 = getelementptr inbounds %"struct.plz::c::_CMatchFinder", ptr %77, i32 0, i32 8
  store i8 %75, ptr %78, align 1, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 4, ptr %10, align 4, !tbaa !10
  %79 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 7
  %80 = load i32, ptr %79, align 4, !tbaa !35
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %82, label %96

82:                                               ; preds = %48
  %83 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 8
  %84 = load i32, ptr %83, align 8, !tbaa !37
  %85 = icmp slt i32 %84, 2
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  store i32 2, ptr %10, align 4, !tbaa !10
  br label %95

87:                                               ; preds = %82
  %88 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 8
  %89 = load i32, ptr %88, align 8, !tbaa !37
  %90 = icmp slt i32 %89, 4
  br i1 %90, label %91, label %94

91:                                               ; preds = %87
  %92 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 8
  %93 = load i32, ptr %92, align 8, !tbaa !37
  store i32 %93, ptr %10, align 4, !tbaa !10
  br label %94

94:                                               ; preds = %91, %87
  br label %95

95:                                               ; preds = %94, %86
  br label %96

96:                                               ; preds = %95, %48
  %97 = load i32, ptr %10, align 4, !tbaa !10
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %98, i32 0, i32 31
  %100 = getelementptr inbounds %"struct.plz::c::_CMatchFinder", ptr %99, i32 0, i32 21
  store i32 %97, ptr %100, align 4, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  %101 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 9
  %102 = load i32, ptr %101, align 4, !tbaa !39
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %103, i32 0, i32 31
  %105 = getelementptr inbounds %"struct.plz::c::_CMatchFinder", ptr %104, i32 0, i32 15
  store i32 %102, ptr %105, align 4, !tbaa !40
  %106 = getelementptr inbounds %"struct.plz::c::_CLzmaEncProps", ptr %7, i32 0, i32 10
  %107 = load i32, ptr %106, align 8, !tbaa !41
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.plz::c::CLzmaEnc", ptr %108, i32 0, i32 21
  store i32 %107, ptr %109, align 8, !tbaa !42
  store i32 0, ptr %3, align 4
  store i32 1, ptr %8, align 4
  br label %110

110:                                              ; preds = %96, %33
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  %111 = load i32, ptr %3, align 4
  ret i32 %111
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = !{i64 0, i64 4, !10, i64 4, i64 4, !10, i64 8, i64 4, !10, i64 12, i64 4, !10, i64 16, i64 4, !10, i64 20, i64 4, !10, i64 24, i64 4, !10, i64 28, i64 4, !10, i64 32, i64 4, !10, i64 36, i64 4, !10, i64 40, i64 4, !10, i64 44, i64 4, !10, i64 48, i64 8, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"long long", !7, i64 0}
!14 = !{!15, !11, i64 8}
!15 = !{!"_ZTSN3plz1c14_CLzmaEncPropsE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !13, i64 48}
!16 = !{!15, !11, i64 12}
!17 = !{!15, !11, i64 16}
!18 = !{!15, !11, i64 4}
!19 = !{!20, !11, i64 244}
!20 = !{!"_ZTSN3plz1c8CLzmaEncE", !6, i64 0, !21, i64 8, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !7, i64 80, !11, i64 96, !11, i64 100, !6, i64 104, !22, i64 112, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !11, i64 200, !11, i64 204, !11, i64 208, !11, i64 212, !11, i64 216, !11, i64 220, !13, i64 224, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !23, i64 256, !7, i64 1416, !7, i64 1928, !7, i64 4124, !7, i64 4188, !7, i64 5212, !7, i64 7260, !7, i64 7292, !7, i64 7316, !7, i64 7340, !7, i64 7364, !7, i64 7388, !7, i64 7772, !7, i64 8156, !7, i64 8668, !25, i64 8924, !25, i64 9948, !7, i64 10972, !26, i64 19164, !26, i64 36576, !7, i64 53988, !27, i64 119528}
!21 = !{!"_ZTSN3plz1c13_IMatchFinderE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = !{!"_ZTSN3plz1c9CRangeEncE", !11, i64 0, !11, i64 4, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !11, i64 64}
!23 = !{!"_ZTSN3plz1c13_CMatchFinderE", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !7, i64 32, !7, i64 33, !7, i64 34, !7, i64 35, !11, i64 36, !6, i64 40, !6, i64 48, !11, i64 56, !11, i64 60, !6, i64 64, !6, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !24, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !7, i64 120, !24, i64 1144, !13, i64 1152}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSN3plz1c7CLenEncE", !7, i64 0, !7, i64 512}
!26 = !{!"_ZTSN3plz1c12CLenPriceEncE", !11, i64 0, !7, i64 4}
!27 = !{!"_ZTSN3plz1c10CSaveStateE", !6, i64 0, !11, i64 8, !7, i64 12, !7, i64 28, !7, i64 60, !7, i64 84, !7, i64 108, !7, i64 132, !7, i64 156, !7, i64 540, !7, i64 924, !7, i64 1436, !25, i64 1692, !25, i64 2716}
!28 = !{!15, !11, i64 24}
!29 = !{!20, !11, i64 72}
!30 = !{!20, !11, i64 188}
!31 = !{!20, !11, i64 192}
!32 = !{!20, !11, i64 196}
!33 = !{!15, !11, i64 20}
!34 = !{!20, !11, i64 204}
!35 = !{!15, !11, i64 28}
!36 = !{!20, !7, i64 289}
!37 = !{!15, !11, i64 32}
!38 = !{!20, !11, i64 348}
!39 = !{!15, !11, i64 36}
!40 = !{!20, !11, i64 316}
!41 = !{!15, !11, i64 40}
!42 = !{!20, !11, i64 208}


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

%"struct.plz::c::_CLzmaEncProps" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }

; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @LzmaEncProps_Normalize(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local range(i32 0, 6) i32 @LzmaEnc_SetProps(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = alloca %"struct.plz::c::_CLzmaEncProps", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 8 dereferenceable(56) %1, i64 56, i1 false), !tbaa.struct !5
  call void @LzmaEncProps_Normalize(ptr noundef nonnull %3)
  %4 = getelementptr inbounds i8, ptr %3, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !12
  %6 = icmp sgt i32 %5, 8
  %7 = getelementptr inbounds i8, ptr %3, i64 12
  %8 = load i32, ptr %7, align 4
  %9 = icmp sgt i32 %8, 4
  %or.cond = select i1 %6, i1 true, i1 %9
  %10 = getelementptr inbounds i8, ptr %3, i64 16
  %11 = load i32, ptr %10, align 8
  %12 = icmp sgt i32 %11, 4
  %or.cond5 = select i1 %or.cond, i1 true, i1 %12
  %13 = getelementptr inbounds i8, ptr %3, i64 4
  %14 = load i32, ptr %13, align 4
  %15 = icmp ugt i32 %14, 1610612736
  %or.cond12 = select i1 %or.cond5, i1 true, i1 %15
  br i1 %or.cond12, label %46, label %16

16:                                               ; preds = %2
  %17 = getelementptr inbounds i8, ptr %0, i64 244
  store i32 %14, ptr %17, align 4, !tbaa !14
  %18 = getelementptr inbounds i8, ptr %3, i64 24
  %19 = load i32, ptr %18, align 8, !tbaa !24
  %spec.store.select = call i32 @llvm.umax.i32(i32 %19, i32 5)
  %spec.store.select13 = call i32 @llvm.umin.i32(i32 %spec.store.select, i32 273)
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %spec.store.select13, ptr %20, align 8, !tbaa !25
  %21 = getelementptr inbounds i8, ptr %0, i64 188
  store i32 %5, ptr %21, align 4, !tbaa !26
  %22 = getelementptr inbounds i8, ptr %0, i64 192
  store i32 %8, ptr %22, align 8, !tbaa !27
  %23 = getelementptr inbounds i8, ptr %0, i64 196
  store i32 %11, ptr %23, align 4, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %3, i64 20
  %25 = load i32, ptr %24, align 4, !tbaa !29
  %26 = icmp eq i32 %25, 0
  %27 = zext i1 %26 to i32
  %28 = getelementptr inbounds i8, ptr %0, i64 204
  store i32 %27, ptr %28, align 4, !tbaa !30
  %29 = getelementptr inbounds i8, ptr %3, i64 28
  %30 = load i32, ptr %29, align 4, !tbaa !31
  %.not = icmp ne i32 %30, 0
  %31 = zext i1 %.not to i8
  %32 = getelementptr inbounds i8, ptr %0, i64 289
  store i8 %31, ptr %32, align 1, !tbaa !32
  %.not31 = icmp eq i32 %30, 0
  br i1 %.not31, label %38, label %33

33:                                               ; preds = %16
  %34 = getelementptr inbounds i8, ptr %3, i64 32
  %35 = load i32, ptr %34, align 8, !tbaa !33
  %36 = icmp slt i32 %35, 2
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  %spec.select = call i32 @llvm.umin.i32(i32 %35, i32 4)
  br label %38

38:                                               ; preds = %37, %33, %16
  %.0 = phi i32 [ 4, %16 ], [ 2, %33 ], [ %spec.select, %37 ]
  %39 = getelementptr inbounds i8, ptr %0, i64 348
  store i32 %.0, ptr %39, align 4, !tbaa !34
  %40 = getelementptr inbounds i8, ptr %3, i64 36
  %41 = load i32, ptr %40, align 4, !tbaa !35
  %42 = getelementptr inbounds i8, ptr %0, i64 316
  store i32 %41, ptr %42, align 4, !tbaa !36
  %43 = getelementptr inbounds i8, ptr %3, i64 40
  %44 = load i32, ptr %43, align 8, !tbaa !37
  %45 = getelementptr inbounds i8, ptr %0, i64 208
  store i32 %44, ptr %45, align 8, !tbaa !38
  br label %46

46:                                               ; preds = %2, %38
  %.029 = phi i32 [ 0, %38 ], [ 5, %2 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #4
  ret i32 %.029
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !6, i64 12, i64 4, !6, i64 16, i64 4, !6, i64 20, i64 4, !6, i64 24, i64 4, !6, i64 28, i64 4, !6, i64 32, i64 4, !6, i64 36, i64 4, !6, i64 40, i64 4, !6, i64 44, i64 4, !6, i64 48, i64 8, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = !{!13, !7, i64 8}
!13 = !{!"_ZTSN3plz1c14_CLzmaEncPropsE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !11, i64 48}
!14 = !{!15, !7, i64 244}
!15 = !{!"_ZTSN3plz1c8CLzmaEncE", !16, i64 0, !17, i64 8, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !8, i64 80, !7, i64 96, !7, i64 100, !16, i64 104, !18, i64 112, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !11, i64 224, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !19, i64 256, !8, i64 1416, !8, i64 1928, !8, i64 4124, !8, i64 4188, !8, i64 5212, !8, i64 7260, !8, i64 7292, !8, i64 7316, !8, i64 7340, !8, i64 7364, !8, i64 7388, !8, i64 7772, !8, i64 8156, !8, i64 8668, !21, i64 8924, !21, i64 9948, !8, i64 10972, !22, i64 19164, !22, i64 36576, !8, i64 53988, !23, i64 119528}
!16 = !{!"any pointer", !8, i64 0}
!17 = !{!"_ZTSN3plz1c13_IMatchFinderE", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!18 = !{!"_ZTSN3plz1c9CRangeEncE", !7, i64 0, !7, i64 4, !11, i64 8, !11, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !11, i64 56, !7, i64 64}
!19 = !{!"_ZTSN3plz1c13_CMatchFinderE", !16, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !8, i64 32, !8, i64 33, !8, i64 34, !8, i64 35, !7, i64 36, !16, i64 40, !16, i64 48, !7, i64 56, !7, i64 60, !16, i64 64, !16, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !20, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !8, i64 120, !20, i64 1144, !11, i64 1152}
!20 = !{!"long", !8, i64 0}
!21 = !{!"_ZTSN3plz1c7CLenEncE", !8, i64 0, !8, i64 512}
!22 = !{!"_ZTSN3plz1c12CLenPriceEncE", !7, i64 0, !8, i64 4}
!23 = !{!"_ZTSN3plz1c10CSaveStateE", !16, i64 0, !7, i64 8, !8, i64 12, !8, i64 28, !8, i64 60, !8, i64 84, !8, i64 108, !8, i64 132, !8, i64 156, !8, i64 540, !8, i64 924, !8, i64 1436, !21, i64 1692, !21, i64 2716}
!24 = !{!13, !7, i64 24}
!25 = !{!15, !7, i64 72}
!26 = !{!15, !7, i64 188}
!27 = !{!15, !7, i64 192}
!28 = !{!15, !7, i64 196}
!29 = !{!13, !7, i64 20}
!30 = !{!15, !7, i64 204}
!31 = !{!13, !7, i64 28}
!32 = !{!15, !8, i64 289}
!33 = !{!13, !7, i64 32}
!34 = !{!15, !7, i64 348}
!35 = !{!13, !7, i64 36}
!36 = !{!15, !7, i64 316}
!37 = !{!13, !7, i64 40}
!38 = !{!15, !7, i64 208}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass