; LLVM IR from Nonoum/ECL :: tests/tests.ll (ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi)

; 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::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__const._ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi.masks = external hidden unnamed_addr constant [4 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef, i32 noundef, i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #2 align 2

; 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) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ntest_for_ecl10ntest_noopEv() #4

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.1", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca [4 x i8], align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %23 = load ptr, ptr %4, align 8
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %25 = load i32, ptr %6, align 4, !tbaa !9
  %26 = add nsw i32 %25, 10
  %27 = invoke noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef %26, i32 noundef 0, i32 noundef 1010)
          to label %28 unwind label %37

28:                                               ; preds = %3
  %29 = add nsw i32 %27, 1
  %30 = mul nsw i32 2, %29
  store i32 %30, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 10000, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 1, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 @__const._ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi.masks, i64 4, i1 false)
  invoke void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 10000)
          to label %31 unwind label %41

31:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %32

32:                                               ; preds = %115, %31
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = icmp slt i32 %33, %34
  br i1 %35, label %45, label %36

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

37:                                               ; preds = %3
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %9, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %10, align 4
  br label %121

41:                                               ; preds = %28
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %9, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %10, align 4
  br label %120

45:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %46 = call i32 @rand() #6
  %47 = srem i32 %46, 9999
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %16, align 4, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %50)
          to label %51 unwind label %57

51:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %52

52:                                               ; preds = %67, %51
  %53 = load i32, ptr %17, align 4, !tbaa !9
  %54 = load i32, ptr %16, align 4, !tbaa !9
  %55 = icmp slt i32 %53, %54
  br i1 %55, label %61, label %56

56:                                               ; preds = %52
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %70

57:                                               ; preds = %45
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  br label %118

61:                                               ; preds = %52
  %62 = call i32 @rand() #6
  %63 = trunc i32 %62 to i8
  %64 = load i32, ptr %17, align 4, !tbaa !9
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %65) #6
  store i8 %63, ptr %66, align 1, !tbaa !11
  br label %67

67:                                               ; preds = %61
  %68 = load i32, ptr %17, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %17, align 4, !tbaa !9
  br label %52, !llvm.loop !12

70:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %13, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %71 = load ptr, ptr %18, align 8, !tbaa !5
  %72 = getelementptr inbounds [4 x i8], ptr %71, i64 0, i64 0
  store ptr %72, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = getelementptr inbounds [4 x i8], ptr %73, i64 0, i64 0
  %75 = getelementptr inbounds i8, ptr %74, i64 4
  store ptr %75, ptr %20, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %107, %70
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load ptr, ptr %20, align 8, !tbaa !5
  %79 = icmp ne ptr %77, %78
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %114

81:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = load i8, ptr %82, align 1, !tbaa !11
  store i8 %83, ptr %21, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %99, %81
  %85 = load i32, ptr %22, align 4, !tbaa !9
  %86 = load i32, ptr %16, align 4, !tbaa !9
  %87 = icmp slt i32 %85, %86
  br i1 %87, label %89, label %88

88:                                               ; preds = %84
  store i32 10, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %102

89:                                               ; preds = %84
  %90 = load i8, ptr %21, align 1, !tbaa !11
  %91 = zext i8 %90 to i32
  %92 = load i32, ptr %22, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %93) #6
  %95 = load i8, ptr %94, align 1, !tbaa !11
  %96 = zext i8 %95 to i32
  %97 = and i32 %96, %91
  %98 = trunc i32 %97 to i8
  store i8 %98, ptr %94, align 1, !tbaa !11
  br label %99

99:                                               ; preds = %89
  %100 = load i32, ptr %22, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %22, align 4, !tbaa !9
  br label %84, !llvm.loop !14

102:                                              ; preds = %88
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %105 unwind label %110

105:                                              ; preds = %102
  %106 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %23, i1 noundef zeroext %104)
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  br label %107

107:                                              ; preds = %105
  %108 = load ptr, ptr %19, align 8, !tbaa !5
  %109 = getelementptr inbounds i8, ptr %108, i32 1
  store ptr %109, ptr %19, align 8, !tbaa !5
  br label %76

110:                                              ; preds = %102
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %9, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  br label %118

114:                                              ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %14, align 4, !tbaa !9
  br label %32, !llvm.loop !15

118:                                              ; preds = %110, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %120

119:                                              ; preds = %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  ret void

120:                                              ; preds = %118, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %121

121:                                              ; preds = %120, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  br label %122

122:                                              ; preds = %121
  %123 = load ptr, ptr %9, align 8
  %124 = load i32, ptr %10, align 4
  %125 = insertvalue { ptr, i32 } poison, ptr %123, 0
  %126 = insertvalue { ptr, i32 } %125, i32 %124, 1
  resume { ptr, i32 } %126
}

; Function Attrs: nounwind
declare i32 @rand() #5

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

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


; 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::vector.1" = type { %"struct.std::_Vector_base.2" }
%"struct.std::_Vector_base.2" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@__const._ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi.masks = external hidden unnamed_addr constant [4 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ntest_for_ecl10ntest_noopEv() local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::vector.1", align 8
  tail call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %5 = add nsw i32 %2, 10
  %6 = invoke noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef %5, i32 noundef 0, i32 noundef 1010)
          to label %7 unwind label %12

7:                                                ; preds = %3
  %8 = shl i32 %6, 1
  %9 = add i32 %8, 2
  %10 = load i32, ptr @__const._ZN36test_NanoLZ_check_modes_equal_result11runInternalERSoi.masks, align 1
  %.sroa.0.0.extract.trunc = trunc i32 %10 to i8
  %.sroa.5.0.extract.shift = lshr i32 %10, 8
  %.sroa.5.0.extract.trunc = trunc i32 %.sroa.5.0.extract.shift to i8
  %.sroa.6.0.extract.shift = lshr i32 %10, 16
  %.sroa.6.0.extract.trunc = trunc i32 %.sroa.6.0.extract.shift to i8
  %.sroa.7.0.extract.shift = lshr i32 %10, 24
  %.sroa.7.0.extract.trunc = trunc nuw i32 %.sroa.7.0.extract.shift to i8
  invoke void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 10000)
          to label %.preheader38 unwind label %14

.preheader38:                                     ; preds = %7
  %11 = icmp sgt i32 %9, 0
  br i1 %11, label %.lr.ph48, label %._crit_edge49

._crit_edge49:                                    ; preds = %.split46.us, %.preheader38
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  ret void

12:                                               ; preds = %3
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %59

14:                                               ; preds = %7
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %59

.lr.ph48:                                         ; preds = %.preheader38, %.split46.us
  %.02947 = phi i32 [ %34, %.split46.us ], [ 0, %.preheader38 ]
  %16 = call i32 @rand() #5
  %17 = srem i32 %16, 9999
  %18 = add nsw i32 %17, 1
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  %19 = sext i32 %18 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %19)
          to label %.preheader37 unwind label %28

.preheader37:                                     ; preds = %.lr.ph48
  %.not39 = icmp slt i32 %17, 0
  br i1 %.not39, label %.preheader.split.us.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader37
  %wide.trip.count = zext nneg i32 %18 to i64
  br label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  br i1 %.not39, label %.preheader.split.us.preheader, label %.lr.ph43.preheader

.lr.ph43.preheader:                               ; preds = %.preheader
  %wide.trip.count55 = zext nneg i32 %18 to i64
  br label %36

.preheader.split.us.preheader:                    ; preds = %.preheader37, %.preheader
  %20 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader.split.us.1 unwind label %.split.us

.preheader.split.us.1:                            ; preds = %.preheader.split.us.preheader
  %21 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %20)
  %22 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader.split.us.2 unwind label %.split.us

.preheader.split.us.2:                            ; preds = %.preheader.split.us.1
  %23 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %22)
  %24 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.preheader.split.us.3 unwind label %.split.us

.preheader.split.us.3:                            ; preds = %.preheader.split.us.2
  %25 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %24)
  %26 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.split46.us unwind label %.split.us

.split.us:                                        ; preds = %.preheader.split.us.3, %.preheader.split.us.2, %.preheader.split.us.1, %.preheader.split.us.preheader
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %59

28:                                               ; preds = %.lr.ph48
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %59

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %30 = call i32 @rand() #5
  %31 = trunc i32 %30 to i8
  %32 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #5
  store i8 %31, ptr %32, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !8

.split46.us:                                      ; preds = %.preheader.split.us.3, %._crit_edge.3
  %.sink = phi i1 [ %57, %._crit_edge.3 ], [ %26, %.preheader.split.us.3 ]
  %33 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %.sink)
  %34 = add nuw nsw i32 %.02947, 1
  %exitcond57.not = icmp eq i32 %34, %9
  br i1 %exitcond57.not, label %._crit_edge49, label %.lr.ph48, !llvm.loop !10

._crit_edge:                                      ; preds = %36
  %35 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.lr.ph43.1 unwind label %.split

36:                                               ; preds = %.lr.ph43.preheader, %36
  %indvars.iv52 = phi i64 [ 0, %.lr.ph43.preheader ], [ %indvars.iv.next53, %36 ]
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv52) #5
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = and i8 %38, %.sroa.0.0.extract.trunc
  store i8 %39, ptr %37, align 1, !tbaa !5
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %wide.trip.count55
  br i1 %exitcond56.not, label %._crit_edge, label %36, !llvm.loop !11

.lr.ph43.1:                                       ; preds = %._crit_edge
  %40 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %35)
  br label %41

41:                                               ; preds = %41, %.lr.ph43.1
  %indvars.iv52.1 = phi i64 [ 0, %.lr.ph43.1 ], [ %indvars.iv.next53.1, %41 ]
  %42 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv52.1) #5
  %43 = load i8, ptr %42, align 1, !tbaa !5
  %44 = and i8 %43, %.sroa.5.0.extract.trunc
  store i8 %44, ptr %42, align 1, !tbaa !5
  %indvars.iv.next53.1 = add nuw nsw i64 %indvars.iv52.1, 1
  %exitcond56.1.not = icmp eq i64 %indvars.iv.next53.1, %wide.trip.count55
  br i1 %exitcond56.1.not, label %._crit_edge.1, label %41, !llvm.loop !11

._crit_edge.1:                                    ; preds = %41
  %45 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.lr.ph43.2 unwind label %.split

.lr.ph43.2:                                       ; preds = %._crit_edge.1
  %46 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %45)
  br label %47

47:                                               ; preds = %47, %.lr.ph43.2
  %indvars.iv52.2 = phi i64 [ 0, %.lr.ph43.2 ], [ %indvars.iv.next53.2, %47 ]
  %48 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv52.2) #5
  %49 = load i8, ptr %48, align 1, !tbaa !5
  %50 = and i8 %49, %.sroa.6.0.extract.trunc
  store i8 %50, ptr %48, align 1, !tbaa !5
  %indvars.iv.next53.2 = add nuw nsw i64 %indvars.iv52.2, 1
  %exitcond56.2.not = icmp eq i64 %indvars.iv.next53.2, %wide.trip.count55
  br i1 %exitcond56.2.not, label %._crit_edge.2, label %47, !llvm.loop !11

._crit_edge.2:                                    ; preds = %47
  %51 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.lr.ph43.3 unwind label %.split

.lr.ph43.3:                                       ; preds = %._crit_edge.2
  %52 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %51)
  br label %53

53:                                               ; preds = %53, %.lr.ph43.3
  %indvars.iv52.3 = phi i64 [ 0, %.lr.ph43.3 ], [ %indvars.iv.next53.3, %53 ]
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv52.3) #5
  %55 = load i8, ptr %54, align 1, !tbaa !5
  %56 = and i8 %55, %.sroa.7.0.extract.trunc
  store i8 %56, ptr %54, align 1, !tbaa !5
  %indvars.iv.next53.3 = add nuw nsw i64 %indvars.iv52.3, 1
  %exitcond56.3.not = icmp eq i64 %indvars.iv.next53.3, %wide.trip.count55
  br i1 %exitcond56.3.not, label %._crit_edge.3, label %53, !llvm.loop !11

._crit_edge.3:                                    ; preds = %53
  %57 = invoke noundef zeroext i1 @_Z38ECL_Test_NanoLZ_AllCompressorsAreEqualRKSt6vectorIhSaIhEERSo(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(8) %1)
          to label %.split46.us unwind label %.split

.split:                                           ; preds = %._crit_edge.3, %._crit_edge.2, %._crit_edge.1, %._crit_edge
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %59

59:                                               ; preds = %14, %28, %.split.us, %.split, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %13, %12 ], [ %15, %14 ], [ %29, %28 ], [ %58, %.split ], [ %27, %.split.us ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn.pn
}

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

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

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


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