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

; 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 }
%"class.std::initializer_list" = type { ptr, i64 }

@__const._ZN28test_NanoLZ_auto_random_data11runInternalERSoi.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: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Compress_auto(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Decompress(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #1

; 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 noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @memcmp(ptr noundef, ptr noundef, i64 noundef) #5

; 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 ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) #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: nounwind
declare i32 @rand() #6

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN28test_NanoLZ_auto_random_data11runInternalERSoi(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 %"class.std::vector.1", align 8
  %9 = alloca %"class.std::vector.1", align 8
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [4 x i8], align 1
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i8, align 1
  %24 = alloca i32, align 4
  %25 = alloca i64, align 8
  %26 = alloca ptr, align 8
  %27 = alloca %"class.std::initializer_list", align 8
  %28 = alloca [1 x i32], align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = 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
  %34 = load ptr, ptr %4, align 8
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  %36 = load i32, ptr %6, align 4, !tbaa !9
  %37 = add nsw i32 %36, 10
  %38 = invoke noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef %37, i32 noundef 0, i32 noundef 1010)
          to label %39 unwind label %48

39:                                               ; preds = %3
  %40 = add nsw i32 %38, 1
  %41 = mul nsw i32 100, %40
  store i32 %41, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 2000, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 1, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %15, ptr align 1 @__const._ZN28test_NanoLZ_auto_random_data11runInternalERSoi.masks, i64 4, i1 false)
  invoke void @_ZNSt6vectorIhSaIhEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 2000)
          to label %42 unwind label %52

42:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %43

43:                                               ; preds = %186, %42
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %10, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %56, label %47

47:                                               ; preds = %43
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %190

48:                                               ; preds = %3
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %11, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %12, align 4
  br label %192

52:                                               ; preds = %39
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %11, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %12, align 4
  br label %191

56:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %57 = call i32 @rand() #7
  %58 = srem i32 %57, 1999
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %18, align 4, !tbaa !9
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %60 = load i32, ptr %18, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %61)
          to label %62 unwind label %68

62:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %78, %62
  %64 = load i32, ptr %19, align 4, !tbaa !9
  %65 = load i32, ptr %18, align 4, !tbaa !9
  %66 = icmp ult i32 %64, %65
  br i1 %66, label %72, label %67

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

68:                                               ; preds = %56
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %11, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %12, align 4
  br label %189

72:                                               ; preds = %63
  %73 = call i32 @rand() #7
  %74 = trunc i32 %73 to i8
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %76) #7
  store i8 %74, ptr %77, align 1, !tbaa !11
  br label %78

78:                                               ; preds = %72
  %79 = load i32, ptr %19, align 4, !tbaa !9
  %80 = add i32 %79, 1
  store i32 %80, ptr %19, align 4, !tbaa !9
  br label %63, !llvm.loop !12

81:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  store ptr %15, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %82 = load ptr, ptr %20, align 8, !tbaa !5
  %83 = getelementptr inbounds [4 x i8], ptr %82, i64 0, i64 0
  store ptr %83, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %84 = load ptr, ptr %20, align 8, !tbaa !5
  %85 = getelementptr inbounds [4 x i8], ptr %84, i64 0, i64 0
  %86 = getelementptr inbounds i8, ptr %85, i64 4
  store ptr %86, ptr %22, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %181, %81
  %88 = load ptr, ptr %21, align 8, !tbaa !5
  %89 = load ptr, ptr %22, align 8, !tbaa !5
  %90 = icmp ne ptr %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %185

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #7
  %93 = load ptr, ptr %21, align 8, !tbaa !5
  %94 = load i8, ptr %93, align 1, !tbaa !11
  store i8 %94, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %110, %92
  %96 = load i32, ptr %24, align 4, !tbaa !9
  %97 = load i32, ptr %18, align 4, !tbaa !9
  %98 = icmp ult i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 10, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %113

100:                                              ; preds = %95
  %101 = load i8, ptr %23, align 1, !tbaa !11
  %102 = zext i8 %101 to i32
  %103 = load i32, ptr %24, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  %105 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %104) #7
  %106 = load i8, ptr %105, align 1, !tbaa !11
  %107 = zext i8 %106 to i32
  %108 = and i32 %107, %102
  %109 = trunc i32 %108 to i8
  store i8 %109, ptr %105, align 1, !tbaa !11
  br label %110

110:                                              ; preds = %100
  %111 = load i32, ptr %24, align 4, !tbaa !9
  %112 = add i32 %111, 1
  store i32 %112, ptr %24, align 4, !tbaa !9
  br label %95, !llvm.loop !14

113:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %114 = load i32, ptr %18, align 4, !tbaa !9
  %115 = add i32 %114, 2
  %116 = zext i32 %115 to i64
  %117 = add i64 %116, 4
  %118 = add i64 %117, 1
  store i64 %118, ptr %25, align 8, !tbaa !15
  %119 = load i64, ptr %25, align 8, !tbaa !15
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef %119)
          to label %120 unwind label %132

120:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !17
  %121 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 0
  store ptr %28, ptr %121, align 8, !tbaa !19
  %122 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 1
  store i64 1, ptr %122, align 8, !tbaa !21
  store ptr %27, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %123 = load ptr, ptr %26, align 8, !tbaa !5
  %124 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %123) #7
  store ptr %124, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %125 = load ptr, ptr %26, align 8, !tbaa !5
  %126 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %125) #7
  store ptr %126, ptr %30, align 8, !tbaa !5
  br label %127

127:                                              ; preds = %168, %120
  %128 = load ptr, ptr %29, align 8, !tbaa !5
  %129 = load ptr, ptr %30, align 8, !tbaa !5
  %130 = icmp ne ptr %128, %129
  br i1 %130, label %136, label %131

131:                                              ; preds = %127
  store i32 13, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %180

132:                                              ; preds = %113
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %11, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %12, align 4
  br label %184

136:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %137 = load ptr, ptr %29, align 8, !tbaa !5
  %138 = load i32, ptr %137, align 4, !tbaa !17
  store i32 %138, ptr %31, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %139 = load i32, ptr %31, align 4, !tbaa !17
  %140 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %141 = load i32, ptr %18, align 4, !tbaa !9
  %142 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %143 = load i64, ptr %25, align 8, !tbaa !15
  %144 = trunc i64 %143 to i32
  %145 = invoke i32 @ECL_NanoLZ_Compress_auto(i32 noundef %139, ptr noundef %140, i32 noundef %141, ptr noundef %142, i32 noundef %144, i32 noundef -1)
          to label %146 unwind label %171

146:                                              ; preds = %136
  store i32 %145, ptr %32, align 4, !tbaa !9
  %147 = load i32, ptr %18, align 4, !tbaa !9
  %148 = zext i32 %147 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %148)
          to label %149 unwind label %171

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %150 = load i32, ptr %31, align 4, !tbaa !17
  %151 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %152 = load i32, ptr %32, align 4, !tbaa !9
  %153 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %154 = load i32, ptr %18, align 4, !tbaa !9
  %155 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %150, ptr noundef %151, i32 noundef %152, ptr noundef %153, i32 noundef %154)
          to label %156 unwind label %175

156:                                              ; preds = %149
  store i32 %155, ptr %33, align 4, !tbaa !9
  %157 = load i32, ptr %33, align 4, !tbaa !9
  %158 = load i32, ptr %18, align 4, !tbaa !9
  %159 = icmp eq i32 %157, %158
  %160 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %34, i1 noundef zeroext %159)
  %161 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %162 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = call i32 @memcmp(ptr noundef %161, ptr noundef %162, i64 noundef %164) #8
  %166 = icmp eq i32 0, %165
  %167 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %34, i1 noundef zeroext %166)
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %168

168:                                              ; preds = %156
  %169 = load ptr, ptr %29, align 8, !tbaa !5
  %170 = getelementptr inbounds i32, ptr %169, i32 1
  store ptr %170, ptr %29, align 8, !tbaa !5
  br label %127

171:                                              ; preds = %146, %136
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %11, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %12, align 4
  br label %179

175:                                              ; preds = %149
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %11, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %179

179:                                              ; preds = %175, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  br label %184

180:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  br label %181

181:                                              ; preds = %180
  %182 = load ptr, ptr %21, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i32 1
  store ptr %183, ptr %21, align 8, !tbaa !5
  br label %87

184:                                              ; preds = %179, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %189

185:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = add nsw i32 %187, 1
  store i32 %188, ptr %16, align 4, !tbaa !9
  br label %43, !llvm.loop !22

189:                                              ; preds = %184, %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %191

190:                                              ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  ret void

191:                                              ; preds = %189, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %192

192:                                              ; preds = %191, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #7
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  br label %193

193:                                              ; preds = %192
  %194 = load ptr, ptr %11, align 8
  %195 = load i32, ptr %12, align 4
  %196 = insertvalue { ptr, i32 } poison, ptr %194, 0
  %197 = insertvalue { ptr, i32 } %196, i32 %195, 1
  resume { ptr, i32 } %197
}

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 willreturn memory(read) "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }

!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 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS17ECL_NanoLZ_Scheme", !7, i64 0}
!19 = !{!20, !6, i64 0}
!20 = !{!"_ZTSSt16initializer_listI17ECL_NanoLZ_SchemeE", !6, i64 0, !16, i64 8}
!21 = !{!20, !16, i64 8}
!22 = distinct !{!22, !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 }
%"class.std::initializer_list" = type { ptr, i64 }

@__const._ZN28test_NanoLZ_auto_random_data11runInternalERSoi.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: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Compress_auto(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Decompress(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; 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 noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 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 ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16)) local_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: 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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN28test_NanoLZ_auto_random_data11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readnone 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
  %5 = alloca %"class.std::vector.1", align 8
  %6 = alloca %"class.std::vector.1", align 8
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [1 x i32], align 4
  tail call void @_ZN13ntest_for_ecl10ntest_noopEv()
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIhSaIhEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %9 = add nsw i32 %2, 10
  %10 = invoke noundef i32 @_ZN13ntest_for_ecl8TestBase12BoundVMinMaxEiii(i32 noundef %9, i32 noundef 0, i32 noundef 1010)
          to label %11 unwind label %17

11:                                               ; preds = %3
  %12 = mul i32 %10, 100
  %13 = add i32 %12, 100
  %14 = load i32, ptr @__const._ZN28test_NanoLZ_auto_random_data11runInternalERSoi.masks, align 1
  %.sroa.0.0.extract.trunc = trunc i32 %14 to i8
  %.sroa.5.0.extract.shift = lshr i32 %14, 8
  %.sroa.5.0.extract.trunc = trunc i32 %.sroa.5.0.extract.shift to i8
  %.sroa.6.0.extract.shift = lshr i32 %14, 16
  %.sroa.6.0.extract.trunc = trunc i32 %.sroa.6.0.extract.shift to i8
  %.sroa.7.0.extract.shift = lshr i32 %14, 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 2000)
          to label %.preheader59 unwind label %19

.preheader59:                                     ; preds = %11
  %15 = icmp sgt i32 %13, 0
  br i1 %15, label %.lr.ph70, label %._crit_edge71

.lr.ph70:                                         ; preds = %.preheader59
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  br label %21

._crit_edge71:                                    ; preds = %._crit_edge67.3, %.preheader59
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  ret void

17:                                               ; preds = %3
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %132

19:                                               ; preds = %11
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %132

21:                                               ; preds = %.lr.ph70, %._crit_edge67.3
  %.04669 = phi i32 [ 0, %.lr.ph70 ], [ %112, %._crit_edge67.3 ]
  %22 = call i32 @rand() #6
  %23 = srem i32 %22, 1999
  %24 = add nsw i32 %23, 1
  call void @_ZNSt6vectorIhSaIhEE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %25 = zext i32 %24 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %25)
          to label %.preheader58 unwind label %30

.preheader58:                                     ; preds = %21
  %.not72 = icmp eq i32 %24, 0
  br i1 %.not72, label %._crit_edge, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %26 = add nsw i32 %23, 3
  %27 = zext i32 %26 to i64
  %28 = add nuw nsw i64 %27, 5
  %29 = trunc i64 %28 to i32
  br i1 %.not72, label %._crit_edge, label %.lr.ph62

30:                                               ; preds = %21
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %132

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

._crit_edge:                                      ; preds = %.lr.ph62, %.preheader58, %.preheader
  %35 = phi i32 [ %29, %.preheader ], [ 7, %.preheader58 ], [ %29, %.lr.ph62 ]
  %36 = phi i64 [ %28, %.preheader ], [ 7, %.preheader58 ], [ %28, %.lr.ph62 ]
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36)
          to label %40 unwind label %113

.lr.ph62:                                         ; preds = %.preheader, %.lr.ph62
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.lr.ph62 ], [ 0, %.preheader ]
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv75) #6
  %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.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %25
  br i1 %exitcond79.not, label %._crit_edge, label %.lr.ph62, !llvm.loop !10

40:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  store ptr %8, ptr %7, align 8, !tbaa !13
  store i64 1, ptr %16, align 8, !tbaa !17
  %41 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %42 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %.not5263 = icmp eq ptr %41, %42
  br i1 %.not5263, label %._crit_edge67, label %.lr.ph66

._crit_edge67:                                    ; preds = %124, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br i1 %.not72, label %._crit_edge.1, label %.lr.ph62.1

.lr.ph62.1:                                       ; preds = %._crit_edge67, %.lr.ph62.1
  %indvars.iv75.1 = phi i64 [ %indvars.iv.next76.1, %.lr.ph62.1 ], [ 0, %._crit_edge67 ]
  %43 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv75.1) #6
  %44 = load i8, ptr %43, align 1, !tbaa !5
  %45 = and i8 %44, %.sroa.5.0.extract.trunc
  store i8 %45, ptr %43, align 1, !tbaa !5
  %indvars.iv.next76.1 = add nuw nsw i64 %indvars.iv75.1, 1
  %exitcond79.1.not = icmp eq i64 %indvars.iv.next76.1, %25
  br i1 %exitcond79.1.not, label %._crit_edge.1, label %.lr.ph62.1, !llvm.loop !10

._crit_edge.1:                                    ; preds = %.lr.ph62.1, %._crit_edge67
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36)
          to label %46 unwind label %113

46:                                               ; preds = %._crit_edge.1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  store ptr %8, ptr %7, align 8, !tbaa !13
  store i64 1, ptr %16, align 8, !tbaa !17
  %47 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %48 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %.not5263.1 = icmp eq ptr %47, %48
  br i1 %.not5263.1, label %._crit_edge67.1, label %.lr.ph66.1

.lr.ph66.1:                                       ; preds = %46, %58
  %.04764.1 = phi ptr [ %65, %58 ], [ %47, %46 ]
  %49 = load i32, ptr %.04764.1, align 4, !tbaa !11
  %50 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %51 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %52 = invoke i32 @ECL_NanoLZ_Compress_auto(i32 noundef %49, ptr noundef %50, i32 noundef %24, ptr noundef %51, i32 noundef %35, i32 noundef -1)
          to label %53 unwind label %.loopexit.split-lp.loopexit

53:                                               ; preds = %.lr.ph66.1
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %25)
          to label %54 unwind label %.loopexit.split-lp.loopexit

54:                                               ; preds = %53
  %55 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %56 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %57 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %49, ptr noundef %55, i32 noundef %52, ptr noundef %56, i32 noundef %24)
          to label %58 unwind label %.loopexit.split-lp81.loopexit

58:                                               ; preds = %54
  %59 = icmp eq i32 %57, %24
  %60 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %59)
  %61 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %62 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp.1 = call i32 @bcmp(ptr %61, ptr %62, i64 %25)
  %63 = icmp eq i32 %bcmp.1, 0
  %64 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %63)
  %65 = getelementptr inbounds i8, ptr %.04764.1, i64 4
  %.not52.1 = icmp eq ptr %65, %48
  br i1 %.not52.1, label %._crit_edge67.1, label %.lr.ph66.1

._crit_edge67.1:                                  ; preds = %58, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br i1 %.not72, label %._crit_edge.2, label %.lr.ph62.2

.lr.ph62.2:                                       ; preds = %._crit_edge67.1, %.lr.ph62.2
  %indvars.iv75.2 = phi i64 [ %indvars.iv.next76.2, %.lr.ph62.2 ], [ 0, %._crit_edge67.1 ]
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv75.2) #6
  %67 = load i8, ptr %66, align 1, !tbaa !5
  %68 = and i8 %67, %.sroa.6.0.extract.trunc
  store i8 %68, ptr %66, align 1, !tbaa !5
  %indvars.iv.next76.2 = add nuw nsw i64 %indvars.iv75.2, 1
  %exitcond79.2.not = icmp eq i64 %indvars.iv.next76.2, %25
  br i1 %exitcond79.2.not, label %._crit_edge.2, label %.lr.ph62.2, !llvm.loop !10

._crit_edge.2:                                    ; preds = %.lr.ph62.2, %._crit_edge67.1
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36)
          to label %69 unwind label %113

69:                                               ; preds = %._crit_edge.2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  store ptr %8, ptr %7, align 8, !tbaa !13
  store i64 1, ptr %16, align 8, !tbaa !17
  %70 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %71 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %.not5263.2 = icmp eq ptr %70, %71
  br i1 %.not5263.2, label %._crit_edge67.2, label %.lr.ph66.2

.lr.ph66.2:                                       ; preds = %69, %81
  %.04764.2 = phi ptr [ %88, %81 ], [ %70, %69 ]
  %72 = load i32, ptr %.04764.2, align 4, !tbaa !11
  %73 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %74 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %75 = invoke i32 @ECL_NanoLZ_Compress_auto(i32 noundef %72, ptr noundef %73, i32 noundef %24, ptr noundef %74, i32 noundef %35, i32 noundef -1)
          to label %76 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

76:                                               ; preds = %.lr.ph66.2
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %25)
          to label %77 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit

77:                                               ; preds = %76
  %78 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %79 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %80 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %72, ptr noundef %78, i32 noundef %75, ptr noundef %79, i32 noundef %24)
          to label %81 unwind label %.loopexit.split-lp81.loopexit.split-lp.loopexit

81:                                               ; preds = %77
  %82 = icmp eq i32 %80, %24
  %83 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %82)
  %84 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %85 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp.2 = call i32 @bcmp(ptr %84, ptr %85, i64 %25)
  %86 = icmp eq i32 %bcmp.2, 0
  %87 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %86)
  %88 = getelementptr inbounds i8, ptr %.04764.2, i64 4
  %.not52.2 = icmp eq ptr %88, %71
  br i1 %.not52.2, label %._crit_edge67.2, label %.lr.ph66.2

._crit_edge67.2:                                  ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br i1 %.not72, label %._crit_edge.3, label %.lr.ph62.3

.lr.ph62.3:                                       ; preds = %._crit_edge67.2, %.lr.ph62.3
  %indvars.iv75.3 = phi i64 [ %indvars.iv.next76.3, %.lr.ph62.3 ], [ 0, %._crit_edge67.2 ]
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv75.3) #6
  %90 = load i8, ptr %89, align 1, !tbaa !5
  %91 = and i8 %90, %.sroa.7.0.extract.trunc
  store i8 %91, ptr %89, align 1, !tbaa !5
  %indvars.iv.next76.3 = add nuw nsw i64 %indvars.iv75.3, 1
  %exitcond79.3.not = icmp eq i64 %indvars.iv.next76.3, %25
  br i1 %exitcond79.3.not, label %._crit_edge.3, label %.lr.ph62.3, !llvm.loop !10

._crit_edge.3:                                    ; preds = %.lr.ph62.3, %._crit_edge67.2
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %36)
          to label %92 unwind label %113

92:                                               ; preds = %._crit_edge.3
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store i32 0, ptr %8, align 4, !tbaa !11
  store ptr %8, ptr %7, align 8, !tbaa !13
  store i64 1, ptr %16, align 8, !tbaa !17
  %93 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %94 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %7) #6
  %.not5263.3 = icmp eq ptr %93, %94
  br i1 %.not5263.3, label %._crit_edge67.3, label %.lr.ph66.3

.lr.ph66.3:                                       ; preds = %92, %104
  %.04764.3 = phi ptr [ %111, %104 ], [ %93, %92 ]
  %95 = load i32, ptr %.04764.3, align 4, !tbaa !11
  %96 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %97 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %98 = invoke i32 @ECL_NanoLZ_Compress_auto(i32 noundef %95, ptr noundef %96, i32 noundef %24, ptr noundef %97, i32 noundef %35, i32 noundef -1)
          to label %99 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

99:                                               ; preds = %.lr.ph66.3
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %25)
          to label %100 unwind label %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp

100:                                              ; preds = %99
  %101 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %102 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %103 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %95, ptr noundef %101, i32 noundef %98, ptr noundef %102, i32 noundef %24)
          to label %104 unwind label %.loopexit.split-lp81.loopexit.split-lp.loopexit.split-lp

104:                                              ; preds = %100
  %105 = icmp eq i32 %103, %24
  %106 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %105)
  %107 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %108 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp.3 = call i32 @bcmp(ptr %107, ptr %108, i64 %25)
  %109 = icmp eq i32 %bcmp.3, 0
  %110 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %109)
  %111 = getelementptr inbounds i8, ptr %.04764.3, i64 4
  %.not52.3 = icmp eq ptr %111, %94
  br i1 %.not52.3, label %._crit_edge67.3, label %.lr.ph66.3

._crit_edge67.3:                                  ; preds = %104, %92
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %112 = add nuw nsw i32 %.04669, 1
  %exitcond96.not = icmp eq i32 %112, %13
  br i1 %exitcond96.not, label %._crit_edge71, label %21, !llvm.loop !18

113:                                              ; preds = %._crit_edge.3, %._crit_edge.2, %._crit_edge.1, %._crit_edge
  %114 = landingpad { ptr, i32 }
          cleanup
  br label %132

.lr.ph66:                                         ; preds = %40, %124
  %.04764 = phi ptr [ %131, %124 ], [ %41, %40 ]
  %115 = load i32, ptr %.04764, align 4, !tbaa !11
  %116 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %117 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %118 = invoke i32 @ECL_NanoLZ_Compress_auto(i32 noundef %115, ptr noundef %116, i32 noundef %24, ptr noundef %117, i32 noundef %35, i32 noundef -1)
          to label %119 unwind label %.loopexit

119:                                              ; preds = %.lr.ph66
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %25)
          to label %120 unwind label %.loopexit

120:                                              ; preds = %119
  %121 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %122 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %123 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %115, ptr noundef %121, i32 noundef %118, ptr noundef %122, i32 noundef %24)
          to label %124 unwind label %.loopexit80

124:                                              ; preds = %120
  %125 = icmp eq i32 %123, %24
  %126 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %125)
  %127 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %128 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp = call i32 @bcmp(ptr %127, ptr %128, i64 %25)
  %129 = icmp eq i32 %bcmp, 0
  %130 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %129)
  %131 = getelementptr inbounds i8, ptr %.04764, i64 4
  %.not52 = icmp eq ptr %131, %42
  br i1 %.not52, label %._crit_edge67, label %.lr.ph66

.loopexit:                                        ; preds = %.lr.ph66, %119
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit:                      ; preds = %53, %.lr.ph66.1
  %lpad.loopexit85 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit:    ; preds = %.lr.ph66.2, %76
  %lpad.loopexit90 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp: ; preds = %.lr.ph66.3, %99
  %lpad.loopexit.split-lp91 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit80:                                      ; preds = %120
  %lpad.loopexit82 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp81.loopexit:                    ; preds = %54
  %lpad.loopexit88 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp81.loopexit.split-lp.loopexit:  ; preds = %77
  %lpad.loopexit93 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp81.loopexit.split-lp.loopexit.split-lp: ; preds = %100
  %lpad.loopexit.split-lp94 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit80, %.loopexit.split-lp81.loopexit.split-lp.loopexit, %.loopexit.split-lp81.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp81.loopexit, %.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit
  %.pn = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit85, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit90, %.loopexit.split-lp.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp91, %.loopexit.split-lp.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit82, %.loopexit80 ], [ %lpad.loopexit88, %.loopexit.split-lp81.loopexit ], [ %lpad.loopexit93, %.loopexit.split-lp81.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp94, %.loopexit.split-lp81.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %132

132:                                              ; preds = %19, %113, %.loopexit.split-lp, %30, %17
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %18, %17 ], [ %20, %19 ], [ %31, %30 ], [ %.pn, %.loopexit.split-lp ], [ %114, %113 ]
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorIhSaIhEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: nofree nounwind willreturn memory(argmem: read)
declare i32 @bcmp(ptr nocapture, ptr nocapture, i64) local_unnamed_addr #5

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 = { nofree nounwind willreturn memory(argmem: read) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = distinct !{!10, !9}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS17ECL_NanoLZ_Scheme", !6, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTSSt16initializer_listI17ECL_NanoLZ_SchemeE", !15, i64 0, !16, i64 8}
!15 = !{!"any pointer", !6, i64 0}
!16 = !{!"long", !6, i64 0}
!17 = !{!14, !16, i64 8}
!18 = distinct !{!18, !9}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass