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

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

@__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.masks = external hidden unnamed_addr constant [6 x i8], align 1
@__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.search_limits = external hidden unnamed_addr constant [4 x i32], align 16

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #1 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @ECL_NanoLZ_FastParams_Alloc1(ptr noundef, i8 noundef zeroext) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @ECL_NanoLZ_FastParams_Destroy(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Decompress(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) #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 #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 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 #1 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #3 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 [6 x i8], align 1
  %11 = alloca [4 x i32], align 16
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.ECL_NanoLZ_FastParams, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca i32, align 4
  %23 = alloca i64, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca %"class.std::initializer_list", align 8
  %30 = alloca [1 x i32], align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = 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
  %39 = load ptr, ptr %4, align 8
  %40 = 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 6, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.masks, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.search_limits, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 2000, ptr %12, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef 2000)
          to label %41 unwind label %46

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

42:                                               ; preds = %56, %41
  %43 = load i32, ptr %15, align 4, !tbaa !9
  %44 = icmp ult i32 %43, 2000
  br i1 %44, label %50, label %45

45:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %59

46:                                               ; preds = %3
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  br label %232

50:                                               ; preds = %42
  %51 = call i32 @rand() #7
  %52 = trunc i32 %51 to i8
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = zext i32 %53 to i64
  %55 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %54) #7
  store i8 %52, ptr %55, align 1, !tbaa !11
  br label %56

56:                                               ; preds = %50
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = add i32 %57, 1
  store i32 %58, ptr %15, align 4, !tbaa !9
  br label %42, !llvm.loop !12

59:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %60 = invoke zeroext i1 @ECL_NanoLZ_FastParams_Alloc1(ptr noundef %16, i8 noundef zeroext 11)
          to label %61 unwind label %72

61:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr %10, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = getelementptr inbounds [6 x i8], ptr %62, i64 0, i64 0
  store ptr %63, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = getelementptr inbounds [6 x i8], ptr %64, i64 0, i64 0
  %66 = getelementptr inbounds i8, ptr %65, i64 6
  store ptr %66, ptr %19, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %225, %61
  %68 = load ptr, ptr %18, align 8, !tbaa !5
  %69 = load ptr, ptr %19, align 8, !tbaa !5
  %70 = icmp ne ptr %68, %69
  br i1 %70, label %76, label %71

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

72:                                               ; preds = %229, %59
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %13, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %14, align 4
  br label %231

76:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = load i8, ptr %77, align 1, !tbaa !11
  store i8 %78, ptr %21, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %93, %76
  %80 = load i32, ptr %22, align 4, !tbaa !9
  %81 = icmp ult i32 %80, 2000
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 7, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  br label %96

83:                                               ; preds = %79
  %84 = load i8, ptr %21, align 1, !tbaa !11
  %85 = zext i8 %84 to i32
  %86 = load i32, ptr %22, align 4, !tbaa !9
  %87 = zext i32 %86 to i64
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %87) #7
  %89 = load i8, ptr %88, align 1, !tbaa !11
  %90 = zext i8 %89 to i32
  %91 = and i32 %90, %85
  %92 = trunc i32 %91 to i8
  store i8 %92, ptr %88, align 1, !tbaa !11
  br label %93

93:                                               ; preds = %83
  %94 = load i32, ptr %22, align 4, !tbaa !9
  %95 = add i32 %94, 1
  store i32 %95, ptr %22, align 4, !tbaa !9
  br label %79, !llvm.loop !14

96:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store i64 2007, ptr %23, align 8, !tbaa !15
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 2007)
          to label %97 unwind label %108

97:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store ptr %11, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %98 = load ptr, ptr %24, align 8, !tbaa !5
  %99 = getelementptr inbounds [4 x i32], ptr %98, i64 0, i64 0
  store ptr %99, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %100 = load ptr, ptr %24, align 8, !tbaa !5
  %101 = getelementptr inbounds [4 x i32], ptr %100, i64 0, i64 0
  %102 = getelementptr inbounds i32, ptr %101, i64 4
  store ptr %102, ptr %26, align 8, !tbaa !5
  br label %103

103:                                              ; preds = %221, %97
  %104 = load ptr, ptr %25, align 8, !tbaa !5
  %105 = load ptr, ptr %26, align 8, !tbaa !5
  %106 = icmp ne ptr %104, %105
  br i1 %106, label %112, label %107

107:                                              ; preds = %103
  store i32 10, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %224

108:                                              ; preds = %96
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %13, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %14, align 4
  br label %228

112:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %113 = load ptr, ptr %25, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  store i32 %114, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  store i32 0, ptr %30, align 4, !tbaa !17
  %115 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 0
  store ptr %30, ptr %115, align 8, !tbaa !19
  %116 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 1
  store i64 1, ptr %116, align 8, !tbaa !21
  store ptr %29, ptr %28, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %117) #7
  store ptr %118, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %119 = load ptr, ptr %28, align 8, !tbaa !5
  %120 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %119) #7
  store ptr %120, ptr %32, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %215, %112
  %122 = load ptr, ptr %31, align 8, !tbaa !5
  %123 = load ptr, ptr %32, align 8, !tbaa !5
  %124 = icmp ne ptr %122, %123
  br i1 %124, label %126, label %125

125:                                              ; preds = %121
  store i32 12, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %220

126:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %127 = load ptr, ptr %31, align 8, !tbaa !5
  %128 = load i32, ptr %127, align 4, !tbaa !17
  store i32 %128, ptr %33, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #7
  %129 = load i32, ptr %33, align 4, !tbaa !17
  %130 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %131 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %132 = load i32, ptr %27, align 4, !tbaa !9
  %133 = invoke i32 @ECL_NanoLZ_Compress_fast1(i32 noundef %129, ptr noundef %130, i32 noundef 2000, ptr noundef %131, i32 noundef 2007, i32 noundef %132, ptr noundef %16)
          to label %134 unwind label %154

134:                                              ; preds = %126
  store i32 %133, ptr %34, align 4, !tbaa !9
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 2000)
          to label %135 unwind label %154

135:                                              ; preds = %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  %136 = load i32, ptr %33, align 4, !tbaa !17
  %137 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %138 = load i32, ptr %34, align 4, !tbaa !9
  %139 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %140 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %136, ptr noundef %137, i32 noundef %138, ptr noundef %139, i32 noundef 2000)
          to label %141 unwind label %158

141:                                              ; preds = %135
  store i32 %140, ptr %35, align 4, !tbaa !9
  %142 = load i32, ptr %35, align 4, !tbaa !9
  %143 = icmp eq i32 %142, 2000
  %144 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %39, i1 noundef zeroext %143)
  %145 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %146 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %147 = call i32 @memcmp(ptr noundef %145, ptr noundef %146, i64 noundef 2000) #8
  %148 = icmp eq i32 0, %147
  %149 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %39, i1 noundef zeroext %148)
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 1, ptr %36, align 4, !tbaa !9
  br label %150

150:                                              ; preds = %210, %141
  %151 = load i32, ptr %36, align 4, !tbaa !9
  %152 = icmp ule i32 %151, 2000
  br i1 %152, label %162, label %153

153:                                              ; preds = %150
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %214

154:                                              ; preds = %134, %126
  %155 = landingpad { ptr, i32 }
          cleanup
  %156 = extractvalue { ptr, i32 } %155, 0
  store ptr %156, ptr %13, align 8
  %157 = extractvalue { ptr, i32 } %155, 1
  store i32 %157, ptr %14, align 4
  br label %219

158:                                              ; preds = %135
  %159 = landingpad { ptr, i32 }
          cleanup
  %160 = extractvalue { ptr, i32 } %159, 0
  store ptr %160, ptr %13, align 8
  %161 = extractvalue { ptr, i32 } %159, 1
  store i32 %161, ptr %14, align 4
  br label %218

162:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %163 = load i32, ptr %36, align 4, !tbaa !9
  %164 = sub i32 2000, %163
  store i32 %164, ptr %37, align 4, !tbaa !9
  %165 = load i32, ptr %37, align 4, !tbaa !9
  %166 = add i32 %165, 1
  %167 = zext i32 %166 to i64
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %167)
          to label %168 unwind label %194

168:                                              ; preds = %162
  %169 = load i32, ptr %37, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %170) #7
  store i8 57, ptr %171, align 1, !tbaa !11
  invoke void @_ZN13ntest_for_ecl10ntest_noopEv()
          to label %172 unwind label %194

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %173 = load i32, ptr %33, align 4, !tbaa !17
  %174 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %8) #7
  %175 = load i32, ptr %34, align 4, !tbaa !9
  %176 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %177 = load i32, ptr %37, align 4, !tbaa !9
  %178 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %173, ptr noundef %174, i32 noundef %175, ptr noundef %176, i32 noundef %177)
          to label %179 unwind label %198

179:                                              ; preds = %172
  store i32 %178, ptr %38, align 4, !tbaa !9
  %180 = load i32, ptr %38, align 4, !tbaa !9
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %202

182:                                              ; preds = %179
  %183 = load i32, ptr %38, align 4, !tbaa !9
  %184 = load i32, ptr %37, align 4, !tbaa !9
  %185 = icmp eq i32 %183, %184
  %186 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %39, i1 noundef zeroext %185)
  %187 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %188 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %189 = load i32, ptr %37, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = call i32 @memcmp(ptr noundef %187, ptr noundef %188, i64 noundef %190) #8
  %192 = icmp eq i32 0, %191
  %193 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %39, i1 noundef zeroext %192)
  br label %202

194:                                              ; preds = %168, %162
  %195 = landingpad { ptr, i32 }
          cleanup
  %196 = extractvalue { ptr, i32 } %195, 0
  store ptr %196, ptr %13, align 8
  %197 = extractvalue { ptr, i32 } %195, 1
  store i32 %197, ptr %14, align 4
  br label %213

198:                                              ; preds = %172
  %199 = landingpad { ptr, i32 }
          cleanup
  %200 = extractvalue { ptr, i32 } %199, 0
  store ptr %200, ptr %13, align 8
  %201 = extractvalue { ptr, i32 } %199, 1
  store i32 %201, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  br label %213

202:                                              ; preds = %182, %179
  %203 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  %204 = sub i64 %203, 1
  %205 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %204) #7
  %206 = load i8, ptr %205, align 1, !tbaa !11
  %207 = zext i8 %206 to i32
  %208 = icmp eq i32 %207, 57
  %209 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %39, i1 noundef zeroext %208)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  br label %210

210:                                              ; preds = %202
  %211 = load i32, ptr %36, align 4, !tbaa !9
  %212 = add i32 %211, 1
  store i32 %212, ptr %36, align 4, !tbaa !9
  br label %150, !llvm.loop !22

213:                                              ; preds = %198, %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %218

214:                                              ; preds = %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr %31, align 8, !tbaa !5
  %217 = getelementptr inbounds i32, ptr %216, i32 1
  store ptr %217, ptr %31, align 8, !tbaa !5
  br label %121

218:                                              ; preds = %213, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %219

219:                                              ; preds = %218, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %228

220:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %221

221:                                              ; preds = %220
  %222 = load ptr, ptr %25, align 8, !tbaa !5
  %223 = getelementptr inbounds i32, ptr %222, i32 1
  store ptr %223, ptr %25, align 8, !tbaa !5
  br label %103

224:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %225

225:                                              ; preds = %224
  %226 = load ptr, ptr %18, align 8, !tbaa !5
  %227 = getelementptr inbounds i8, ptr %226, i32 1
  store ptr %227, ptr %18, align 8, !tbaa !5
  br label %67

228:                                              ; preds = %219, %108
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %231

229:                                              ; preds = %71
  invoke void @ECL_NanoLZ_FastParams_Destroy(ptr noundef %16)
          to label %230 unwind label %72

230:                                              ; preds = %229
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 6, 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

231:                                              ; preds = %228, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %232

232:                                              ; preds = %231, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 6, 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 %233

233:                                              ; preds = %232
  %234 = load ptr, ptr %13, align 8
  %235 = load i32, ptr %14, align 4
  %236 = insertvalue { ptr, i32 } poison, ptr %234, 0
  %237 = insertvalue { ptr, i32 } %236, i32 %235, 1
  resume { ptr, i32 } %237
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 }
%struct.ECL_NanoLZ_FastParams = type { ptr, ptr, i32 }
%"class.std::initializer_list" = type { ptr, i64 }

@__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.masks = external hidden unnamed_addr constant [6 x i8], align 1
@__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.search_limits = external hidden unnamed_addr constant [4 x i32], align 16

; 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 nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local zeroext i1 @ECL_NanoLZ_FastParams_Alloc1(ptr noundef, i8 noundef zeroext) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local i32 @ECL_NanoLZ_Decompress(i32 noundef, ptr noundef, i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #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 #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24)) 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 #1 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 #1 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 #1 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 #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(8) %1, i32 noundef %2) unnamed_addr #2 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 %struct.ECL_NanoLZ_FastParams, align 8
  %8 = alloca %"class.std::initializer_list", align 8
  %9 = 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
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2000)
          to label %.preheader69 unwind label %13

10:                                               ; preds = %.preheader69
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %11 = invoke zeroext i1 @ECL_NanoLZ_FastParams_Alloc1(ptr noundef nonnull %7, i8 noundef zeroext 11)
          to label %.preheader68 unwind label %19

.preheader68:                                     ; preds = %10
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  br label %21

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

.preheader69:                                     ; preds = %3, %.preheader69
  %indvars.iv = phi i64 [ %indvars.iv.next, %.preheader69 ], [ 0, %3 ]
  %15 = call i32 @rand() #6
  %16 = trunc i32 %15 to i8
  %17 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #6
  store i8 %16, ptr %17, align 1, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 2000
  br i1 %exitcond.not, label %10, label %.preheader69, !llvm.loop !8

18:                                               ; preds = %28
  invoke void @ECL_NanoLZ_FastParams_Destroy(ptr noundef nonnull %7)
          to label %86 unwind label %19

19:                                               ; preds = %18, %10
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %87

21:                                               ; preds = %.preheader68, %28
  %.053.idx76 = phi i64 [ 0, %.preheader68 ], [ %.053.add, %28 ]
  %.053.ptr = getelementptr inbounds i8, ptr @__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.masks, i64 %.053.idx76
  %22 = load i8, ptr %.053.ptr, align 1, !tbaa !5
  br label %24

23:                                               ; preds = %24
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef 2007)
          to label %.preheader unwind label %29

24:                                               ; preds = %21, %24
  %indvars.iv78 = phi i64 [ 0, %21 ], [ %indvars.iv.next79, %24 ]
  %25 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv78) #6
  %26 = load i8, ptr %25, align 1, !tbaa !5
  %27 = and i8 %26, %22
  store i8 %27, ptr %25, align 1, !tbaa !5
  %indvars.iv.next79 = add nuw nsw i64 %indvars.iv78, 1
  %exitcond81.not = icmp eq i64 %indvars.iv.next79, 2000
  br i1 %exitcond81.not, label %23, label %24, !llvm.loop !10

28:                                               ; preds = %._crit_edge
  %.053.add = add nuw nsw i64 %.053.idx76, 1
  %.not = icmp eq i64 %.053.add, 6
  br i1 %.not, label %18, label %21

29:                                               ; preds = %23
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %87

.preheader:                                       ; preds = %23, %._crit_edge
  %.056.idx75 = phi i64 [ %.056.add, %._crit_edge ], [ 0, %23 ]
  %.056.ptr = getelementptr inbounds i8, ptr @__const._ZN36test_NanoLZ_insufficient_dst_decompr11runInternalERSoi.search_limits, i64 %.056.idx75
  %31 = load i32, ptr %.056.ptr, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  store i32 0, ptr %9, align 4, !tbaa !13
  store ptr %9, ptr %8, align 8, !tbaa !15
  store i64 1, ptr %12, align 8, !tbaa !19
  %32 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE5beginEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  %33 = call noundef ptr @_ZNKSt16initializer_listI17ECL_NanoLZ_SchemeE3endEv(ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  %.not5973 = icmp eq ptr %32, %33
  br i1 %.not5973, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %50, %.preheader
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  %.056.add = add nuw nsw i64 %.056.idx75, 4
  %.not58 = icmp eq i64 %.056.add, 16
  br i1 %.not58, label %28, label %.preheader

.lr.ph:                                           ; preds = %.preheader, %50
  %.05574 = phi ptr [ %51, %50 ], [ %32, %.preheader ]
  %34 = load i32, ptr %.05574, align 4, !tbaa !13
  %35 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %36 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %37 = invoke i32 @ECL_NanoLZ_Compress_fast1(i32 noundef %34, ptr noundef %35, i32 noundef 2000, ptr noundef %36, i32 noundef 2007, i32 noundef %31, ptr noundef nonnull %7)
          to label %38 unwind label %52

38:                                               ; preds = %.lr.ph
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef 2000)
          to label %39 unwind label %52

39:                                               ; preds = %38
  %40 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %41 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %42 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %34, ptr noundef %40, i32 noundef %37, ptr noundef %41, i32 noundef 2000)
          to label %43 unwind label %54

43:                                               ; preds = %39
  %44 = icmp eq i32 %42, 2000
  %45 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %44)
  %46 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %47 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp = call i32 @bcmp(ptr noundef nonnull dereferenceable(2000) %46, ptr noundef nonnull dereferenceable(2000) %47, i64 2000)
  %48 = icmp eq i32 %bcmp, 0
  %49 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %48)
  br label %56

50:                                               ; preds = %78
  %51 = getelementptr inbounds i8, ptr %.05574, i64 4
  %.not59 = icmp eq ptr %51, %33
  br i1 %.not59, label %._crit_edge, label %.lr.ph

52:                                               ; preds = %38, %.lr.ph
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %85

54:                                               ; preds = %39
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %85

56:                                               ; preds = %43, %78
  %indvars.iv82 = phi i64 [ 1, %43 ], [ %indvars.iv.next83, %78 ]
  %57 = sub nuw nsw i64 2000, %indvars.iv82
  %58 = sub nuw nsw i64 2001, %indvars.iv82
  invoke void @_ZNSt6vectorIhSaIhEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %58)
          to label %59 unwind label %74

59:                                               ; preds = %56
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %57) #6
  store i8 57, ptr %60, align 1, !tbaa !5
  call void @_ZN13ntest_for_ecl10ntest_noopEv()
  %61 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %62 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %63 = trunc nuw nsw i64 %57 to i32
  %64 = invoke i32 @ECL_NanoLZ_Decompress(i32 noundef %34, ptr noundef %61, i32 noundef %37, ptr noundef %62, i32 noundef %63)
          to label %65 unwind label %76

65:                                               ; preds = %59
  %.not66 = icmp eq i32 %64, 0
  br i1 %.not66, label %78, label %66

66:                                               ; preds = %65
  %67 = zext i32 %64 to i64
  %68 = icmp eq i64 %57, %67
  %69 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %68)
  %70 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #6
  %71 = call noundef ptr @_ZNSt6vectorIhSaIhEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %bcmp67 = call i32 @bcmp(ptr %70, ptr %71, i64 %57)
  %72 = icmp eq i32 %bcmp67, 0
  %73 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %72)
  br label %78

74:                                               ; preds = %56
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %85

76:                                               ; preds = %59
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %85

78:                                               ; preds = %66, %65
  %79 = call noundef i64 @_ZNKSt6vectorIhSaIhEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %80 = add i64 %79, -1
  %81 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorIhSaIhEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %80) #6
  %82 = load i8, ptr %81, align 1, !tbaa !5
  %83 = icmp eq i8 %82, 57
  %84 = call noundef zeroext i1 @_ZN13ntest_for_ecl8TestBase7approveEb(ptr noundef nonnull align 8 dereferenceable(32) %0, i1 noundef zeroext %83)
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %exitcond85.not = icmp eq i64 %indvars.iv.next83, 2001
  br i1 %exitcond85.not, label %50, label %56, !llvm.loop !20

85:                                               ; preds = %54, %76, %74, %52
  %.pn.pn.pn = phi { ptr, i32 } [ %53, %52 ], [ %55, %54 ], [ %77, %76 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %87

86:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  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

87:                                               ; preds = %29, %85, %19
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %20, %19 ], [ %.pn.pn.pn, %85 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %88

88:                                               ; preds = %87, %13
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %87 ], [ %14, %13 ]
  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.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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"int", !6, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS17ECL_NanoLZ_Scheme", !6, i64 0}
!15 = !{!16, !17, i64 0}
!16 = !{!"_ZTSSt16initializer_listI17ECL_NanoLZ_SchemeE", !17, i64 0, !18, i64 8}
!17 = !{!"any pointer", !6, i64 0}
!18 = !{!"long", !6, i64 0}
!19 = !{!16, !18, i64 8}
!20 = distinct !{!20, !9}


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