; LLVM IR from stan-dev/math :: lib/tbb_2020.3/src/test/test_malloc_compliance.ll (ZN8CMemTest10NULLReturnEjji)

; 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.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl" }
%"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl" = type { %"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Limit = type { i64 }
%struct.MemStruct = type <{ ptr, i32, [4 x i8] }>
%class.CMemTest = type { i32, i8, ptr }

@__tbb_test_errno = external dso_local global i8, align 1
@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@.str = external hidden unnamed_addr constant [98 x i8], align 1
@Tfree = external dso_local global ptr, align 8
@error_occurred = external dso_local global i8, align 1
@_ZL16perProcessLimits = external hidden global i8, align 1
@.str.55 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL8strError = external hidden constant [7 x i8], align 1
@_ZL5strOk = external hidden constant [5 x i8], align 1
@__FUNCTION__._ZN8CMemTest10NULLReturnEjji = external hidden unnamed_addr constant [11 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8limitMemm(i64 noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) #0 align 2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z8TreallocPvm(ptr noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7Tmallocm(i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7Tcallocmm(i64 noundef, i64 noundef) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7NonZeroPvm(ptr noundef, i64 noundef) #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8myMemsetPvim(ptr noundef, i32 noundef, i64 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8CMemTest10NULLReturnEjji(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.0", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %class.Limit, align 8
  %19 = alloca %class.Limit, align 8
  %20 = alloca ptr, align 8
  %21 = alloca i32, align 4
  %22 = alloca %struct.MemStruct, align 8
  %23 = alloca i32, align 4
  %24 = alloca i8, align 1
  %25 = alloca %struct.MemStruct, align 8
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca %struct.MemStruct, align 8
  %29 = alloca i64, align 8
  %30 = alloca i8, align 1
  %31 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %32 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %33 = load i32, ptr %8, align 4, !tbaa !9
  %34 = sdiv i32 800, %33
  store i32 %34, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = ashr i32 %36, 2
  %38 = add nsw i32 %35, %37
  %39 = mul nsw i32 %38, 1024
  store i32 %39, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @_ZNSt6vectorI9MemStructSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %40 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  store i32 0, ptr %40, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %41 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %42 = load i8, ptr %41, align 4, !tbaa !14, !range !15, !noundef !16
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %52

44:                                               ; preds = %4
  %45 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 741, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %46 unwind label %48

46:                                               ; preds = %44
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %45, ptr noundef @.str.64)
          to label %47 unwind label %48

47:                                               ; preds = %46
  br label %52

48:                                               ; preds = %46, %44
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %15, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %16, align 4
  br label %725

52:                                               ; preds = %47, %4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  invoke void @_ZN5LimitC2Em(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef 800)
          to label %53 unwind label %77

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  invoke void @_ZN5LimitC2Em(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef 0)
          to label %54 unwind label %81

54:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %55 = load i32, ptr %10, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = mul i64 %56, 8
  %58 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %57)
          to label %59 unwind label %85

59:                                               ; preds = %54
  store ptr %58, ptr %20, align 8, !tbaa !5
  %60 = load ptr, ptr %20, align 8, !tbaa !5
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %63

62:                                               ; preds = %59
  br label %65

63:                                               ; preds = %59
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 746, ptr noundef @.str.65, ptr noundef null)
          to label %64 unwind label %85

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64, %62
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = udiv i32 838860800, %66
  %68 = zext i32 %67 to i64
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %68)
          to label %69 unwind label %85

69:                                               ; preds = %65
  %70 = load i8, ptr @_ZL16perProcessLimits, align 1, !tbaa !17, !range !15, !noundef !16
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %89

72:                                               ; preds = %69
  %73 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !18
  %75 = invoke noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13) %74, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %76 unwind label %85

76:                                               ; preds = %72
  br label %93

77:                                               ; preds = %52
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %15, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %16, align 4
  br label %724

81:                                               ; preds = %53
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %15, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %16, align 4
  br label %723

85:                                               ; preds = %719, %714, %676, %674, %668, %666, %660, %658, %512, %510, %492, %490, %484, %482, %476, %474, %360, %358, %340, %338, %332, %330, %324, %322, %205, %203, %197, %195, %189, %151, %147, %119, %98, %89, %72, %65, %63, %54
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %15, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %16, align 4
  br label %722

89:                                               ; preds = %69
  %90 = load i32, ptr %9, align 4, !tbaa !9
  %91 = sext i32 %90 to i64
  invoke void @_Z8limitMemm(i64 noundef %91)
          to label %92 unwind label %85

92:                                               ; preds = %89
  br label %93

93:                                               ; preds = %92, %76
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %123, %93
  %95 = load i32, ptr %14, align 4, !tbaa !9
  %96 = load i32, ptr %10, align 4, !tbaa !9
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %98, label %126

98:                                               ; preds = %94
  %99 = invoke noundef ptr @_Z7Tcallocmm(i64 noundef 1024, i64 noundef 1)
          to label %100 unwind label %85

100:                                              ; preds = %98
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = load i32, ptr %14, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds ptr, ptr %101, i64 %103
  store ptr %99, ptr %104, align 8, !tbaa !5
  %105 = load ptr, ptr %20, align 8, !tbaa !5
  %106 = load i32, ptr %14, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds ptr, ptr %105, i64 %107
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %122, label %111

111:                                              ; preds = %100
  %112 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %113 = trunc i8 %112 to i1
  br i1 %113, label %114, label %118

114:                                              ; preds = %111
  %115 = call ptr @__errno_location() #6
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = icmp eq i32 %116, 12
  br i1 %117, label %118, label %119

118:                                              ; preds = %114, %111
  br label %121

119:                                              ; preds = %114
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 769, ptr noundef @.str.66, ptr noundef null)
          to label %120 unwind label %85

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120, %118
  br label %126

122:                                              ; preds = %100
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %14, align 4, !tbaa !9
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %14, align 4, !tbaa !9
  br label %94, !llvm.loop !19

126:                                              ; preds = %121, %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %140, %126
  %128 = load i32, ptr %21, align 4, !tbaa !9
  %129 = load i32, ptr %14, align 4, !tbaa !9
  %130 = icmp slt i32 %128, %129
  br i1 %130, label %132, label %131

131:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %147

132:                                              ; preds = %127
  %133 = load ptr, ptr @Tfree, align 8, !tbaa !5
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  %135 = load i32, ptr %21, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %134, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  invoke void %133(ptr noundef %138)
          to label %139 unwind label %143

139:                                              ; preds = %132
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %21, align 4, !tbaa !9
  br label %127, !llvm.loop !21

143:                                              ; preds = %132
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %15, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %722

147:                                              ; preds = %131
  %148 = load ptr, ptr @Tfree, align 8, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  invoke void %148(ptr noundef %149)
          to label %150 unwind label %85

150:                                              ; preds = %147
  br label %151

151:                                              ; preds = %178, %150
  %152 = call i32 @rand() #5
  %153 = load i32, ptr %7, align 4, !tbaa !9
  %154 = load i32, ptr %6, align 4, !tbaa !9
  %155 = sub i32 %153, %154
  %156 = urem i32 %152, %155
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = add i32 %156, %157
  store i32 %158, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = zext i32 %159 to i64
  %161 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %160)
          to label %162 unwind label %85

162:                                              ; preds = %151
  store ptr %161, ptr %12, align 8, !tbaa !5
  %163 = load ptr, ptr %12, align 8, !tbaa !5
  %164 = icmp ne ptr %163, null
  br i1 %164, label %165, label %177

165:                                              ; preds = %162
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load i32, ptr %17, align 4, !tbaa !9
  %168 = zext i32 %167 to i64
  call void @_Z8myMemsetPvim(ptr noundef %166, i32 noundef 0, i64 noundef %168)
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #5
  %169 = load ptr, ptr %12, align 8, !tbaa !5
  %170 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %22, ptr noundef %169, i32 noundef %170)
          to label %171 unwind label %173

171:                                              ; preds = %165
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(12) %22)
          to label %172 unwind label %173

172:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %177

173:                                              ; preds = %171, %165
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %15, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #5
  br label %722

177:                                              ; preds = %172, %162
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %151, label %181, !llvm.loop !22

181:                                              ; preds = %178
  %182 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %183 = trunc i8 %182 to i1
  br i1 %183, label %184, label %188

184:                                              ; preds = %181
  %185 = call ptr @__errno_location() #6
  %186 = load i32, ptr %185, align 4, !tbaa !9
  %187 = icmp eq i32 %186, 12
  br i1 %187, label %188, label %189

188:                                              ; preds = %184, %181
  br label %191

189:                                              ; preds = %184
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef @.str, i32 noundef 786, ptr noundef @.str.66, ptr noundef null)
          to label %190 unwind label %85

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190, %188
  %192 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %193 = load i8, ptr %192, align 4, !tbaa !14, !range !15, !noundef !16
  %194 = trunc i8 %193 to i1
  br i1 %194, label %195, label %199

195:                                              ; preds = %191
  %196 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 787, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %197 unwind label %85

197:                                              ; preds = %195
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %196, ptr noundef @.str.67)
          to label %198 unwind label %85

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198, %191
  %200 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %201 = load i8, ptr %200, align 4, !tbaa !14, !range !15, !noundef !16
  %202 = trunc i8 %201 to i1
  br i1 %202, label %203, label %207

203:                                              ; preds = %199
  %204 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 791, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %205 unwind label %85

205:                                              ; preds = %203
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %204, ptr noundef @.str.55)
          to label %206 unwind label %85

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206, %199
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %317, %207
  %209 = load i32, ptr %13, align 4, !tbaa !9
  %210 = icmp eq i32 %209, 0
  br i1 %210, label %211, label %318

211:                                              ; preds = %208
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %313, %211
  %213 = load i32, ptr %23, align 4, !tbaa !9
  %214 = icmp slt i32 %213, 1000
  br i1 %214, label %216, label %215

215:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %317

216:                                              ; preds = %212
  %217 = call i32 @rand() #5
  %218 = load i32, ptr %7, align 4, !tbaa !9
  %219 = load i32, ptr %6, align 4, !tbaa !9
  %220 = sub i32 %218, %219
  %221 = urem i32 %217, %220
  %222 = load i32, ptr %6, align 4, !tbaa !9
  %223 = add i32 %221, %222
  store i32 %223, ptr %17, align 4, !tbaa !9
  %224 = load i32, ptr %23, align 4, !tbaa !9
  %225 = add nsw i32 12, %224
  %226 = add nsw i32 %225, 1
  %227 = call ptr @__errno_location() #6
  store i32 %226, ptr %227, align 4, !tbaa !9
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = zext i32 %228 to i64
  %230 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %229)
          to label %231 unwind label %255

231:                                              ; preds = %216
  store ptr %230, ptr %12, align 8, !tbaa !5
  %232 = load ptr, ptr %12, align 8, !tbaa !5
  %233 = icmp eq ptr %232, null
  br i1 %233, label %234, label %261

234:                                              ; preds = %231
  %235 = load i32, ptr %13, align 4, !tbaa !9
  %236 = add nsw i32 %235, 1
  store i32 %236, ptr %13, align 4, !tbaa !9
  %237 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %238 = trunc i8 %237 to i1
  br i1 %238, label %239, label %260

239:                                              ; preds = %234
  %240 = call ptr @__errno_location() #6
  %241 = load i32, ptr %240, align 4, !tbaa !9
  %242 = icmp ne i32 %241, 12
  br i1 %242, label %243, label %260

243:                                              ; preds = %239
  %244 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !11
  %246 = add i32 %245, 1
  store i32 %246, ptr %244, align 8, !tbaa !11
  %247 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %248 unwind label %255

248:                                              ; preds = %243
  br i1 %247, label %249, label %259

249:                                              ; preds = %248
  %250 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 804, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %251 unwind label %255

251:                                              ; preds = %249
  %252 = call ptr @__errno_location() #6
  %253 = load i32, ptr %252, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %250, ptr noundef @.str.68, i32 noundef %253)
          to label %254 unwind label %255

254:                                              ; preds = %251
  br label %259

255:                                              ; preds = %251, %249, %243, %216
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %15, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %16, align 4
  br label %316

259:                                              ; preds = %254, %248
  br label %260

260:                                              ; preds = %259, %239, %234
  br label %312

261:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  store i8 0, ptr %24, align 1, !tbaa !17
  %262 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %263 = trunc i8 %262 to i1
  br i1 %263, label %264, label %269

264:                                              ; preds = %261
  %265 = call ptr @__errno_location() #6
  %266 = load i32, ptr %265, align 4, !tbaa !9
  %267 = icmp eq i32 %266, 12
  br i1 %267, label %268, label %269

268:                                              ; preds = %264
  store i8 1, ptr %24, align 1, !tbaa !17
  br label %269

269:                                              ; preds = %268, %264, %261
  %270 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %271 = trunc i8 %270 to i1
  br i1 %271, label %272, label %299

272:                                              ; preds = %269
  %273 = call ptr @__errno_location() #6
  %274 = load i32, ptr %273, align 4, !tbaa !9
  %275 = load i32, ptr %23, align 4, !tbaa !9
  %276 = add nsw i32 12, %275
  %277 = add nsw i32 %276, 1
  %278 = icmp ne i32 %274, %277
  br i1 %278, label %279, label %299

279:                                              ; preds = %272
  %280 = load i8, ptr %24, align 1, !tbaa !17, !range !15, !noundef !16
  %281 = trunc i8 %280 to i1
  br i1 %281, label %299, label %282

282:                                              ; preds = %279
  %283 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %284 = load i32, ptr %283, align 8, !tbaa !11
  %285 = add i32 %284, 1
  store i32 %285, ptr %283, align 8, !tbaa !11
  %286 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %287 unwind label %294

287:                                              ; preds = %282
  br i1 %286, label %288, label %298

288:                                              ; preds = %287
  %289 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 817, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %290 unwind label %294

290:                                              ; preds = %288
  %291 = call ptr @__errno_location() #6
  %292 = load i32, ptr %291, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %289, ptr noundef @.str.69, i32 noundef %292)
          to label %293 unwind label %294

293:                                              ; preds = %290
  br label %298

294:                                              ; preds = %290, %288, %282
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %15, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %16, align 4
  br label %311

298:                                              ; preds = %293, %287
  br label %299

299:                                              ; preds = %298, %279, %272, %269
  %300 = load ptr, ptr %12, align 8, !tbaa !5
  %301 = load i32, ptr %17, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  call void @_Z8myMemsetPvim(ptr noundef %300, i32 noundef 0, i64 noundef %302)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #5
  %303 = load ptr, ptr %12, align 8, !tbaa !5
  %304 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %25, ptr noundef %303, i32 noundef %304)
          to label %305 unwind label %307

305:                                              ; preds = %299
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(12) %25)
          to label %306 unwind label %307

306:                                              ; preds = %305
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %312

307:                                              ; preds = %305, %299
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %15, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #5
  br label %311

311:                                              ; preds = %307, %294
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %316

312:                                              ; preds = %306, %260
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %23, align 4, !tbaa !9
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %23, align 4, !tbaa !9
  br label %212, !llvm.loop !23

316:                                              ; preds = %311, %255
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %722

317:                                              ; preds = %215
  br label %208, !llvm.loop !24

318:                                              ; preds = %208
  %319 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %320 = load i8, ptr %319, align 4, !tbaa !14, !range !15, !noundef !16
  %321 = trunc i8 %320 to i1
  br i1 %321, label %322, label %326

322:                                              ; preds = %318
  %323 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 823, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %324 unwind label %85

324:                                              ; preds = %322
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %323, ptr noundef @.str.70)
          to label %325 unwind label %85

325:                                              ; preds = %324
  br label %326

326:                                              ; preds = %325, %318
  %327 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %328 = load i32, ptr %327, align 8, !tbaa !11
  %329 = icmp ne i32 %328, 0
  br i1 %329, label %330, label %334

330:                                              ; preds = %326
  %331 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 824, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %332 unwind label %85

332:                                              ; preds = %330
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %331, ptr noundef @.str.63, ptr noundef @_ZL8strError)
          to label %333 unwind label %85

333:                                              ; preds = %332
  br label %343

334:                                              ; preds = %326
  %335 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %336 = load i8, ptr %335, align 4, !tbaa !14, !range !15, !noundef !16
  %337 = trunc i8 %336 to i1
  br i1 %337, label %338, label %342

338:                                              ; preds = %334
  %339 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 825, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %340 unwind label %85

340:                                              ; preds = %338
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %339, ptr noundef @.str.63, ptr noundef @_ZL5strOk)
          to label %341 unwind label %85

341:                                              ; preds = %340
  br label %342

342:                                              ; preds = %341, %334
  br label %343

343:                                              ; preds = %342, %333
  %344 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %345 = load i32, ptr %344, align 8, !tbaa !11
  %346 = icmp ugt i32 %345, 0
  %347 = zext i1 %346 to i32
  %348 = load i8, ptr @error_occurred, align 1, !tbaa !17, !range !15, !noundef !16
  %349 = trunc i8 %348 to i1
  %350 = zext i1 %349 to i32
  %351 = or i32 %350, %347
  %352 = icmp ne i32 %351, 0
  %353 = zext i1 %352 to i8
  store i8 %353, ptr @error_occurred, align 1, !tbaa !17
  %354 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  store i32 0, ptr %354, align 8, !tbaa !11
  %355 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %356 = load i8, ptr %355, align 4, !tbaa !14, !range !15, !noundef !16
  %357 = trunc i8 %356 to i1
  br i1 %357, label %358, label %362

358:                                              ; preds = %343
  %359 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 830, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %360 unwind label %85

360:                                              ; preds = %358
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %359, ptr noundef @.str.60)
          to label %361 unwind label %85

361:                                              ; preds = %360
  br label %362

362:                                              ; preds = %361, %343
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %363

363:                                              ; preds = %469, %362
  %364 = load i32, ptr %13, align 4, !tbaa !9
  %365 = icmp eq i32 %364, 0
  br i1 %365, label %366, label %470

366:                                              ; preds = %363
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  br label %367

367:                                              ; preds = %465, %366
  %368 = load i32, ptr %26, align 4, !tbaa !9
  %369 = icmp slt i32 %368, 1000
  br i1 %369, label %371, label %370

370:                                              ; preds = %367
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %469

371:                                              ; preds = %367
  %372 = call i32 @rand() #5
  %373 = load i32, ptr %7, align 4, !tbaa !9
  %374 = load i32, ptr %6, align 4, !tbaa !9
  %375 = sub i32 %373, %374
  %376 = urem i32 %372, %375
  %377 = load i32, ptr %6, align 4, !tbaa !9
  %378 = add i32 %376, %377
  store i32 %378, ptr %17, align 4, !tbaa !9
  %379 = load i32, ptr %26, align 4, !tbaa !9
  %380 = add nsw i32 12, %379
  %381 = add nsw i32 %380, 1
  %382 = call ptr @__errno_location() #6
  store i32 %381, ptr %382, align 4, !tbaa !9
  %383 = load i32, ptr %17, align 4, !tbaa !9
  %384 = zext i32 %383 to i64
  %385 = invoke noundef ptr @_Z7Tcallocmm(i64 noundef 2, i64 noundef %384)
          to label %386 unwind label %410

386:                                              ; preds = %371
  store ptr %385, ptr %12, align 8, !tbaa !5
  %387 = load ptr, ptr %12, align 8, !tbaa !5
  %388 = icmp eq ptr %387, null
  br i1 %388, label %389, label %416

389:                                              ; preds = %386
  %390 = load i32, ptr %13, align 4, !tbaa !9
  %391 = add nsw i32 %390, 1
  store i32 %391, ptr %13, align 4, !tbaa !9
  %392 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %393 = trunc i8 %392 to i1
  br i1 %393, label %394, label %415

394:                                              ; preds = %389
  %395 = call ptr @__errno_location() #6
  %396 = load i32, ptr %395, align 4, !tbaa !9
  %397 = icmp ne i32 %396, 12
  br i1 %397, label %398, label %415

398:                                              ; preds = %394
  %399 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %400 = load i32, ptr %399, align 8, !tbaa !11
  %401 = add i32 %400, 1
  store i32 %401, ptr %399, align 8, !tbaa !11
  %402 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %403 unwind label %410

403:                                              ; preds = %398
  br i1 %402, label %404, label %414

404:                                              ; preds = %403
  %405 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 843, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %406 unwind label %410

406:                                              ; preds = %404
  %407 = call ptr @__errno_location() #6
  %408 = load i32, ptr %407, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %405, ptr noundef @.str.71, i32 noundef %408)
          to label %409 unwind label %410

409:                                              ; preds = %406
  br label %414

410:                                              ; preds = %406, %404, %398, %371
  %411 = landingpad { ptr, i32 }
          cleanup
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %15, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %16, align 4
  br label %468

414:                                              ; preds = %409, %403
  br label %415

415:                                              ; preds = %414, %394, %389
  br label %464

416:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #5
  store i8 0, ptr %27, align 1, !tbaa !17
  %417 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %418 = trunc i8 %417 to i1
  br i1 %418, label %419, label %424

419:                                              ; preds = %416
  %420 = call ptr @__errno_location() #6
  %421 = load i32, ptr %420, align 4, !tbaa !9
  %422 = icmp eq i32 %421, 12
  br i1 %422, label %423, label %424

423:                                              ; preds = %419
  store i8 1, ptr %27, align 1, !tbaa !17
  br label %424

424:                                              ; preds = %423, %419, %416
  %425 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %426 = trunc i8 %425 to i1
  br i1 %426, label %427, label %454

427:                                              ; preds = %424
  %428 = call ptr @__errno_location() #6
  %429 = load i32, ptr %428, align 4, !tbaa !9
  %430 = load i32, ptr %26, align 4, !tbaa !9
  %431 = add nsw i32 12, %430
  %432 = add nsw i32 %431, 1
  %433 = icmp ne i32 %429, %432
  br i1 %433, label %434, label %454

434:                                              ; preds = %427
  %435 = load i8, ptr %27, align 1, !tbaa !17, !range !15, !noundef !16
  %436 = trunc i8 %435 to i1
  br i1 %436, label %454, label %437

437:                                              ; preds = %434
  %438 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %439 = load i32, ptr %438, align 8, !tbaa !11
  %440 = add i32 %439, 1
  store i32 %440, ptr %438, align 8, !tbaa !11
  %441 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %442 unwind label %449

442:                                              ; preds = %437
  br i1 %441, label %443, label %453

443:                                              ; preds = %442
  %444 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 856, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %445 unwind label %449

445:                                              ; preds = %443
  %446 = call ptr @__errno_location() #6
  %447 = load i32, ptr %446, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %444, ptr noundef @.str.69, i32 noundef %447)
          to label %448 unwind label %449

448:                                              ; preds = %445
  br label %453

449:                                              ; preds = %445, %443, %437
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %15, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %16, align 4
  br label %463

453:                                              ; preds = %448, %442
  br label %454

454:                                              ; preds = %453, %434, %427, %424
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #5
  %455 = load ptr, ptr %12, align 8, !tbaa !5
  %456 = load i32, ptr %17, align 4, !tbaa !9
  invoke void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %28, ptr noundef %455, i32 noundef %456)
          to label %457 unwind label %459

457:                                              ; preds = %454
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(12) %28)
          to label %458 unwind label %459

458:                                              ; preds = %457
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  br label %464

459:                                              ; preds = %457, %454
  %460 = landingpad { ptr, i32 }
          cleanup
  %461 = extractvalue { ptr, i32 } %460, 0
  store ptr %461, ptr %15, align 8
  %462 = extractvalue { ptr, i32 } %460, 1
  store i32 %462, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #5
  br label %463

463:                                              ; preds = %459, %449
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  br label %468

464:                                              ; preds = %458, %415
  br label %465

465:                                              ; preds = %464
  %466 = load i32, ptr %26, align 4, !tbaa !9
  %467 = add nsw i32 %466, 1
  store i32 %467, ptr %26, align 4, !tbaa !9
  br label %367, !llvm.loop !25

468:                                              ; preds = %463, %410
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  br label %722

469:                                              ; preds = %370
  br label %363, !llvm.loop !26

470:                                              ; preds = %363
  %471 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %472 = load i8, ptr %471, align 4, !tbaa !14, !range !15, !noundef !16
  %473 = trunc i8 %472 to i1
  br i1 %473, label %474, label %478

474:                                              ; preds = %470
  %475 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 861, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %476 unwind label %85

476:                                              ; preds = %474
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %475, ptr noundef @.str.72)
          to label %477 unwind label %85

477:                                              ; preds = %476
  br label %478

478:                                              ; preds = %477, %470
  %479 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %480 = load i32, ptr %479, align 8, !tbaa !11
  %481 = icmp ne i32 %480, 0
  br i1 %481, label %482, label %486

482:                                              ; preds = %478
  %483 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 862, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %484 unwind label %85

484:                                              ; preds = %482
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %483, ptr noundef @.str.63, ptr noundef @_ZL8strError)
          to label %485 unwind label %85

485:                                              ; preds = %484
  br label %495

486:                                              ; preds = %478
  %487 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %488 = load i8, ptr %487, align 4, !tbaa !14, !range !15, !noundef !16
  %489 = trunc i8 %488 to i1
  br i1 %489, label %490, label %494

490:                                              ; preds = %486
  %491 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 863, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %492 unwind label %85

492:                                              ; preds = %490
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %491, ptr noundef @.str.63, ptr noundef @_ZL5strOk)
          to label %493 unwind label %85

493:                                              ; preds = %492
  br label %494

494:                                              ; preds = %493, %486
  br label %495

495:                                              ; preds = %494, %485
  %496 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %497 = load i32, ptr %496, align 8, !tbaa !11
  %498 = icmp ugt i32 %497, 0
  %499 = zext i1 %498 to i32
  %500 = load i8, ptr @error_occurred, align 1, !tbaa !17, !range !15, !noundef !16
  %501 = trunc i8 %500 to i1
  %502 = zext i1 %501 to i32
  %503 = or i32 %502, %499
  %504 = icmp ne i32 %503, 0
  %505 = zext i1 %504 to i8
  store i8 %505, ptr @error_occurred, align 1, !tbaa !17
  %506 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  store i32 0, ptr %506, align 8, !tbaa !11
  %507 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %508 = load i8, ptr %507, align 4, !tbaa !14, !range !15, !noundef !16
  %509 = trunc i8 %508 to i1
  br i1 %509, label %510, label %514

510:                                              ; preds = %495
  %511 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 866, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %512 unwind label %85

512:                                              ; preds = %510
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %511, ptr noundef @.str.59)
          to label %513 unwind label %85

513:                                              ; preds = %512
  br label %514

514:                                              ; preds = %513, %495
  store i32 0, ptr %13, align 4, !tbaa !9
  %515 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %516 = icmp ugt i64 %515, 0
  br i1 %516, label %517, label %654

517:                                              ; preds = %514
  br label %518

518:                                              ; preds = %652, %517
  %519 = load i32, ptr %13, align 4, !tbaa !9
  %520 = icmp eq i32 %519, 0
  br i1 %520, label %521, label %653

521:                                              ; preds = %518
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #5
  store i64 0, ptr %29, align 8, !tbaa !27
  br label %522

522:                                              ; preds = %648, %521
  %523 = load i64, ptr %29, align 8, !tbaa !27
  %524 = icmp ult i64 %523, 1000
  br i1 %524, label %525, label %529

525:                                              ; preds = %522
  %526 = load i64, ptr %29, align 8, !tbaa !27
  %527 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %528 = icmp ult i64 %526, %527
  br label %529

529:                                              ; preds = %525, %522
  %530 = phi i1 [ false, %522 ], [ %528, %525 ]
  br i1 %530, label %532, label %531

531:                                              ; preds = %529
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %652

532:                                              ; preds = %529
  %533 = call ptr @__errno_location() #6
  store i32 0, ptr %533, align 4, !tbaa !9
  %534 = load i64, ptr %29, align 8, !tbaa !27
  %535 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %534) #5
  %536 = getelementptr inbounds %struct.MemStruct, ptr %535, i32 0, i32 0
  %537 = load ptr, ptr %536, align 8, !tbaa !29
  %538 = load i64, ptr %29, align 8, !tbaa !27
  %539 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %538) #5
  %540 = getelementptr inbounds %struct.MemStruct, ptr %539, i32 0, i32 1
  %541 = load i32, ptr %540, align 8, !tbaa !31
  %542 = mul i32 %541, 2
  %543 = zext i32 %542 to i64
  %544 = invoke noundef ptr @_Z8TreallocPvm(ptr noundef %537, i64 noundef %543)
          to label %545 unwind label %553

545:                                              ; preds = %532
  store ptr %544, ptr %12, align 8, !tbaa !5
  %546 = load ptr, ptr %12, align 8, !tbaa !5
  %547 = icmp ne ptr %546, null
  br i1 %547, label %548, label %601

548:                                              ; preds = %545
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #5
  store i8 0, ptr %30, align 1, !tbaa !17
  %549 = call ptr @__errno_location() #6
  %550 = load i32, ptr %549, align 4, !tbaa !9
  %551 = icmp eq i32 %550, 12
  br i1 %551, label %552, label %557

552:                                              ; preds = %548
  store i8 1, ptr %30, align 1, !tbaa !17
  br label %557

553:                                              ; preds = %643, %641, %635, %618, %616, %610, %532
  %554 = landingpad { ptr, i32 }
          cleanup
  %555 = extractvalue { ptr, i32 } %554, 0
  store ptr %555, ptr %15, align 8
  %556 = extractvalue { ptr, i32 } %554, 1
  store i32 %556, ptr %16, align 4
  br label %651

557:                                              ; preds = %552, %548
  %558 = call ptr @__errno_location() #6
  %559 = load i32, ptr %558, align 4, !tbaa !9
  %560 = icmp ne i32 %559, 0
  br i1 %560, label %561, label %579

561:                                              ; preds = %557
  %562 = load i8, ptr %30, align 1, !tbaa !17, !range !15, !noundef !16
  %563 = trunc i8 %562 to i1
  br i1 %563, label %579, label %564

564:                                              ; preds = %561
  %565 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %566 = load i32, ptr %565, align 8, !tbaa !11
  %567 = add i32 %566, 1
  store i32 %567, ptr %565, align 8, !tbaa !11
  %568 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %569 unwind label %574

569:                                              ; preds = %564
  br i1 %568, label %570, label %578

570:                                              ; preds = %569
  %571 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 882, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %572 unwind label %574

572:                                              ; preds = %570
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %571, ptr noundef @.str.73)
          to label %573 unwind label %574

573:                                              ; preds = %572
  br label %578

574:                                              ; preds = %572, %570, %564
  %575 = landingpad { ptr, i32 }
          cleanup
  %576 = extractvalue { ptr, i32 } %575, 0
  store ptr %576, ptr %15, align 8
  %577 = extractvalue { ptr, i32 } %575, 1
  store i32 %577, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  br label %651

578:                                              ; preds = %573, %569
  br label %579

579:                                              ; preds = %578, %561, %557
  %580 = load ptr, ptr %12, align 8, !tbaa !5
  %581 = load i64, ptr %29, align 8, !tbaa !27
  %582 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %581) #5
  %583 = getelementptr inbounds %struct.MemStruct, ptr %582, i32 0, i32 1
  %584 = load i32, ptr %583, align 8, !tbaa !31
  %585 = zext i32 %584 to i64
  %586 = getelementptr inbounds i8, ptr %580, i64 %585
  %587 = load i64, ptr %29, align 8, !tbaa !27
  %588 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %587) #5
  %589 = getelementptr inbounds %struct.MemStruct, ptr %588, i32 0, i32 1
  %590 = load i32, ptr %589, align 8, !tbaa !31
  %591 = zext i32 %590 to i64
  call void @_Z8myMemsetPvim(ptr noundef %586, i32 noundef 0, i64 noundef %591)
  %592 = load ptr, ptr %12, align 8, !tbaa !5
  %593 = load i64, ptr %29, align 8, !tbaa !27
  %594 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %593) #5
  %595 = getelementptr inbounds %struct.MemStruct, ptr %594, i32 0, i32 0
  store ptr %592, ptr %595, align 8, !tbaa !29
  %596 = load i64, ptr %29, align 8, !tbaa !27
  %597 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %596) #5
  %598 = getelementptr inbounds %struct.MemStruct, ptr %597, i32 0, i32 1
  %599 = load i32, ptr %598, align 8, !tbaa !31
  %600 = mul i32 %599, 2
  store i32 %600, ptr %598, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  br label %647

601:                                              ; preds = %545
  %602 = load i32, ptr %13, align 4, !tbaa !9
  %603 = add nsw i32 %602, 1
  store i32 %603, ptr %13, align 4, !tbaa !9
  %604 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !17, !range !15, !noundef !16
  %605 = trunc i8 %604 to i1
  br i1 %605, label %606, label %623

606:                                              ; preds = %601
  %607 = call ptr @__errno_location() #6
  %608 = load i32, ptr %607, align 4, !tbaa !9
  %609 = icmp ne i32 %608, 12
  br i1 %609, label %610, label %623

610:                                              ; preds = %606
  %611 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %612 = load i32, ptr %611, align 8, !tbaa !11
  %613 = add i32 %612, 1
  store i32 %613, ptr %611, align 8, !tbaa !11
  %614 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %615 unwind label %553

615:                                              ; preds = %610
  br i1 %614, label %616, label %622

616:                                              ; preds = %615
  %617 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 893, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %618 unwind label %553

618:                                              ; preds = %616
  %619 = call ptr @__errno_location() #6
  %620 = load i32, ptr %619, align 4, !tbaa !9
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %617, ptr noundef @.str.71, i32 noundef %620)
          to label %621 unwind label %553

621:                                              ; preds = %618
  br label %622

622:                                              ; preds = %621, %615
  br label %623

623:                                              ; preds = %622, %606, %601
  %624 = load i64, ptr %29, align 8, !tbaa !27
  %625 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %624) #5
  %626 = getelementptr inbounds %struct.MemStruct, ptr %625, i32 0, i32 0
  %627 = load ptr, ptr %626, align 8, !tbaa !29
  %628 = load i64, ptr %29, align 8, !tbaa !27
  %629 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %628) #5
  %630 = getelementptr inbounds %struct.MemStruct, ptr %629, i32 0, i32 1
  %631 = load i32, ptr %630, align 8, !tbaa !31
  %632 = zext i32 %631 to i64
  %633 = call noundef i64 @_Z7NonZeroPvm(ptr noundef %627, i64 noundef %632)
  %634 = icmp ne i64 %633, 0
  br i1 %634, label %635, label %646

635:                                              ; preds = %623
  %636 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %637 = load i32, ptr %636, align 8, !tbaa !11
  %638 = add i32 %637, 1
  store i32 %638, ptr %636, align 8, !tbaa !11
  %639 = invoke noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %32)
          to label %640 unwind label %553

640:                                              ; preds = %635
  br i1 %639, label %641, label %645

641:                                              ; preds = %640
  %642 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 898, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %643 unwind label %553

643:                                              ; preds = %641
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %642, ptr noundef @.str.74)
          to label %644 unwind label %553

644:                                              ; preds = %643
  br label %645

645:                                              ; preds = %644, %640
  br label %646

646:                                              ; preds = %645, %623
  br label %647

647:                                              ; preds = %646, %579
  br label %648

648:                                              ; preds = %647
  %649 = load i64, ptr %29, align 8, !tbaa !27
  %650 = add i64 %649, 1
  store i64 %650, ptr %29, align 8, !tbaa !27
  br label %522, !llvm.loop !32

651:                                              ; preds = %574, %553
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #5
  br label %722

652:                                              ; preds = %531
  br label %518, !llvm.loop !33

653:                                              ; preds = %518
  br label %654

654:                                              ; preds = %653, %514
  %655 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %656 = load i8, ptr %655, align 4, !tbaa !14, !range !15, !noundef !16
  %657 = trunc i8 %656 to i1
  br i1 %657, label %658, label %662

658:                                              ; preds = %654
  %659 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 902, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %660 unwind label %85

660:                                              ; preds = %658
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %659, ptr noundef @.str.75)
          to label %661 unwind label %85

661:                                              ; preds = %660
  br label %662

662:                                              ; preds = %661, %654
  %663 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %664 = load i32, ptr %663, align 8, !tbaa !11
  %665 = icmp ne i32 %664, 0
  br i1 %665, label %666, label %670

666:                                              ; preds = %662
  %667 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 903, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %668 unwind label %85

668:                                              ; preds = %666
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %667, ptr noundef @.str.63, ptr noundef @_ZL8strError)
          to label %669 unwind label %85

669:                                              ; preds = %668
  br label %679

670:                                              ; preds = %662
  %671 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 1
  %672 = load i8, ptr %671, align 4, !tbaa !14, !range !15, !noundef !16
  %673 = trunc i8 %672 to i1
  br i1 %673, label %674, label %678

674:                                              ; preds = %670
  %675 = invoke noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef @.str, i64 noundef 904, ptr noundef @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
          to label %676 unwind label %85

676:                                              ; preds = %674
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %675, ptr noundef @.str.63, ptr noundef @_ZL5strOk)
          to label %677 unwind label %85

677:                                              ; preds = %676
  br label %678

678:                                              ; preds = %677, %670
  br label %679

679:                                              ; preds = %678, %669
  %680 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 0
  %681 = load i32, ptr %680, align 8, !tbaa !11
  %682 = icmp ugt i32 %681, 0
  %683 = zext i1 %682 to i32
  %684 = load i8, ptr @error_occurred, align 1, !tbaa !17, !range !15, !noundef !16
  %685 = trunc i8 %684 to i1
  %686 = zext i1 %685 to i32
  %687 = or i32 %686, %683
  %688 = icmp ne i32 %687, 0
  %689 = zext i1 %688 to i8
  store i8 %689, ptr @error_occurred, align 1, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #5
  store i32 0, ptr %31, align 4, !tbaa !9
  br label %690

690:                                              ; preds = %704, %679
  %691 = load i32, ptr %31, align 4, !tbaa !9
  %692 = zext i32 %691 to i64
  %693 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  %694 = icmp ult i64 %692, %693
  br i1 %694, label %696, label %695

695:                                              ; preds = %690
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %711

696:                                              ; preds = %690
  %697 = load ptr, ptr @Tfree, align 8, !tbaa !5
  %698 = load i32, ptr %31, align 4, !tbaa !9
  %699 = zext i32 %698 to i64
  %700 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %699) #5
  %701 = getelementptr inbounds %struct.MemStruct, ptr %700, i32 0, i32 0
  %702 = load ptr, ptr %701, align 8, !tbaa !29
  invoke void %697(ptr noundef %702)
          to label %703 unwind label %707

703:                                              ; preds = %696
  br label %704

704:                                              ; preds = %703
  %705 = load i32, ptr %31, align 4, !tbaa !9
  %706 = add i32 %705, 1
  store i32 %706, ptr %31, align 4, !tbaa !9
  br label %690, !llvm.loop !34

707:                                              ; preds = %696
  %708 = landingpad { ptr, i32 }
          cleanup
  %709 = extractvalue { ptr, i32 } %708, 0
  store ptr %709, ptr %15, align 8
  %710 = extractvalue { ptr, i32 } %708, 1
  store i32 %710, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  br label %722

711:                                              ; preds = %695
  %712 = load i8, ptr @_ZL16perProcessLimits, align 1, !tbaa !17, !range !15, !noundef !16
  %713 = trunc i8 %712 to i1
  br i1 %713, label %714, label %719

714:                                              ; preds = %711
  %715 = getelementptr inbounds %class.CMemTest, ptr %32, i32 0, i32 2
  %716 = load ptr, ptr %715, align 8, !tbaa !18
  %717 = invoke noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13) %716, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %718 unwind label %85

718:                                              ; preds = %714
  br label %721

719:                                              ; preds = %711
  invoke void @_Z8limitMemm(i64 noundef 0)
          to label %720 unwind label %85

720:                                              ; preds = %719
  br label %721

721:                                              ; preds = %720, %718
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt6vectorI9MemStructSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret void

722:                                              ; preds = %707, %651, %468, %316, %173, %143, %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %723

723:                                              ; preds = %722, %81
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %724

724:                                              ; preds = %723, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %725

725:                                              ; preds = %724, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @_ZNSt6vectorI9MemStructSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %726

726:                                              ; preds = %725
  %727 = load ptr, ptr %15, align 8
  %728 = load i32, ptr %16, align 4
  %729 = insertvalue { ptr, i32 } poison, ptr %727, 0
  %730 = insertvalue { ptr, i32 } %729, i32 %728, 1
  resume { ptr, i32 } %730
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(none) }

!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 = !{!12, !10, i64 0}
!12 = !{!"_ZTS8CMemTest", !10, i64 0, !13, i64 4, !6, i64 8}
!13 = !{!"bool", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !6, i64 8}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!28, !28, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!30, !6, i64 0}
!30 = !{!"_ZTS9MemStruct", !6, i64 0, !10, i64 8}
!31 = !{!30, !10, i64 8}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}
!34 = distinct !{!34, !20}


; 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.Harness::internal::Tracer" = type <{ i32, [4 x i8], ptr, ptr, i64, [8 x i8] }>
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl" }
%"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl" = type { %"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MemStruct, std::allocator<MemStruct>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Limit = type { i64 }
%struct.MemStruct = type <{ ptr, i32, [4 x i8] }>

@__tbb_test_errno = external dso_local local_unnamed_addr global i8, align 1
@_ZN7Harness8internalL6tracerE = external hidden global %"class.Harness::internal::Tracer", align 8
@.str = external hidden unnamed_addr constant [98 x i8], align 1
@Tfree = external dso_local local_unnamed_addr global ptr, align 8
@error_occurred = external dso_local local_unnamed_addr global i8, align 1
@_ZL16perProcessLimits = external hidden local_unnamed_addr global i8, align 1
@.str.55 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [4 x i8], align 1
@_ZL8strError = external hidden constant [7 x i8], align 1
@_ZL5strOk = external hidden constant [5 x i8], align 1
@__FUNCTION__._ZN8CMemTest10NULLReturnEjji = external hidden unnamed_addr constant [11 x i8], align 1
@.str.64 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.65 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.66 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [62 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8limitMemm(i64 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33), i32 noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33), ptr noundef, ...) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z11ReportErrorPKciS0_S0_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z8TreallocPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7Tmallocm(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_Z7Tcallocmm(i64 noundef, i64 noundef) local_unnamed_addr #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_Z7NonZeroPvm(ptr noundef, i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8myMemsetPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8CMemTest10NULLReturnEjji(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.0", align 8
  %6 = alloca %class.Limit, align 8
  %7 = alloca %class.Limit, align 8
  %8 = alloca %struct.MemStruct, align 8
  %9 = alloca %struct.MemStruct, align 8
  %10 = alloca %struct.MemStruct, align 8
  %11 = sdiv i32 800, %3
  %12 = ashr i32 %11, 2
  %13 = add nsw i32 %12, %11
  %14 = shl nsw i32 %13, 10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt6vectorI9MemStructSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  store i32 0, ptr %0, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 4
  %16 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %18, label %22

18:                                               ; preds = %4
  %19 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 741, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %19, ptr noundef nonnull @.str.64)
          to label %22 unwind label %20

20:                                               ; preds = %18
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %333

22:                                               ; preds = %18, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN5LimitC2Em(ptr noundef nonnull align 8 dereferenceable(8) %6, i64 noundef 800)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @_ZN5LimitC2Em(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef 0)
  %23 = sext i32 %14 to i64
  %24 = shl nsw i64 %23, 3
  %25 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %24)
          to label %26 unwind label %.loopexit.split-lp.loopexit.split-lp

26:                                               ; preds = %22
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %27, label %28

27:                                               ; preds = %26
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 746, ptr noundef nonnull @.str.65, ptr noundef null)
          to label %28 unwind label %.loopexit.split-lp.loopexit.split-lp

28:                                               ; preds = %27, %26
  %29 = udiv i32 838860800, %1
  %30 = zext nneg i32 %29 to i64
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %30)
          to label %31 unwind label %.loopexit.split-lp.loopexit.split-lp

31:                                               ; preds = %28
  %32 = load i8, ptr @_ZL16perProcessLimits, align 1, !tbaa !15, !range !13, !noundef !14
  %33 = trunc nuw i8 %32 to i1
  br i1 %33, label %34, label %38

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %0, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !16
  %37 = invoke noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13) %36, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %40 unwind label %.loopexit.split-lp.loopexit.split-lp

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

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

.loopexit.split-lp.loopexit.split-lp:             ; preds = %.invoke208, %.invoke207, %.invoke, %331, %327, %298, %224, %207, %157, %140, %89, %84, %80, %._crit_edge, %53, %38, %34, %28, %27, %22
  %lpad.loopexit.split-lp154 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

38:                                               ; preds = %31
  %39 = sext i32 %11 to i64
  invoke void @_Z8limitMemm(i64 noundef %39)
          to label %40 unwind label %.loopexit.split-lp.loopexit.split-lp

40:                                               ; preds = %38, %34
  %41 = icmp sgt i32 %13, 0
  br i1 %41, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %40
  %smax = call i32 @llvm.smax.i32(i32 %14, i32 1)
  %wide.trip.count = zext nneg i32 %smax to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %54
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %54 ]
  %42 = invoke noundef ptr @_Z7Tcallocmm(i64 noundef 1024, i64 noundef 1)
          to label %43 unwind label %.loopexit.split-lp.loopexit

43:                                               ; preds = %.lr.ph
  %44 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv
  store ptr %42, ptr %44, align 8, !tbaa !17
  %.not111 = icmp eq ptr %42, null
  br i1 %.not111, label %45, label %54

45:                                               ; preds = %43
  %46 = trunc nuw nsw i64 %indvars.iv to i32
  %47 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %49, label %.loopexit152

49:                                               ; preds = %45
  %50 = tail call ptr @__errno_location() #7
  %51 = load i32, ptr %50, align 4, !tbaa !18
  %52 = icmp eq i32 %51, 12
  br i1 %52, label %.loopexit152, label %53

53:                                               ; preds = %49
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 769, ptr noundef nonnull @.str.66, ptr noundef null)
          to label %.loopexit152 unwind label %.loopexit.split-lp.loopexit.split-lp

54:                                               ; preds = %43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.lr.ph171.preheader, label %.lr.ph, !llvm.loop !19

.loopexit152:                                     ; preds = %49, %45, %53
  %.not182 = icmp eq i64 %indvars.iv, 0
  br i1 %.not182, label %._crit_edge, label %.lr.ph171.preheader

.lr.ph171.preheader:                              ; preds = %54, %.loopexit152
  %.098168201 = phi i32 [ %46, %.loopexit152 ], [ %smax, %54 ]
  %wide.trip.count190 = zext i32 %.098168201 to i64
  br label %.lr.ph171

._crit_edge:                                      ; preds = %60, %40, %.loopexit152
  %55 = load ptr, ptr @Tfree, align 8, !tbaa !17
  invoke void %55(ptr noundef %25)
          to label %.preheader150 unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader150:                                    ; preds = %._crit_edge
  %56 = sub i32 %2, %1
  br label %63

.lr.ph171:                                        ; preds = %.lr.ph171.preheader, %60
  %indvars.iv187 = phi i64 [ 0, %.lr.ph171.preheader ], [ %indvars.iv.next188, %60 ]
  %57 = load ptr, ptr @Tfree, align 8, !tbaa !17
  %58 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv187
  %59 = load ptr, ptr %58, align 8, !tbaa !17
  invoke void %57(ptr noundef %59)
          to label %60 unwind label %61

60:                                               ; preds = %.lr.ph171
  %indvars.iv.next188 = add nuw nsw i64 %indvars.iv187, 1
  %exitcond191.not = icmp eq i64 %indvars.iv.next188, %wide.trip.count190
  br i1 %exitcond191.not, label %._crit_edge, label %.lr.ph171, !llvm.loop !21

61:                                               ; preds = %.lr.ph171
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

63:                                               ; preds = %.preheader150, %71
  %64 = call i32 @rand() #6
  %65 = urem i32 %64, %56
  %66 = add i32 %65, %1
  %67 = zext i32 %66 to i64
  %68 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %67)
          to label %69 unwind label %.loopexit151

69:                                               ; preds = %63
  %.not112 = icmp eq ptr %68, null
  br i1 %.not112, label %.critedge138, label %70

70:                                               ; preds = %69
  call void @_Z8myMemsetPvim(ptr noundef nonnull %68, i32 noundef 0, i64 noundef %67)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %8, ptr noundef nonnull %68, i32 noundef %66)
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(12) %8)
          to label %71 unwind label %72

71:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %63, !llvm.loop !22

72:                                               ; preds = %70
  %73 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br label %.loopexit.split-lp

.critedge138:                                     ; preds = %69
  %74 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %75 = trunc nuw i8 %74 to i1
  br i1 %75, label %76, label %81

76:                                               ; preds = %.critedge138
  %77 = tail call ptr @__errno_location() #7
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = icmp eq i32 %78, 12
  br i1 %79, label %81, label %80

80:                                               ; preds = %76
  invoke void @_Z11ReportErrorPKciS0_S0_(ptr noundef nonnull @.str, i32 noundef 786, ptr noundef nonnull @.str.66, ptr noundef null)
          to label %81 unwind label %.loopexit.split-lp.loopexit.split-lp

81:                                               ; preds = %80, %.critedge138, %76
  %82 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %84, label %86

84:                                               ; preds = %81
  %85 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 787, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %85, ptr noundef nonnull @.str.67)
          to label %._crit_edge195 unwind label %.loopexit.split-lp.loopexit.split-lp

._crit_edge195:                                   ; preds = %84
  %.pre = load i8, ptr %15, align 4, !tbaa !12, !range !13
  br label %86

86:                                               ; preds = %._crit_edge195, %81
  %87 = phi i8 [ %.pre, %._crit_edge195 ], [ %82, %81 ]
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %89, label %.preheader148.preheader

89:                                               ; preds = %86
  %90 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 791, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %90, ptr noundef nonnull @.str.55)
          to label %.preheader148.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader148.preheader:                          ; preds = %86, %89
  br label %.preheader148

.loopexit149:                                     ; preds = %135
  %91 = icmp eq i32 %.2101, 0
  br i1 %91, label %.preheader148.backedge, label %137

.preheader148:                                    ; preds = %.preheader148.backedge, %.preheader148.preheader
  %.088173 = phi i32 [ 0, %.preheader148.preheader ], [ %.088173.be, %.preheader148.backedge ]
  %.1100172 = phi i32 [ 0, %.preheader148.preheader ], [ %.1100172.be, %.preheader148.backedge ]
  %92 = call i32 @rand() #6
  %93 = urem i32 %92, %56
  %94 = add i32 %93, %1
  %95 = add nuw nsw i32 %.088173, 13
  %96 = tail call ptr @__errno_location() #7
  store i32 %95, ptr %96, align 4, !tbaa !18
  %97 = zext i32 %94 to i64
  %98 = invoke noundef ptr @_Z7Tmallocm(i64 noundef %97)
          to label %99 unwind label %114

99:                                               ; preds = %.preheader148
  %100 = icmp eq ptr %98, null
  br i1 %100, label %101, label %116

101:                                              ; preds = %99
  %102 = add nsw i32 %.1100172, 1
  %103 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %105, label %135

105:                                              ; preds = %101
  %106 = load i32, ptr %96, align 4, !tbaa !18
  %.not131 = icmp eq i32 %106, 12
  br i1 %.not131, label %135, label %107

107:                                              ; preds = %105
  %108 = load i32, ptr %0, align 8, !tbaa !5
  %109 = add i32 %108, 1
  store i32 %109, ptr %0, align 8, !tbaa !5
  %110 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %110, label %111, label %135

111:                                              ; preds = %107
  %112 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 804, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  %113 = load i32, ptr %96, align 4, !tbaa !18
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %112, ptr noundef nonnull @.str.68, i32 noundef %113)
          to label %135 unwind label %114

114:                                              ; preds = %111, %.preheader148
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

116:                                              ; preds = %99
  %117 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %118 = trunc nuw i8 %117 to i1
  br i1 %118, label %119, label %131

119:                                              ; preds = %116
  %120 = load i32, ptr %96, align 4, !tbaa !18
  %121 = icmp eq i32 %120, 12
  %.not128 = icmp eq i32 %120, %95
  %brmerge = or i1 %.not128, %121
  br i1 %brmerge, label %131, label %122

122:                                              ; preds = %119
  %123 = load i32, ptr %0, align 8, !tbaa !5
  %124 = add i32 %123, 1
  store i32 %124, ptr %0, align 8, !tbaa !5
  %125 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %125, label %126, label %131

126:                                              ; preds = %122
  %127 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 817, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  %128 = load i32, ptr %96, align 4, !tbaa !18
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %127, ptr noundef nonnull @.str.69, i32 noundef %128)
          to label %131 unwind label %129

129:                                              ; preds = %126
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

131:                                              ; preds = %116, %119, %122, %126
  call void @_Z8myMemsetPvim(ptr noundef nonnull %98, i32 noundef 0, i64 noundef %97)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull %98, i32 noundef %94)
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %132 unwind label %133

132:                                              ; preds = %131
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %135

133:                                              ; preds = %131
  %134 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  br label %.loopexit.split-lp

135:                                              ; preds = %132, %107, %111, %105, %101
  %.2101 = phi i32 [ %102, %111 ], [ %102, %107 ], [ %102, %105 ], [ %102, %101 ], [ %.1100172, %132 ]
  %136 = add nuw nsw i32 %.088173, 1
  %exitcond192.not = icmp eq i32 %136, 1000
  br i1 %exitcond192.not, label %.loopexit149, label %.preheader148.backedge

.preheader148.backedge:                           ; preds = %135, %.loopexit149
  %.088173.be = phi i32 [ %136, %135 ], [ 0, %.loopexit149 ]
  %.1100172.be = phi i32 [ %.2101, %135 ], [ 0, %.loopexit149 ]
  br label %.preheader148, !llvm.loop !23

137:                                              ; preds = %.loopexit149
  %138 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %139 = trunc nuw i8 %138 to i1
  br i1 %139, label %140, label %142

140:                                              ; preds = %137
  %141 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 823, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %141, ptr noundef nonnull @.str.70)
          to label %142 unwind label %.loopexit.split-lp.loopexit.split-lp

142:                                              ; preds = %140, %137
  %143 = load i32, ptr %0, align 8, !tbaa !5
  %.not113 = icmp eq i32 %143, 0
  br i1 %.not113, label %144, label %.invoke208

144:                                              ; preds = %142
  %145 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %146 = trunc nuw i8 %145 to i1
  br i1 %146, label %.invoke208, label %149

.invoke208:                                       ; preds = %144, %142
  %.sink = phi i64 [ 824, %142 ], [ 825, %144 ]
  %147 = phi ptr [ @_ZL8strError, %142 ], [ @_ZL5strOk, %144 ]
  %148 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef %.sink, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %148, ptr noundef nonnull @.str.63, ptr noundef nonnull %147)
          to label %149 unwind label %.loopexit.split-lp.loopexit.split-lp

149:                                              ; preds = %.invoke208, %144
  %150 = load i32, ptr %0, align 8, !tbaa !5
  %151 = icmp ne i32 %150, 0
  %152 = load i8, ptr @error_occurred, align 1, !tbaa !15, !range !13, !noundef !14
  %153 = zext i1 %151 to i8
  %154 = or i8 %152, %153
  store i8 %154, ptr @error_occurred, align 1, !tbaa !15
  store i32 0, ptr %0, align 8, !tbaa !5
  %155 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %157, label %.preheader146.preheader

157:                                              ; preds = %149
  %158 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 830, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %158, ptr noundef nonnull @.str.60)
          to label %.preheader146.preheader unwind label %.loopexit.split-lp.loopexit.split-lp

.preheader146.preheader:                          ; preds = %149, %157
  br label %.preheader146

.loopexit147:                                     ; preds = %202
  %159 = icmp eq i32 %.5104, 0
  br i1 %159, label %.preheader146.backedge, label %204

.preheader146:                                    ; preds = %.preheader146.backedge, %.preheader146.preheader
  %.086175 = phi i32 [ 0, %.preheader146.preheader ], [ %.086175.be, %.preheader146.backedge ]
  %.4103174 = phi i32 [ 0, %.preheader146.preheader ], [ %.4103174.be, %.preheader146.backedge ]
  %160 = call i32 @rand() #6
  %161 = urem i32 %160, %56
  %162 = add i32 %161, %1
  %163 = add nuw nsw i32 %.086175, 13
  store i32 %163, ptr %96, align 4, !tbaa !18
  %164 = zext i32 %162 to i64
  %165 = invoke noundef ptr @_Z7Tcallocmm(i64 noundef 2, i64 noundef %164)
          to label %166 unwind label %181

166:                                              ; preds = %.preheader146
  %167 = icmp eq ptr %165, null
  br i1 %167, label %168, label %183

168:                                              ; preds = %166
  %169 = add nsw i32 %.4103174, 1
  %170 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %171 = trunc nuw i8 %170 to i1
  br i1 %171, label %172, label %202

172:                                              ; preds = %168
  %173 = load i32, ptr %96, align 4, !tbaa !18
  %.not125 = icmp eq i32 %173, 12
  br i1 %.not125, label %202, label %174

174:                                              ; preds = %172
  %175 = load i32, ptr %0, align 8, !tbaa !5
  %176 = add i32 %175, 1
  store i32 %176, ptr %0, align 8, !tbaa !5
  %177 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %177, label %178, label %202

178:                                              ; preds = %174
  %179 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 843, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  %180 = load i32, ptr %96, align 4, !tbaa !18
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %179, ptr noundef nonnull @.str.71, i32 noundef %180)
          to label %202 unwind label %181

181:                                              ; preds = %178, %.preheader146
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

183:                                              ; preds = %166
  %184 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %186, label %198

186:                                              ; preds = %183
  %187 = load i32, ptr %96, align 4, !tbaa !18
  %188 = icmp eq i32 %187, 12
  %.not122 = icmp eq i32 %187, %163
  %brmerge140 = or i1 %.not122, %188
  br i1 %brmerge140, label %198, label %189

189:                                              ; preds = %186
  %190 = load i32, ptr %0, align 8, !tbaa !5
  %191 = add i32 %190, 1
  store i32 %191, ptr %0, align 8, !tbaa !5
  %192 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %192, label %193, label %198

193:                                              ; preds = %189
  %194 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 856, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  %195 = load i32, ptr %96, align 4, !tbaa !18
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %194, ptr noundef nonnull @.str.69, i32 noundef %195)
          to label %198 unwind label %196

196:                                              ; preds = %193
  %197 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

198:                                              ; preds = %183, %186, %189, %193
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12) %10, ptr noundef nonnull %165, i32 noundef %162)
  invoke void @_ZNSt6vectorI9MemStructSaIS0_EE9push_backEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %199 unwind label %200

199:                                              ; preds = %198
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %202

200:                                              ; preds = %198
  %201 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  br label %.loopexit.split-lp

202:                                              ; preds = %199, %174, %178, %172, %168
  %.5104 = phi i32 [ %169, %178 ], [ %169, %174 ], [ %169, %172 ], [ %169, %168 ], [ %.4103174, %199 ]
  %203 = add nuw nsw i32 %.086175, 1
  %exitcond193.not = icmp eq i32 %203, 1000
  br i1 %exitcond193.not, label %.loopexit147, label %.preheader146.backedge

.preheader146.backedge:                           ; preds = %202, %.loopexit147
  %.086175.be = phi i32 [ %203, %202 ], [ 0, %.loopexit147 ]
  %.4103174.be = phi i32 [ %.5104, %202 ], [ 0, %.loopexit147 ]
  br label %.preheader146, !llvm.loop !24

204:                                              ; preds = %.loopexit147
  %205 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %206 = trunc nuw i8 %205 to i1
  br i1 %206, label %207, label %209

207:                                              ; preds = %204
  %208 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 861, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %208, ptr noundef nonnull @.str.72)
          to label %209 unwind label %.loopexit.split-lp.loopexit.split-lp

209:                                              ; preds = %207, %204
  %210 = load i32, ptr %0, align 8, !tbaa !5
  %.not114 = icmp eq i32 %210, 0
  br i1 %.not114, label %211, label %.invoke207

211:                                              ; preds = %209
  %212 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %213 = trunc nuw i8 %212 to i1
  br i1 %213, label %.invoke207, label %216

.invoke207:                                       ; preds = %211, %209
  %.sink209 = phi i64 [ 862, %209 ], [ 863, %211 ]
  %214 = phi ptr [ @_ZL8strError, %209 ], [ @_ZL5strOk, %211 ]
  %215 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef %.sink209, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %215, ptr noundef nonnull @.str.63, ptr noundef nonnull %214)
          to label %216 unwind label %.loopexit.split-lp.loopexit.split-lp

216:                                              ; preds = %.invoke207, %211
  %217 = load i32, ptr %0, align 8, !tbaa !5
  %218 = icmp ne i32 %217, 0
  %219 = load i8, ptr @error_occurred, align 1, !tbaa !15, !range !13, !noundef !14
  %220 = zext i1 %218 to i8
  %221 = or i8 %219, %220
  store i8 %221, ptr @error_occurred, align 1, !tbaa !15
  store i32 0, ptr %0, align 8, !tbaa !5
  %222 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %223 = trunc nuw i8 %222 to i1
  br i1 %223, label %224, label %226

224:                                              ; preds = %216
  %225 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 866, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %225, ptr noundef nonnull @.str.59)
          to label %226 unwind label %.loopexit.split-lp.loopexit.split-lp

226:                                              ; preds = %224, %216
  %227 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %.not115 = icmp eq i64 %227, 0
  br i1 %.not115, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %226, %.preheader.backedge
  %.084177 = phi i64 [ %.084177.be, %.preheader.backedge ], [ 0, %226 ]
  %.7176 = phi i32 [ %.7176.be, %.preheader.backedge ], [ 0, %226 ]
  %228 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %229 = icmp ult i64 %.084177, %228
  br i1 %229, label %230, label %.critedge

.critedge:                                        ; preds = %294, %.preheader
  %.7.lcssa = phi i32 [ %.8, %294 ], [ %.7176, %.preheader ]
  %.old1 = icmp eq i32 %.7.lcssa, 0
  br i1 %.old1, label %.preheader.backedge, label %.loopexit

230:                                              ; preds = %.preheader
  store i32 0, ptr %96, align 4, !tbaa !18
  %231 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %232 = load ptr, ptr %231, align 8, !tbaa !25
  %233 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %234 = getelementptr inbounds i8, ptr %233, i64 8
  %235 = load i32, ptr %234, align 8, !tbaa !27
  %236 = shl i32 %235, 1
  %237 = zext i32 %236 to i64
  %238 = invoke noundef ptr @_Z8TreallocPvm(ptr noundef %232, i64 noundef %237)
          to label %239 unwind label %242

239:                                              ; preds = %230
  %.not117 = icmp eq ptr %238, null
  br i1 %.not117, label %267, label %240

240:                                              ; preds = %239
  %241 = load i32, ptr %96, align 4, !tbaa !18
  switch i32 %241, label %244 [
    i32 0, label %252
    i32 12, label %252
  ]

242:                                              ; preds = %292, %277, %230
  %243 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

244:                                              ; preds = %240
  %245 = load i32, ptr %0, align 8, !tbaa !5
  %246 = add i32 %245, 1
  store i32 %246, ptr %0, align 8, !tbaa !5
  %247 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %247, label %248, label %252

248:                                              ; preds = %244
  %249 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 882, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %249, ptr noundef nonnull @.str.73)
          to label %252 unwind label %250

250:                                              ; preds = %248
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

252:                                              ; preds = %240, %240, %244, %248
  %253 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %254 = getelementptr inbounds i8, ptr %253, i64 8
  %255 = load i32, ptr %254, align 8, !tbaa !27
  %256 = zext i32 %255 to i64
  %257 = getelementptr inbounds i8, ptr %238, i64 %256
  %258 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %259 = getelementptr inbounds i8, ptr %258, i64 8
  %260 = load i32, ptr %259, align 8, !tbaa !27
  %261 = zext i32 %260 to i64
  call void @_Z8myMemsetPvim(ptr noundef nonnull %257, i32 noundef 0, i64 noundef %261)
  %262 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  store ptr %238, ptr %262, align 8, !tbaa !25
  %263 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %264 = getelementptr inbounds i8, ptr %263, i64 8
  %265 = load i32, ptr %264, align 8, !tbaa !27
  %266 = shl i32 %265, 1
  store i32 %266, ptr %264, align 8, !tbaa !27
  br label %294

267:                                              ; preds = %239
  %268 = add nsw i32 %.7176, 1
  %269 = load i8, ptr @__tbb_test_errno, align 1, !tbaa !15, !range !13, !noundef !14
  %270 = trunc nuw i8 %269 to i1
  br i1 %270, label %271, label %280

271:                                              ; preds = %267
  %272 = load i32, ptr %96, align 4, !tbaa !18
  %.not118 = icmp eq i32 %272, 12
  br i1 %.not118, label %280, label %273

273:                                              ; preds = %271
  %274 = load i32, ptr %0, align 8, !tbaa !5
  %275 = add i32 %274, 1
  store i32 %275, ptr %0, align 8, !tbaa !5
  %276 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %276, label %277, label %280

277:                                              ; preds = %273
  %278 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 893, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  %279 = load i32, ptr %96, align 4, !tbaa !18
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %278, ptr noundef nonnull @.str.71, i32 noundef %279)
          to label %280 unwind label %242

280:                                              ; preds = %273, %277, %271, %267
  %281 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %282 = load ptr, ptr %281, align 8, !tbaa !25
  %283 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.084177) #6
  %284 = getelementptr inbounds i8, ptr %283, i64 8
  %285 = load i32, ptr %284, align 8, !tbaa !27
  %286 = zext i32 %285 to i64
  %287 = call noundef i64 @_Z7NonZeroPvm(ptr noundef %282, i64 noundef %286)
  %.not119 = icmp eq i64 %287, 0
  br i1 %.not119, label %294, label %288

288:                                              ; preds = %280
  %289 = load i32, ptr %0, align 8, !tbaa !5
  %290 = add i32 %289, 1
  store i32 %290, ptr %0, align 8, !tbaa !5
  %291 = call noundef zeroext i1 @_ZN8CMemTest17ShouldReportErrorEv(ptr noundef nonnull align 8 dereferenceable(16) %0)
  br i1 %291, label %292, label %294

292:                                              ; preds = %288
  %293 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 898, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %293, ptr noundef nonnull @.str.74)
          to label %294 unwind label %242

294:                                              ; preds = %252, %288, %292, %280
  %.8 = phi i32 [ %.7176, %252 ], [ %268, %292 ], [ %268, %288 ], [ %268, %280 ]
  %295 = add nuw nsw i64 %.084177, 1
  %exitcond194.not = icmp eq i64 %295, 1000
  br i1 %exitcond194.not, label %.critedge, label %.preheader.backedge

.preheader.backedge:                              ; preds = %294, %.critedge
  %.084177.be = phi i64 [ %295, %294 ], [ 0, %.critedge ]
  %.7176.be = phi i32 [ %.8, %294 ], [ 0, %.critedge ]
  br label %.preheader, !llvm.loop !28

.loopexit:                                        ; preds = %.critedge, %226
  %296 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %297 = trunc nuw i8 %296 to i1
  br i1 %297, label %298, label %300

298:                                              ; preds = %.loopexit
  %299 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef 902, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %299, ptr noundef nonnull @.str.75)
          to label %300 unwind label %.loopexit.split-lp.loopexit.split-lp

300:                                              ; preds = %298, %.loopexit
  %301 = load i32, ptr %0, align 8, !tbaa !5
  %.not116 = icmp eq i32 %301, 0
  br i1 %.not116, label %302, label %.invoke

302:                                              ; preds = %300
  %303 = load i8, ptr %15, align 4, !tbaa !12, !range !13, !noundef !14
  %304 = trunc nuw i8 %303 to i1
  br i1 %304, label %.invoke, label %307

.invoke:                                          ; preds = %302, %300
  %.sink210 = phi i64 [ 903, %300 ], [ 904, %302 ]
  %305 = phi ptr [ @_ZL8strError, %300 ], [ @_ZL5strOk, %302 ]
  %306 = call noundef ptr @_ZN7Harness8internal6Tracer14set_trace_infoEiPKcmS3_(ptr noundef nonnull align 8 dereferenceable(33) @_ZN7Harness8internalL6tracerE, i32 noundef 0, ptr noundef nonnull @.str, i64 noundef %.sink210, ptr noundef nonnull @__FUNCTION__._ZN8CMemTest10NULLReturnEjji)
  invoke void (ptr, ptr, ...) @_ZN7Harness8internal6Tracer5traceEPKcz(ptr noundef nonnull align 8 dereferenceable(33) %306, ptr noundef nonnull @.str.63, ptr noundef nonnull %305)
          to label %307 unwind label %.loopexit.split-lp.loopexit.split-lp

307:                                              ; preds = %.invoke, %302
  %308 = load i32, ptr %0, align 8, !tbaa !5
  %309 = icmp ne i32 %308, 0
  %310 = load i8, ptr @error_occurred, align 1, !tbaa !15, !range !13, !noundef !14
  %311 = zext i1 %309 to i8
  %312 = or i8 %310, %311
  store i8 %312, ptr @error_occurred, align 1, !tbaa !15
  %313 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %.not183 = icmp eq i64 %313, 0
  br i1 %.not183, label %._crit_edge181, label %.lr.ph180

._crit_edge181:                                   ; preds = %320, %307
  %314 = load i8, ptr @_ZL16perProcessLimits, align 1, !tbaa !15, !range !13, !noundef !14
  %315 = trunc nuw i8 %314 to i1
  br i1 %315, label %327, label %331

.lr.ph180:                                        ; preds = %307, %320
  %316 = phi i64 [ %322, %320 ], [ 0, %307 ]
  %.0178 = phi i32 [ %321, %320 ], [ 0, %307 ]
  %317 = load ptr, ptr @Tfree, align 8, !tbaa !17
  %318 = call noundef nonnull align 8 dereferenceable(12) ptr @_ZNSt6vectorI9MemStructSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %316) #6
  %319 = load ptr, ptr %318, align 8, !tbaa !25
  invoke void %317(ptr noundef %319)
          to label %320 unwind label %325

320:                                              ; preds = %.lr.ph180
  %321 = add i32 %.0178, 1
  %322 = zext i32 %321 to i64
  %323 = call noundef i64 @_ZNKSt6vectorI9MemStructSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  %324 = icmp ugt i64 %323, %322
  br i1 %324, label %.lr.ph180, label %._crit_edge181, !llvm.loop !29

325:                                              ; preds = %.lr.ph180
  %326 = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit.split-lp

327:                                              ; preds = %._crit_edge181
  %328 = getelementptr inbounds i8, ptr %0, i64 8
  %329 = load ptr, ptr %328, align 8, !tbaa !16
  %330 = invoke noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13) %329, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %332 unwind label %.loopexit.split-lp.loopexit.split-lp

331:                                              ; preds = %._crit_edge181
  invoke void @_Z8limitMemm(i64 noundef 0)
          to label %332 unwind label %.loopexit.split-lp.loopexit.split-lp

332:                                              ; preds = %331, %327
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZNSt6vectorI9MemStructSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  ret void

.loopexit.split-lp:                               ; preds = %.loopexit151, %.loopexit.split-lp.loopexit.split-lp, %.loopexit.split-lp.loopexit, %242, %250, %181, %200, %196, %114, %133, %129, %325, %72, %61
  %.pn134 = phi { ptr, i32 } [ %62, %61 ], [ %326, %325 ], [ %73, %72 ], [ %115, %114 ], [ %134, %133 ], [ %130, %129 ], [ %182, %181 ], [ %201, %200 ], [ %197, %196 ], [ %251, %250 ], [ %243, %242 ], [ %lpad.loopexit, %.loopexit151 ], [ %lpad.loopexit153, %.loopexit.split-lp.loopexit ], [ %lpad.loopexit.split-lp154, %.loopexit.split-lp.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %333

333:                                              ; preds = %.loopexit.split-lp, %20
  %.pn134.pn = phi { ptr, i32 } [ %.pn134, %.loopexit.split-lp ], [ %21, %20 ]
  call void @_ZNSt6vectorI9MemStructSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn134.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN7Harness11SpinBarrier4waitI5LimitEEbRKT_(ptr noundef nonnull align 4 dereferenceable(13), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9MemStructC2EPvj(ptr noundef nonnull align 8 dereferenceable(12), ptr noundef, i32 noundef) unnamed_addr #2 align 2

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

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

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

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

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

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


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