; LLVM IR from kampersanda/xcdat :: tests/test_bit_vector.ll (Z16test_rank_selectRKSt6vectorIbSaIbEE)

; 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.xcdat::bit_vector" = type { ptr, i64, i64, %"class.xcdat::immutable_vector", %"class.xcdat::immutable_vector", %"class.xcdat::immutable_vector" }
%"class.xcdat::immutable_vector" = type { ptr, %"class.std::unique_ptr", i64, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.111" }
%"struct.std::_Head_base.111" = type { ptr }
%"class.xcdat::bit_vector::builder" = type { ptr, i64, %"class.std::vector.106" }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.doctest::detail::ResultBuilder" = type { %"struct.doctest::AssertData" }
%"struct.doctest::AssertData" = type { ptr, i32, ptr, i32, ptr, i8, i8, %"class.doctest::String", %"class.doctest::String", i8, ptr, %"class.doctest::AssertData::StringContains" }
%"class.doctest::String" = type { %union.anon.7 }
%union.anon.7 = type { %"struct.doctest::String::view", [8 x i8] }
%"struct.doctest::String::view" = type { ptr, i32, i32 }
%"class.doctest::AssertData::StringContains" = type <{ %"class.doctest::Contains", i8, [7 x i8] }>
%"class.doctest::Contains" = type { %"class.doctest::String" }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #1

declare ptr @__cxa_begin_catch(ptr)

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 align 2

declare void @__cxa_end_catch()

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z10rank_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_Z12select_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16test_rank_selectRKSt6vectorIbSaIbEE(ptr noundef nonnull align 8 dereferenceable(40) %0) #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.xcdat::bit_vector", align 8
  %4 = alloca %"class.xcdat::bit_vector::builder", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca %"class.xcdat::bit_vector", align 8
  %9 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %10 = alloca %"class.doctest::String", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %14 = alloca %"class.doctest::String", align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %19 = alloca %"class.doctest::String", align 8
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  %22 = alloca %"class.std::mersenne_twister_engine", align 8
  %23 = alloca %"class.std::uniform_int_distribution", align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  %26 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %27 = alloca %"class.doctest::String", align 8
  %28 = alloca i64, align 8
  %29 = alloca i64, align 8
  %30 = alloca %"class.std::uniform_int_distribution", align 8
  %31 = alloca i64, align 8
  %32 = alloca i64, align 8
  %33 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %34 = alloca %"class.doctest::String", align 8
  %35 = alloca i64, align 8
  %36 = alloca i64, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %3) #7
  call void @_ZN5xcdat10bit_vectorC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #7
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %37) #7
  invoke void @_ZN5xcdat10bit_vector7builderC2Em(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %38)
          to label %39 unwind label %46

39:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  store i64 0, ptr %7, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %57, %39
  %41 = load i64, ptr %7, align 8, !tbaa !9
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %42) #7
  %44 = icmp ult i64 %41, %43
  br i1 %44, label %50, label %45

45:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %64

46:                                               ; preds = %1
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %5, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %6, align 4
  br label %81

50:                                               ; preds = %40
  %51 = load i64, ptr %7, align 8, !tbaa !9
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = load i64, ptr %7, align 8, !tbaa !9
  %54 = invoke noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %52, i64 noundef %53)
          to label %55 unwind label %60

55:                                               ; preds = %50
  invoke void @_ZN5xcdat10bit_vector7builder7set_bitEmb(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %51, i1 noundef zeroext %54)
          to label %56 unwind label %60

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  %58 = load i64, ptr %7, align 8, !tbaa !9
  %59 = add i64 %58, 1
  store i64 %59, ptr %7, align 8, !tbaa !9
  br label %40, !llvm.loop !11

60:                                               ; preds = %55, %50
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %5, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %80

64:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 120, ptr %8) #7
  invoke void @_ZN5xcdat10bit_vectorC2ERNS0_7builderEbb(ptr noundef nonnull align 8 dereferenceable(120) %8, ptr noundef nonnull align 8 dereferenceable(40) %4, i1 noundef zeroext true, i1 noundef zeroext true)
          to label %65 unwind label %76

65:                                               ; preds = %64
  %66 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN5xcdat10bit_vectoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(120) %3, ptr noundef nonnull align 8 dereferenceable(120) %8) #7
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %8) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #7
  call void @_ZN5xcdat10bit_vector7builderD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  br label %67

67:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 144, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef @.str)
          to label %68 unwind label %82

68:                                               ; preds = %67
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %9, i32 noundef 1036, ptr noundef @.str.209, i32 noundef 41, ptr noundef @.str.210, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %69 unwind label %86

69:                                               ; preds = %68
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  %70 = invoke noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %71 unwind label %91

71:                                               ; preds = %69
  store i64 %70, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %72 = load ptr, ptr %2, align 8, !tbaa !5
  %73 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %72) #7
  store i64 %73, ptr %12, align 8, !tbaa !9
  %74 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %9, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %75 unwind label %95

75:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %105

76:                                               ; preds = %64
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %5, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %8) #7
  br label %80

80:                                               ; preds = %76, %60
  call void @_ZN5xcdat10bit_vector7builderD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %81

81:                                               ; preds = %80, %46
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #7
  br label %411

82:                                               ; preds = %67
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %5, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %6, align 4
  br label %90

86:                                               ; preds = %68
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %5, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %6, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %90

90:                                               ; preds = %86, %82
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  br label %133

91:                                               ; preds = %69
  %92 = landingpad { ptr, i32 }
          catch ptr null
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %5, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %6, align 4
  br label %99

95:                                               ; preds = %71
  %96 = landingpad { ptr, i32 }
          catch ptr null
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %5, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %99

99:                                               ; preds = %95, %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %5, align 8
  %102 = call ptr @__cxa_begin_catch(ptr %101) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %103 unwind label %109

103:                                              ; preds = %100
  invoke void @__cxa_end_catch()
          to label %104 unwind label %113

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104, %75
  %106 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %107 unwind label %113

107:                                              ; preds = %105
  br i1 %106, label %108, label %118

108:                                              ; preds = %107
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !13
  br label %118

109:                                              ; preds = %100
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %5, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %117 unwind label %417

113:                                              ; preds = %118, %105, %103
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %5, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %6, align 4
  br label %132

117:                                              ; preds = %109
  br label %132

118:                                              ; preds = %108, %107
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %119 unwind label %113

119:                                              ; preds = %118
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #7
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef @.str)
          to label %123 unwind label %134

123:                                              ; preds = %122
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %13, i32 noundef 1036, ptr noundef @.str.209, i32 noundef 42, ptr noundef @.str.211, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %124 unwind label %138

124:                                              ; preds = %123
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %125 = invoke noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %126 unwind label %143

126:                                              ; preds = %124
  store i64 %125, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %127 = load ptr, ptr %2, align 8, !tbaa !5
  %128 = invoke noundef i64 @_Z12get_num_onesRKSt6vectorIbSaIbEE(ptr noundef nonnull align 8 dereferenceable(40) %127)
          to label %129 unwind label %147

129:                                              ; preds = %126
  store i64 %128, ptr %16, align 8, !tbaa !9
  %130 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %13, ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %131 unwind label %147

131:                                              ; preds = %129
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %157

132:                                              ; preds = %117, %113
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #7
  br label %133

133:                                              ; preds = %132, %90
  call void @llvm.lifetime.end.p0(i64 144, ptr %9) #7
  br label %411

134:                                              ; preds = %122
  %135 = landingpad { ptr, i32 }
          cleanup
  %136 = extractvalue { ptr, i32 } %135, 0
  store ptr %136, ptr %5, align 8
  %137 = extractvalue { ptr, i32 } %135, 1
  store i32 %137, ptr %6, align 4
  br label %142

138:                                              ; preds = %123
  %139 = landingpad { ptr, i32 }
          cleanup
  %140 = extractvalue { ptr, i32 } %139, 0
  store ptr %140, ptr %5, align 8
  %141 = extractvalue { ptr, i32 } %139, 1
  store i32 %141, ptr %6, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %142

142:                                              ; preds = %138, %134
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  br label %181

143:                                              ; preds = %124
  %144 = landingpad { ptr, i32 }
          catch ptr null
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %5, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %6, align 4
  br label %151

147:                                              ; preds = %129, %126
  %148 = landingpad { ptr, i32 }
          catch ptr null
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %5, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %152

152:                                              ; preds = %151
  %153 = load ptr, ptr %5, align 8
  %154 = call ptr @__cxa_begin_catch(ptr %153) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %155 unwind label %161

155:                                              ; preds = %152
  invoke void @__cxa_end_catch()
          to label %156 unwind label %165

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156, %131
  %158 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %159 unwind label %165

159:                                              ; preds = %157
  br i1 %158, label %160, label %170

160:                                              ; preds = %159
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !14
  br label %170

161:                                              ; preds = %152
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %169 unwind label %417

165:                                              ; preds = %170, %157, %155
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  br label %180

169:                                              ; preds = %161
  br label %180

170:                                              ; preds = %160, %159
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %171 unwind label %165

171:                                              ; preds = %170
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #7
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store i64 0, ptr %17, align 8, !tbaa !9
  br label %174

174:                                              ; preds = %237, %173
  %175 = load i64, ptr %17, align 8, !tbaa !9
  %176 = load ptr, ptr %2, align 8, !tbaa !5
  %177 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %176) #7
  %178 = icmp ult i64 %175, %177
  br i1 %178, label %182, label %179

179:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %242

180:                                              ; preds = %169, %165
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #7
  br label %181

181:                                              ; preds = %180, %142
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #7
  br label %411

182:                                              ; preds = %174
  br label %183

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 144, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef @.str)
          to label %184 unwind label %197

184:                                              ; preds = %183
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %18, i32 noundef 1036, ptr noundef @.str.209, i32 noundef 45, ptr noundef @.str.212, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(24) %19)
          to label %185 unwind label %201

185:                                              ; preds = %184
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %186 = load i64, ptr %17, align 8, !tbaa !9
  %187 = invoke noundef zeroext i1 @_ZNK5xcdat10bit_vectorixEm(ptr noundef nonnull align 8 dereferenceable(120) %3, i64 noundef %186)
          to label %188 unwind label %206

188:                                              ; preds = %185
  %189 = zext i1 %187 to i8
  store i8 %189, ptr %20, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = load i64, ptr %17, align 8, !tbaa !9
  %192 = invoke noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %190, i64 noundef %191)
          to label %193 unwind label %210

193:                                              ; preds = %188
  %194 = zext i1 %192 to i8
  store i8 %194, ptr %21, align 1, !tbaa !15
  %195 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EbbEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %18, ptr noundef nonnull align 1 dereferenceable(1) %20, ptr noundef nonnull align 1 dereferenceable(1) %21)
          to label %196 unwind label %210

196:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %220

197:                                              ; preds = %183
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %5, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %6, align 4
  br label %205

201:                                              ; preds = %184
  %202 = landingpad { ptr, i32 }
          cleanup
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %5, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %6, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #7
  br label %205

205:                                              ; preds = %201, %197
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #7
  br label %241

206:                                              ; preds = %185
  %207 = landingpad { ptr, i32 }
          catch ptr null
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %5, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %6, align 4
  br label %214

210:                                              ; preds = %193, %188
  %211 = landingpad { ptr, i32 }
          catch ptr null
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %5, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  br label %214

214:                                              ; preds = %210, %206
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  br label %215

215:                                              ; preds = %214
  %216 = load ptr, ptr %5, align 8
  %217 = call ptr @__cxa_begin_catch(ptr %216) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %218 unwind label %224

218:                                              ; preds = %215
  invoke void @__cxa_end_catch()
          to label %219 unwind label %228

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219, %196
  %221 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %222 unwind label %228

222:                                              ; preds = %220
  br i1 %221, label %223, label %233

223:                                              ; preds = %222
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !17
  br label %233

224:                                              ; preds = %215
  %225 = landingpad { ptr, i32 }
          cleanup
  %226 = extractvalue { ptr, i32 } %225, 0
  store ptr %226, ptr %5, align 8
  %227 = extractvalue { ptr, i32 } %225, 1
  store i32 %227, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %232 unwind label %417

228:                                              ; preds = %233, %220, %218
  %229 = landingpad { ptr, i32 }
          cleanup
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %5, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %6, align 4
  br label %240

232:                                              ; preds = %224
  br label %240

233:                                              ; preds = %223, %222
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %234 unwind label %228

234:                                              ; preds = %233
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %18) #7
  br label %235

235:                                              ; preds = %234
  br label %236

236:                                              ; preds = %235
  br label %237

237:                                              ; preds = %236
  %238 = load i64, ptr %17, align 8, !tbaa !9
  %239 = add i64 %238, 1
  store i64 %239, ptr %17, align 8, !tbaa !9
  br label %174, !llvm.loop !18

240:                                              ; preds = %232, %228
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #7
  br label %241

241:                                              ; preds = %240, %205
  call void @llvm.lifetime.end.p0(i64 144, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %411

242:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 2504, ptr %22) #7
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %22, i64 noundef 17)
          to label %243 unwind label %251

243:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %244 = invoke noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %245 unwind label %255

245:                                              ; preds = %243
  invoke void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef 0, i64 noundef %244)
          to label %246 unwind label %255

246:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %247

247:                                              ; preds = %318, %246
  %248 = load i64, ptr %24, align 8, !tbaa !9
  %249 = icmp ult i64 %248, 100
  br i1 %249, label %259, label %250

250:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %324

251:                                              ; preds = %324, %242
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %5, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %6, align 4
  br label %410

255:                                              ; preds = %245, %243
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %5, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %6, align 4
  br label %337

259:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %260 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(2504) %22)
          to label %261 unwind label %274

261:                                              ; preds = %259
  store i64 %260, ptr %25, align 8, !tbaa !9
  br label %262

262:                                              ; preds = %261
  call void @llvm.lifetime.start.p0(i64 144, ptr %26) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef @.str)
          to label %263 unwind label %278

263:                                              ; preds = %262
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %26, i32 noundef 1036, ptr noundef @.str.209, i32 noundef 55, ptr noundef @.str.213, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(24) %27)
          to label %264 unwind label %282

264:                                              ; preds = %263
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %265 = load i64, ptr %25, align 8, !tbaa !9
  %266 = invoke noundef i64 @_ZNK5xcdat10bit_vector4rankEm(ptr noundef nonnull align 8 dereferenceable(120) %3, i64 noundef %265)
          to label %267 unwind label %287

267:                                              ; preds = %264
  store i64 %266, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %268 = load ptr, ptr %2, align 8, !tbaa !5
  %269 = load i64, ptr %25, align 8, !tbaa !9
  %270 = invoke noundef i64 @_Z10rank_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40) %268, i64 noundef %269)
          to label %271 unwind label %291

271:                                              ; preds = %267
  store i64 %270, ptr %29, align 8, !tbaa !9
  %272 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %26, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %273 unwind label %291

273:                                              ; preds = %271
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %301

274:                                              ; preds = %259
  %275 = landingpad { ptr, i32 }
          cleanup
  %276 = extractvalue { ptr, i32 } %275, 0
  store ptr %276, ptr %5, align 8
  %277 = extractvalue { ptr, i32 } %275, 1
  store i32 %277, ptr %6, align 4
  br label %323

278:                                              ; preds = %262
  %279 = landingpad { ptr, i32 }
          cleanup
  %280 = extractvalue { ptr, i32 } %279, 0
  store ptr %280, ptr %5, align 8
  %281 = extractvalue { ptr, i32 } %279, 1
  store i32 %281, ptr %6, align 4
  br label %286

282:                                              ; preds = %263
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %5, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %6, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  br label %286

286:                                              ; preds = %282, %278
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %322

287:                                              ; preds = %264
  %288 = landingpad { ptr, i32 }
          catch ptr null
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %5, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %6, align 4
  br label %295

291:                                              ; preds = %271, %267
  %292 = landingpad { ptr, i32 }
          catch ptr null
  %293 = extractvalue { ptr, i32 } %292, 0
  store ptr %293, ptr %5, align 8
  %294 = extractvalue { ptr, i32 } %292, 1
  store i32 %294, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  br label %295

295:                                              ; preds = %291, %287
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %5, align 8
  %298 = call ptr @__cxa_begin_catch(ptr %297) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %26)
          to label %299 unwind label %305

299:                                              ; preds = %296
  invoke void @__cxa_end_catch()
          to label %300 unwind label %309

300:                                              ; preds = %299
  br label %301

301:                                              ; preds = %300, %273
  %302 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %26)
          to label %303 unwind label %309

303:                                              ; preds = %301
  br i1 %302, label %304, label %314

304:                                              ; preds = %303
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !19
  br label %314

305:                                              ; preds = %296
  %306 = landingpad { ptr, i32 }
          cleanup
  %307 = extractvalue { ptr, i32 } %306, 0
  store ptr %307, ptr %5, align 8
  %308 = extractvalue { ptr, i32 } %306, 1
  store i32 %308, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %313 unwind label %417

309:                                              ; preds = %314, %301, %299
  %310 = landingpad { ptr, i32 }
          cleanup
  %311 = extractvalue { ptr, i32 } %310, 0
  store ptr %311, ptr %5, align 8
  %312 = extractvalue { ptr, i32 } %310, 1
  store i32 %312, ptr %6, align 4
  br label %321

313:                                              ; preds = %305
  br label %321

314:                                              ; preds = %304, %303
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %26)
          to label %315 unwind label %309

315:                                              ; preds = %314
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %26) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %26) #7
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %318

318:                                              ; preds = %317
  %319 = load i64, ptr %24, align 8, !tbaa !9
  %320 = add i64 %319, 1
  store i64 %320, ptr %24, align 8, !tbaa !9
  br label %247, !llvm.loop !20

321:                                              ; preds = %313, %309
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %26) #7
  br label %322

322:                                              ; preds = %321, %286
  call void @llvm.lifetime.end.p0(i64 144, ptr %26) #7
  br label %323

323:                                              ; preds = %322, %274
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %337

324:                                              ; preds = %250
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  %325 = invoke noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %326 unwind label %251

326:                                              ; preds = %324
  %327 = icmp ne i64 %325, 0
  br i1 %327, label %328, label %409

328:                                              ; preds = %326
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %329 = invoke noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %3)
          to label %330 unwind label %338

330:                                              ; preds = %328
  %331 = sub i64 %329, 1
  invoke void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %30, i64 noundef 0, i64 noundef %331)
          to label %332 unwind label %338

332:                                              ; preds = %330
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  store i64 0, ptr %31, align 8, !tbaa !9
  br label %333

333:                                              ; preds = %401, %332
  %334 = load i64, ptr %31, align 8, !tbaa !9
  %335 = icmp ult i64 %334, 100
  br i1 %335, label %342, label %336

336:                                              ; preds = %333
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %407

337:                                              ; preds = %323, %255
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  br label %410

338:                                              ; preds = %330, %328
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %5, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %6, align 4
  br label %408

342:                                              ; preds = %333
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %343 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(2504) %22)
          to label %344 unwind label %357

344:                                              ; preds = %342
  store i64 %343, ptr %32, align 8, !tbaa !9
  br label %345

345:                                              ; preds = %344
  call void @llvm.lifetime.start.p0(i64 144, ptr %33) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef @.str)
          to label %346 unwind label %361

346:                                              ; preds = %345
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %33, i32 noundef 1036, ptr noundef @.str.209, i32 noundef 62, ptr noundef @.str.214, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(24) %34)
          to label %347 unwind label %365

347:                                              ; preds = %346
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #7
  %348 = load i64, ptr %32, align 8, !tbaa !9
  %349 = invoke noundef i64 @_ZNK5xcdat10bit_vector6selectEm(ptr noundef nonnull align 8 dereferenceable(120) %3, i64 noundef %348)
          to label %350 unwind label %370

350:                                              ; preds = %347
  store i64 %349, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #7
  %351 = load ptr, ptr %2, align 8, !tbaa !5
  %352 = load i64, ptr %32, align 8, !tbaa !9
  %353 = invoke noundef i64 @_Z12select_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40) %351, i64 noundef %352)
          to label %354 unwind label %374

354:                                              ; preds = %350
  store i64 %353, ptr %36, align 8, !tbaa !9
  %355 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %33, ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
          to label %356 unwind label %374

356:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %384

357:                                              ; preds = %342
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %5, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %6, align 4
  br label %406

361:                                              ; preds = %345
  %362 = landingpad { ptr, i32 }
          cleanup
  %363 = extractvalue { ptr, i32 } %362, 0
  store ptr %363, ptr %5, align 8
  %364 = extractvalue { ptr, i32 } %362, 1
  store i32 %364, ptr %6, align 4
  br label %369

365:                                              ; preds = %346
  %366 = landingpad { ptr, i32 }
          cleanup
  %367 = extractvalue { ptr, i32 } %366, 0
  store ptr %367, ptr %5, align 8
  %368 = extractvalue { ptr, i32 } %366, 1
  store i32 %368, ptr %6, align 4
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #7
  br label %369

369:                                              ; preds = %365, %361
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #7
  br label %405

370:                                              ; preds = %347
  %371 = landingpad { ptr, i32 }
          catch ptr null
  %372 = extractvalue { ptr, i32 } %371, 0
  store ptr %372, ptr %5, align 8
  %373 = extractvalue { ptr, i32 } %371, 1
  store i32 %373, ptr %6, align 4
  br label %378

374:                                              ; preds = %354, %350
  %375 = landingpad { ptr, i32 }
          catch ptr null
  %376 = extractvalue { ptr, i32 } %375, 0
  store ptr %376, ptr %5, align 8
  %377 = extractvalue { ptr, i32 } %375, 1
  store i32 %377, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #7
  br label %378

378:                                              ; preds = %374, %370
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #7
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %5, align 8
  %381 = call ptr @__cxa_begin_catch(ptr %380) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %33)
          to label %382 unwind label %388

382:                                              ; preds = %379
  invoke void @__cxa_end_catch()
          to label %383 unwind label %392

383:                                              ; preds = %382
  br label %384

384:                                              ; preds = %383, %356
  %385 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %33)
          to label %386 unwind label %392

386:                                              ; preds = %384
  br i1 %385, label %387, label %397

387:                                              ; preds = %386
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !21
  br label %397

388:                                              ; preds = %379
  %389 = landingpad { ptr, i32 }
          cleanup
  %390 = extractvalue { ptr, i32 } %389, 0
  store ptr %390, ptr %5, align 8
  %391 = extractvalue { ptr, i32 } %389, 1
  store i32 %391, ptr %6, align 4
  invoke void @__cxa_end_catch()
          to label %396 unwind label %417

392:                                              ; preds = %397, %384, %382
  %393 = landingpad { ptr, i32 }
          cleanup
  %394 = extractvalue { ptr, i32 } %393, 0
  store ptr %394, ptr %5, align 8
  %395 = extractvalue { ptr, i32 } %393, 1
  store i32 %395, ptr %6, align 4
  br label %404

396:                                              ; preds = %388
  br label %404

397:                                              ; preds = %387, %386
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %33)
          to label %398 unwind label %392

398:                                              ; preds = %397
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %33) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #7
  br label %399

399:                                              ; preds = %398
  br label %400

400:                                              ; preds = %399
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  br label %401

401:                                              ; preds = %400
  %402 = load i64, ptr %31, align 8, !tbaa !9
  %403 = add i64 %402, 1
  store i64 %403, ptr %31, align 8, !tbaa !9
  br label %333, !llvm.loop !22

404:                                              ; preds = %396, %392
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %33) #7
  br label %405

405:                                              ; preds = %404, %369
  call void @llvm.lifetime.end.p0(i64 144, ptr %33) #7
  br label %406

406:                                              ; preds = %405, %357
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  br label %408

407:                                              ; preds = %336
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %409

408:                                              ; preds = %406, %338
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  br label %410

409:                                              ; preds = %407, %326
  call void @llvm.lifetime.end.p0(i64 2504, ptr %22) #7
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #7
  ret void

410:                                              ; preds = %408, %337, %251
  call void @llvm.lifetime.end.p0(i64 2504, ptr %22) #7
  br label %411

411:                                              ; preds = %410, %241, %181, %133, %81
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %3) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %3) #7
  br label %412

412:                                              ; preds = %411
  %413 = load ptr, ptr %5, align 8
  %414 = load i32, ptr %6, align 4
  %415 = insertvalue { ptr, i32 } poison, ptr %413, 0
  %416 = insertvalue { ptr, i32 } %415, i32 %414, 1
  resume { ptr, i32 } %416

417:                                              ; preds = %388, %305, %224, %161, %109
  %418 = landingpad { ptr, i32 }
          catch ptr null
  %419 = extractvalue { ptr, i32 } %418, 0
  call void @__clang_call_terminate(ptr %419) #8
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5xcdat10bit_vector7builder7set_bitEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5xcdat10bit_vectorC2ERNS0_7builderEbb(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN5xcdat10bit_vectoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) #4 align 2

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

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

; Function Attrs: mustprogress noinline uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120)) #3 align 2

; Function Attrs: mustprogress noinline uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EbbEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5xcdat10bit_vectorixEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector4rankEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector6selectEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) #6 align 2

declare void @_ZN7doctest6StringD1Ev(ptr)

declare void @_ZN7doctest6StringC1EPKc(ptr, ptr)

declare void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr, i32, ptr, i32, ptr, ptr, ptr)

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i64 2153886258}
!14 = !{i64 2153892054}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i64 2153893694}
!18 = distinct !{!18, !12}
!19 = !{i64 2153895419}
!20 = distinct !{!20, !12}
!21 = !{i64 2153897164}
!22 = distinct !{!22, !12}


; 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.xcdat::bit_vector" = type { ptr, i64, i64, %"class.xcdat::immutable_vector", %"class.xcdat::immutable_vector", %"class.xcdat::immutable_vector" }
%"class.xcdat::immutable_vector" = type { ptr, %"class.std::unique_ptr", i64, ptr }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.111" }
%"struct.std::_Head_base.111" = type { ptr }
%"class.xcdat::bit_vector::builder" = type { ptr, i64, %"class.std::vector.106" }
%"class.std::vector.106" = type { %"struct.std::_Vector_base.107" }
%"struct.std::_Vector_base.107" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned long, std::allocator<unsigned long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.doctest::detail::ResultBuilder" = type { %"struct.doctest::AssertData" }
%"struct.doctest::AssertData" = type { ptr, i32, ptr, i32, ptr, i8, i8, %"class.doctest::String", %"class.doctest::String", i8, ptr, %"class.doctest::AssertData::StringContains" }
%"class.doctest::String" = type { %union.anon.7 }
%union.anon.7 = type { %"struct.doctest::String::view", [8 x i8] }
%"struct.doctest::String::view" = type { ptr, i32, i32 }
%"class.doctest::AssertData::StringContains" = type <{ %"class.doctest::Contains", i8, [7 x i8] }>
%"class.doctest::Contains" = type { %"class.doctest::String" }
%"class.std::mersenne_twister_engine" = type { [312 x i64], i64 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<unsigned long>::param_type" }
%"struct.std::uniform_int_distribution<unsigned long>::param_type" = type { i64, i64 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@.str.209 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.210 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.211 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.212 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.213 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.214 = external hidden unnamed_addr constant [36 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #1

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 align 2

declare void @__cxa_end_catch() local_unnamed_addr

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(2504)) local_unnamed_addr #2 align 2

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16test_rank_selectRKSt6vectorIbSaIbEE(ptr noundef nonnull align 8 dereferenceable(40) %0) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.xcdat::bit_vector", align 8
  %3 = alloca %"class.xcdat::bit_vector::builder", align 8
  %4 = alloca %"class.xcdat::bit_vector", align 8
  %5 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %6 = alloca %"class.doctest::String", align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %10 = alloca %"class.doctest::String", align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %14 = alloca %"class.doctest::String", align 8
  %15 = alloca i8, align 1
  %16 = alloca i8, align 1
  %17 = alloca %"class.std::mersenne_twister_engine", align 8
  %18 = alloca %"class.std::uniform_int_distribution", align 8
  %19 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %20 = alloca %"class.doctest::String", align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca %"class.std::uniform_int_distribution", align 8
  %24 = alloca %"struct.doctest::detail::ResultBuilder", align 8
  %25 = alloca %"class.doctest::String", align 8
  %26 = alloca i64, align 8
  %27 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %2) #7
  call void @_ZN5xcdat10bit_vectorC2Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #7
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #7
  %28 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  invoke void @_ZN5xcdat10bit_vector7builderC2Em(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %28)
          to label %.preheader94 unwind label %30

.preheader94:                                     ; preds = %1
  %29 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  %.not102 = icmp eq i64 %29, 0
  br i1 %.not102, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %33, %.preheader94
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %4) #7
  invoke void @_ZN5xcdat10bit_vectorC2ERNS0_7builderEbb(ptr noundef nonnull align 8 dereferenceable(120) %4, ptr noundef nonnull align 8 dereferenceable(40) %3, i1 noundef zeroext true, i1 noundef zeroext true)
          to label %39 unwind label %47

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

.lr.ph:                                           ; preds = %.preheader94, %33
  %.05795 = phi i64 [ %34, %33 ], [ 0, %.preheader94 ]
  %32 = invoke noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %.05795)
          to label %33 unwind label %37

33:                                               ; preds = %.lr.ph
  call void @_ZN5xcdat10bit_vector7builder7set_bitEmb(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %.05795, i1 noundef zeroext %32)
  %34 = add nuw i64 %.05795, 1
  %35 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %.lr.ph, label %._crit_edge, !llvm.loop !5

37:                                               ; preds = %.lr.ph
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %49

39:                                               ; preds = %._crit_edge
  %40 = call noundef nonnull align 8 dereferenceable(120) ptr @_ZN5xcdat10bit_vectoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(120) %2, ptr noundef nonnull align 8 dereferenceable(120) %4) #7
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %4) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #7
  call void @_ZN5xcdat10bit_vector7builderD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull @.str)
          to label %41 unwind label %51

41:                                               ; preds = %39
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %5, i32 noundef 1036, ptr noundef nonnull @.str.209, i32 noundef 41, ptr noundef nonnull @.str.210, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %42 unwind label %53

42:                                               ; preds = %41
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #7
  %43 = call noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %2)
  store i64 %43, ptr %7, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #7
  %44 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  store i64 %44, ptr %8, align 8, !tbaa !7
  %45 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %5, ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %46 unwind label %56

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  br label %61

47:                                               ; preds = %._crit_edge
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %4) #7
  br label %49

49:                                               ; preds = %47, %37
  %.pn89 = phi { ptr, i32 } [ %38, %37 ], [ %48, %47 ]
  call void @_ZN5xcdat10bit_vector7builderD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  br label %50

50:                                               ; preds = %49, %30
  %.pn89.pn = phi { ptr, i32 } [ %.pn89, %49 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #7
  br label %229

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

53:                                               ; preds = %41
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  br label %55

55:                                               ; preds = %53, %51
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #7
  br label %79

56:                                               ; preds = %42
  %57 = landingpad { ptr, i32 }
          catch ptr null
  %58 = extractvalue { ptr, i32 } %57, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #7
  %59 = call ptr @__cxa_begin_catch(ptr %58) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
          to label %60 unwind label %65

60:                                               ; preds = %56
  invoke void @__cxa_end_catch()
          to label %61 unwind label %67

61:                                               ; preds = %60, %46
  %62 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
          to label %63 unwind label %67

63:                                               ; preds = %61
  br i1 %62, label %64, label %69

64:                                               ; preds = %63
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !11
  br label %69

65:                                               ; preds = %56
  %66 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %78 unwind label %230

67:                                               ; preds = %69, %61, %60
  %68 = landingpad { ptr, i32 }
          cleanup
  br label %78

69:                                               ; preds = %64, %63
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %5)
          to label %70 unwind label %67

70:                                               ; preds = %69
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull @.str)
          to label %71 unwind label %80

71:                                               ; preds = %70
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %9, i32 noundef 1036, ptr noundef nonnull @.str.209, i32 noundef 42, ptr noundef nonnull @.str.211, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %72 unwind label %82

72:                                               ; preds = %71
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #7
  %73 = call noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %2)
  store i64 %73, ptr %11, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  %74 = invoke noundef i64 @_Z12get_num_onesRKSt6vectorIbSaIbEE(ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %75 unwind label %85

75:                                               ; preds = %72
  store i64 %74, ptr %12, align 8, !tbaa !7
  %76 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %9, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %77 unwind label %85

77:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  br label %90

78:                                               ; preds = %65, %67
  %.pn59 = phi { ptr, i32 } [ %68, %67 ], [ %66, %65 ]
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %5) #7
  br label %79

79:                                               ; preds = %78, %55
  %.pn59.pn = phi { ptr, i32 } [ %.pn59, %78 ], [ %.pn, %55 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %5) #7
  br label %229

80:                                               ; preds = %70
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %84

82:                                               ; preds = %71
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  br label %84

84:                                               ; preds = %82, %80
  %.pn62 = phi { ptr, i32 } [ %83, %82 ], [ %81, %80 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  br label %102

85:                                               ; preds = %75, %72
  %86 = landingpad { ptr, i32 }
          catch ptr null
  %87 = extractvalue { ptr, i32 } %86, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #7
  %88 = call ptr @__cxa_begin_catch(ptr %87) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %89 unwind label %94

89:                                               ; preds = %85
  invoke void @__cxa_end_catch()
          to label %90 unwind label %96

90:                                               ; preds = %89, %77
  %91 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %92 unwind label %96

92:                                               ; preds = %90
  br i1 %91, label %93, label %98

93:                                               ; preds = %92
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !12
  br label %98

94:                                               ; preds = %85
  %95 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %101 unwind label %230

96:                                               ; preds = %98, %90, %89
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %101

98:                                               ; preds = %93, %92
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %9)
          to label %99 unwind label %96

99:                                               ; preds = %98
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #7
  %100 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  %.not103 = icmp eq i64 %100, 0
  br i1 %.not103, label %._crit_edge99, label %.lr.ph98

._crit_edge99:                                    ; preds = %131, %99
  call void @llvm.lifetime.start.p0(i64 2504, ptr nonnull %17) #7
  invoke void @_ZNSt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEC2Em(ptr noundef nonnull align 8 dereferenceable(2504) %17, i64 noundef 17)
          to label %137 unwind label %141

101:                                              ; preds = %94, %96
  %.pn64 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %9) #7
  br label %102

102:                                              ; preds = %101, %84
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %101 ], [ %.pn62, %84 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %9) #7
  br label %229

.lr.ph98:                                         ; preds = %99, %131
  %.05696 = phi i64 [ %132, %131 ], [ 0, %99 ]
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull @.str)
          to label %103 unwind label %112

103:                                              ; preds = %.lr.ph98
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %13, i32 noundef 1036, ptr noundef nonnull @.str.209, i32 noundef 45, ptr noundef nonnull @.str.212, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %104 unwind label %114

104:                                              ; preds = %103
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #7
  %105 = call noundef zeroext i1 @_ZNK5xcdat10bit_vectorixEm(ptr noundef nonnull align 8 dereferenceable(120) %2, i64 noundef %.05696)
  %106 = zext i1 %105 to i8
  store i8 %106, ptr %15, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %16) #7
  %107 = invoke noundef zeroext i1 @_ZNKSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %.05696)
          to label %108 unwind label %117

108:                                              ; preds = %104
  %109 = zext i1 %107 to i8
  store i8 %109, ptr %16, align 1, !tbaa !13
  %110 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EbbEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %13, ptr noundef nonnull align 1 dereferenceable(1) %15, ptr noundef nonnull align 1 dereferenceable(1) %16)
          to label %111 unwind label %117

111:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  br label %122

112:                                              ; preds = %.lr.ph98
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %116

114:                                              ; preds = %103
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #7
  br label %116

116:                                              ; preds = %114, %112
  %.pn84 = phi { ptr, i32 } [ %115, %114 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  br label %136

117:                                              ; preds = %108, %104
  %118 = landingpad { ptr, i32 }
          catch ptr null
  %119 = extractvalue { ptr, i32 } %118, 0
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #7
  %120 = call ptr @__cxa_begin_catch(ptr %119) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %121 unwind label %126

121:                                              ; preds = %117
  invoke void @__cxa_end_catch()
          to label %122 unwind label %128

122:                                              ; preds = %121, %111
  %123 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %124 unwind label %128

124:                                              ; preds = %122
  br i1 %123, label %125, label %130

125:                                              ; preds = %124
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !15
  br label %130

126:                                              ; preds = %117
  %127 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %135 unwind label %230

128:                                              ; preds = %130, %122, %121
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %135

130:                                              ; preds = %125, %124
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %131 unwind label %128

131:                                              ; preds = %130
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #7
  %132 = add nuw i64 %.05696, 1
  %133 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %0) #7
  %134 = icmp ult i64 %132, %133
  br i1 %134, label %.lr.ph98, label %._crit_edge99, !llvm.loop !16

135:                                              ; preds = %126, %128
  %.pn86 = phi { ptr, i32 } [ %129, %128 ], [ %127, %126 ]
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #7
  br label %136

136:                                              ; preds = %135, %116
  %.pn86.pn = phi { ptr, i32 } [ %.pn86, %135 ], [ %.pn84, %116 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %13) #7
  br label %229

137:                                              ; preds = %._crit_edge99
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %138 = call noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120) %2)
  invoke void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %18, i64 noundef 0, i64 noundef %138)
          to label %.preheader93 unwind label %143

139:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  %140 = call noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %2)
  %.not = icmp eq i64 %140, 0
  br i1 %.not, label %227, label %182

141:                                              ; preds = %._crit_edge99
  %142 = landingpad { ptr, i32 }
          cleanup
  br label %228

143:                                              ; preds = %137
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %186

.preheader93:                                     ; preds = %137, %178
  %.055100 = phi i64 [ %179, %178 ], [ 0, %137 ]
  %145 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr noundef nonnull align 8 dereferenceable(2504) %17)
          to label %146 unwind label %155

146:                                              ; preds = %.preheader93
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull @.str)
          to label %147 unwind label %157

147:                                              ; preds = %146
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %19, i32 noundef 1036, ptr noundef nonnull @.str.209, i32 noundef 55, ptr noundef nonnull @.str.213, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(24) %20)
          to label %148 unwind label %159

148:                                              ; preds = %147
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %21) #7
  %149 = invoke noundef i64 @_ZNK5xcdat10bit_vector4rankEm(ptr noundef nonnull align 8 dereferenceable(120) %2, i64 noundef %145)
          to label %150 unwind label %162

150:                                              ; preds = %148
  store i64 %149, ptr %21, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %22) #7
  %151 = invoke noundef i64 @_Z10rank_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %145)
          to label %152 unwind label %164

152:                                              ; preds = %150
  store i64 %151, ptr %22, align 8, !tbaa !7
  %153 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %19, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %154 unwind label %164

154:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  br label %169

155:                                              ; preds = %.preheader93
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %186

157:                                              ; preds = %146
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %161

159:                                              ; preds = %147
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %161

161:                                              ; preds = %159, %157
  %.pn75 = phi { ptr, i32 } [ %160, %159 ], [ %158, %157 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %181

162:                                              ; preds = %148
  %163 = landingpad { ptr, i32 }
          catch ptr null
  br label %166

164:                                              ; preds = %152, %150
  %165 = landingpad { ptr, i32 }
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %22) #7
  br label %166

166:                                              ; preds = %164, %162
  %.pn77 = phi { ptr, i32 } [ %165, %164 ], [ %163, %162 ]
  %.12 = extractvalue { ptr, i32 } %.pn77, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %21) #7
  %167 = call ptr @__cxa_begin_catch(ptr %.12) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %19)
          to label %168 unwind label %173

168:                                              ; preds = %166
  invoke void @__cxa_end_catch()
          to label %169 unwind label %175

169:                                              ; preds = %168, %154
  %170 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %19)
          to label %171 unwind label %175

171:                                              ; preds = %169
  br i1 %170, label %172, label %177

172:                                              ; preds = %171
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !17
  br label %177

173:                                              ; preds = %166
  %174 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %180 unwind label %230

175:                                              ; preds = %177, %169, %168
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %180

177:                                              ; preds = %172, %171
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %19)
          to label %178 unwind label %175

178:                                              ; preds = %177
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %19) #7
  %179 = add nuw nsw i64 %.055100, 1
  %exitcond.not = icmp eq i64 %179, 100
  br i1 %exitcond.not, label %139, label %.preheader93, !llvm.loop !18

180:                                              ; preds = %173, %175
  %.pn78 = phi { ptr, i32 } [ %176, %175 ], [ %174, %173 ]
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %19) #7
  br label %181

181:                                              ; preds = %180, %161
  %.pn78.pn = phi { ptr, i32 } [ %.pn78, %180 ], [ %.pn75, %161 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %19) #7
  br label %186

182:                                              ; preds = %139
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  %183 = call noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120) %2)
  %184 = add i64 %183, -1
  invoke void @_ZNSt24uniform_int_distributionImEC2Emm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef 0, i64 noundef %184)
          to label %.preheader unwind label %187

185:                                              ; preds = %222
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %227

186:                                              ; preds = %155, %181, %143
  %.pn78.pn.pn.pn = phi { ptr, i32 } [ %144, %143 ], [ %.pn78.pn, %181 ], [ %156, %155 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %228

187:                                              ; preds = %182
  %188 = landingpad { ptr, i32 }
          cleanup
  br label %226

.preheader:                                       ; preds = %182, %222
  %.031101 = phi i64 [ %223, %222 ], [ 0, %182 ]
  %189 = invoke noundef i64 @_ZNSt24uniform_int_distributionImEclISt23mersenne_twister_engineImLm64ELm312ELm156ELm31ELm13043109905998158313ELm29ELm6148914691236517205ELm17ELm8202884508482404352ELm37ELm18444473444759240704ELm43ELm6364136223846793005EEEEmRT_(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(2504) %17)
          to label %190 unwind label %199

190:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %25) #7
  invoke void @_ZN7doctest6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull @.str)
          to label %191 unwind label %201

191:                                              ; preds = %190
  invoke void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(144) %24, i32 noundef 1036, ptr noundef nonnull @.str.209, i32 noundef 62, ptr noundef nonnull @.str.214, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(24) %25)
          to label %192 unwind label %203

192:                                              ; preds = %191
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %26) #7
  %193 = invoke noundef i64 @_ZNK5xcdat10bit_vector6selectEm(ptr noundef nonnull align 8 dereferenceable(120) %2, i64 noundef %189)
          to label %194 unwind label %206

194:                                              ; preds = %192
  store i64 %193, ptr %26, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %27) #7
  %195 = invoke noundef i64 @_Z12select_naiveRKSt6vectorIbSaIbEEm(ptr noundef nonnull align 8 dereferenceable(40) %0, i64 noundef %189)
          to label %196 unwind label %208

196:                                              ; preds = %194
  store i64 %195, ptr %27, align 8, !tbaa !7
  %197 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144) %24, ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull align 8 dereferenceable(8) %27)
          to label %198 unwind label %208

198:                                              ; preds = %196
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  br label %213

199:                                              ; preds = %.preheader
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %226

201:                                              ; preds = %190
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %205

203:                                              ; preds = %191
  %204 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7doctest6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %25) #7
  br label %205

205:                                              ; preds = %203, %201
  %.pn67 = phi { ptr, i32 } [ %204, %203 ], [ %202, %201 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %25) #7
  br label %225

206:                                              ; preds = %192
  %207 = landingpad { ptr, i32 }
          catch ptr null
  br label %210

208:                                              ; preds = %196, %194
  %209 = landingpad { ptr, i32 }
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %27) #7
  br label %210

210:                                              ; preds = %208, %206
  %.pn69 = phi { ptr, i32 } [ %209, %208 ], [ %207, %206 ]
  %.18 = extractvalue { ptr, i32 } %.pn69, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %26) #7
  %211 = call ptr @__cxa_begin_catch(ptr %.18) #7
  invoke void @_ZN7doctest6detail13ResultBuilder18translateExceptionEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %212 unwind label %217

212:                                              ; preds = %210
  invoke void @__cxa_end_catch()
          to label %213 unwind label %219

213:                                              ; preds = %212, %198
  %214 = invoke noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder3logEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %215 unwind label %219

215:                                              ; preds = %213
  br i1 %214, label %216, label %221

216:                                              ; preds = %215
  call void asm sideeffect "int $$3\0A", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !19
  br label %221

217:                                              ; preds = %210
  %218 = landingpad { ptr, i32 }
          cleanup
  invoke void @__cxa_end_catch()
          to label %224 unwind label %230

219:                                              ; preds = %221, %213, %212
  %220 = landingpad { ptr, i32 }
          cleanup
  br label %224

221:                                              ; preds = %216, %215
  invoke void @_ZNK7doctest6detail13ResultBuilder5reactEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %222 unwind label %219

222:                                              ; preds = %221
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #7
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %24) #7
  %223 = add nuw nsw i64 %.031101, 1
  %exitcond104.not = icmp eq i64 %223, 100
  br i1 %exitcond104.not, label %185, label %.preheader, !llvm.loop !20

224:                                              ; preds = %217, %219
  %.pn70 = phi { ptr, i32 } [ %220, %219 ], [ %218, %217 ]
  call void @_ZN7doctest10AssertDataD2Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #7
  br label %225

225:                                              ; preds = %224, %205
  %.pn70.pn = phi { ptr, i32 } [ %.pn70, %224 ], [ %.pn67, %205 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %24) #7
  br label %226

226:                                              ; preds = %199, %225, %187
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %188, %187 ], [ %.pn70.pn, %225 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  br label %228

227:                                              ; preds = %185, %139
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %17) #7
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #7
  ret void

228:                                              ; preds = %226, %186, %141
  %.pn78.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn78.pn.pn.pn, %186 ], [ %.pn70.pn.pn.pn, %226 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 2504, ptr nonnull %17) #7
  br label %229

229:                                              ; preds = %228, %136, %102, %79, %50
  %.pn89.pn.pn = phi { ptr, i32 } [ %.pn89.pn, %50 ], [ %.pn86.pn, %136 ], [ %.pn78.pn.pn.pn.pn, %228 ], [ %.pn64.pn, %102 ], [ %.pn59.pn, %79 ]
  call void @_ZN5xcdat10bit_vectorD2Ev(ptr noundef nonnull align 8 dereferenceable(120) %2) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn89.pn.pn

230:                                              ; preds = %217, %173, %126, %94, %65
  %231 = landingpad { ptr, i32 }
          catch ptr null
  %232 = extractvalue { ptr, i32 } %231, 0
  call void @__clang_call_terminate(ptr %232) #8
  unreachable
}

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5xcdat10bit_vector7builder7set_bitEmb(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5xcdat10bit_vectorC2ERNS0_7builderEbb(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(40), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(120) ptr @_ZN5xcdat10bit_vectoraSEOS0_(ptr noundef nonnull align 8 dereferenceable(120), ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress noinline uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EmmEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector4sizeEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector8num_onesEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress noinline uwtable
declare dso_local noundef zeroext i1 @_ZN7doctest6detail13ResultBuilder13binary_assertILi0EbbEEbRKT0_RKT1_(ptr noundef nonnull align 8 dereferenceable(144), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK5xcdat10bit_vectorixEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector4rankEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i64 @_ZNK5xcdat10bit_vector6selectEm(ptr noundef nonnull align 8 dereferenceable(120), i64 noundef) local_unnamed_addr #6 align 2

declare void @_ZN7doctest6StringD1Ev(ptr) local_unnamed_addr

declare void @_ZN7doctest6StringC1EPKc(ptr, ptr) local_unnamed_addr

declare void @_ZN7doctest6detail13ResultBuilderC1ENS_10assertType4EnumEPKciS5_S5_RKNS_6StringE(ptr, i32, ptr, i32, ptr, ptr, ptr) local_unnamed_addr

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{i64 2153886258}
!12 = !{i64 2153892054}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !9, i64 0}
!15 = !{i64 2153893694}
!16 = distinct !{!16, !6}
!17 = !{i64 2153895419}
!18 = distinct !{!18, !6}
!19 = !{i64 2153897164}
!20 = distinct !{!20, !6}


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