; LLVM IR from zsiciarz/aquila :: tests/functions.ll (ZNK14SuiteFunctions26TestIsPowerOf2ForNonPowers7RunImplEv)

; 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.UnitTest::TestDetails" = type <{ ptr, ptr, ptr, i32, i8, [3 x i8] }>
%"class.UnitTest::MemoryOutStream" = type { %"class.std::__cxx11::basic_ostringstream.base", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [39 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

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv() #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv() #1

declare void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(29), i32 noundef) unnamed_addr #1

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

declare ptr @__cxa_begin_catch(ptr)

declare void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(29), ptr noundef) #1

declare void @__cxa_end_catch()

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5

declare noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144)) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK14SuiteFunctions26TestIsPowerOf2ForNonPowers7RunImplEv(ptr noundef nonnull align 8 dereferenceable(49) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"class.UnitTest::TestDetails", align 8
  %6 = alloca %"class.UnitTest::TestDetails", align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %9 = alloca %"class.UnitTest::TestDetails", align 8
  %10 = alloca %"class.UnitTest::TestDetails", align 8
  %11 = alloca %"class.UnitTest::TestDetails", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %14 = alloca %"class.UnitTest::TestDetails", align 8
  %15 = alloca %"class.UnitTest::TestDetails", align 8
  %16 = alloca %"class.UnitTest::TestDetails", align 8
  %17 = alloca ptr, align 8
  %18 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %19 = alloca %"class.UnitTest::TestDetails", align 8
  %20 = alloca %"class.UnitTest::TestDetails", align 8
  %21 = alloca %"class.UnitTest::TestDetails", align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %24 = alloca %"class.UnitTest::TestDetails", align 8
  %25 = alloca %"class.UnitTest::TestDetails", align 8
  %26 = alloca %"class.UnitTest::TestDetails", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %29 = alloca %"class.UnitTest::TestDetails", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %30 = load ptr, ptr %2, align 8
  br label %31

31:                                               ; preds = %1
  %32 = invoke noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 0)
          to label %33 unwind label %46

33:                                               ; preds = %31
  %34 = xor i1 %32, true
  %35 = invoke noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %34)
          to label %36 unwind label %46

36:                                               ; preds = %33
  br i1 %35, label %111, label %37

37:                                               ; preds = %36
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %39 unwind label %46

39:                                               ; preds = %37
  %40 = load ptr, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #8
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %42 unwind label %50

42:                                               ; preds = %39
  %43 = load ptr, ptr %41, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %5, ptr noundef nonnull align 8 dereferenceable(29) %43, i32 noundef 71)
          to label %44 unwind label %50

44:                                               ; preds = %42
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %40, ptr noundef nonnull align 8 dereferenceable(29) %5, ptr noundef @.str.35)
          to label %45 unwind label %50

45:                                               ; preds = %44
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #8
  br label %111

46:                                               ; preds = %37, %33, %31
  %47 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %3, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %4, align 4
  br label %54

50:                                               ; preds = %44, %42, %39
  %51 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %3, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #8
  br label %54

54:                                               ; preds = %50, %46
  %55 = load i32, ptr %4, align 4
  %56 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %57 = icmp eq i32 %55, %56
  br i1 %57, label %58, label %100

58:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %59 = load ptr, ptr %3, align 8
  %60 = call ptr @__cxa_begin_catch(ptr %59) #8
  store ptr %60, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %8) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %61 unwind label %122

61:                                               ; preds = %58
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef @.str.4)
          to label %63 unwind label %126

63:                                               ; preds = %61
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %64, align 8, !tbaa !9
  %66 = getelementptr inbounds ptr, ptr %65, i64 2
  %67 = load ptr, ptr %66, align 8
  %68 = call noundef ptr %67(ptr noundef nonnull align 8 dereferenceable(8) %64) #8
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef %68)
          to label %70 unwind label %126

70:                                               ; preds = %63
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef @.str.37)
          to label %72 unwind label %126

72:                                               ; preds = %70
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %74 unwind label %126

74:                                               ; preds = %72
  %75 = load ptr, ptr %73, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  %76 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %77 unwind label %130

77:                                               ; preds = %74
  %78 = load ptr, ptr %76, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef nonnull align 8 dereferenceable(29) %78, i32 noundef 71)
          to label %79 unwind label %130

79:                                               ; preds = %77
  %80 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %81 unwind label %130

81:                                               ; preds = %79
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %75, ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef %80)
          to label %82 unwind label %130

82:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %8) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %83

83:                                               ; preds = %111, %110, %82
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = invoke noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 3)
          to label %87 unwind label %137

87:                                               ; preds = %85
  %88 = xor i1 %86, true
  %89 = invoke noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %88)
          to label %90 unwind label %137

90:                                               ; preds = %87
  br i1 %89, label %202, label %91

91:                                               ; preds = %90
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %93 unwind label %137

93:                                               ; preds = %91
  %94 = load ptr, ptr %92, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #8
  %95 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %96 unwind label %141

96:                                               ; preds = %93
  %97 = load ptr, ptr %95, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %10, ptr noundef nonnull align 8 dereferenceable(29) %97, i32 noundef 72)
          to label %98 unwind label %141

98:                                               ; preds = %96
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %94, ptr noundef nonnull align 8 dereferenceable(29) %10, ptr noundef @.str.38)
          to label %99 unwind label %141

99:                                               ; preds = %98
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  br label %202

100:                                              ; preds = %54
  %101 = load ptr, ptr %3, align 8
  %102 = call ptr @__cxa_begin_catch(ptr %101) #8
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %104 unwind label %112

104:                                              ; preds = %100
  %105 = load ptr, ptr %103, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #8
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %107 unwind label %116

107:                                              ; preds = %104
  %108 = load ptr, ptr %106, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef nonnull align 8 dereferenceable(29) %108, i32 noundef 71)
          to label %109 unwind label %116

109:                                              ; preds = %107
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %105, ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef @.str.36)
          to label %110 unwind label %116

110:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  call void @__cxa_end_catch()
  br label %83

111:                                              ; preds = %45, %36
  br label %83

112:                                              ; preds = %100
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %3, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %4, align 4
  br label %120

116:                                              ; preds = %109, %107, %104
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %3, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #8
  br label %120

120:                                              ; preds = %116, %112
  invoke void @__cxa_end_catch()
          to label %121 unwind label %491

121:                                              ; preds = %120
  br label %486

122:                                              ; preds = %58
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %3, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %4, align 4
  br label %135

126:                                              ; preds = %72, %70, %63, %61
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %3, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %4, align 4
  br label %134

130:                                              ; preds = %81, %79, %77, %74
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %3, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  br label %134

134:                                              ; preds = %130, %126
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
  br label %135

135:                                              ; preds = %134, %122
  call void @llvm.lifetime.end.p0(i64 408, ptr %8) #8
  invoke void @__cxa_end_catch()
          to label %136 unwind label %491

136:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %486

137:                                              ; preds = %91, %87, %85
  %138 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %3, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %4, align 4
  br label %145

141:                                              ; preds = %98, %96, %93
  %142 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %3, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #8
  br label %145

145:                                              ; preds = %141, %137
  %146 = load i32, ptr %4, align 4
  %147 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %148 = icmp eq i32 %146, %147
  br i1 %148, label %149, label %191

149:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %150 = load ptr, ptr %3, align 8
  %151 = call ptr @__cxa_begin_catch(ptr %150) #8
  store ptr %151, ptr %12, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %13) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %152 unwind label %213

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.4)
          to label %154 unwind label %217

154:                                              ; preds = %152
  %155 = load ptr, ptr %12, align 8, !tbaa !5
  %156 = load ptr, ptr %155, align 8, !tbaa !9
  %157 = getelementptr inbounds ptr, ptr %156, i64 2
  %158 = load ptr, ptr %157, align 8
  %159 = call noundef ptr %158(ptr noundef nonnull align 8 dereferenceable(8) %155) #8
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %153, ptr noundef %159)
          to label %161 unwind label %217

161:                                              ; preds = %154
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %160, ptr noundef @.str.40)
          to label %163 unwind label %217

163:                                              ; preds = %161
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %165 unwind label %217

165:                                              ; preds = %163
  %166 = load ptr, ptr %164, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %14) #8
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %168 unwind label %221

168:                                              ; preds = %165
  %169 = load ptr, ptr %167, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull align 8 dereferenceable(29) %169, i32 noundef 72)
          to label %170 unwind label %221

170:                                              ; preds = %168
  %171 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %13)
          to label %172 unwind label %221

172:                                              ; preds = %170
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %166, ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef %171)
          to label %173 unwind label %221

173:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %13) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %174

174:                                              ; preds = %202, %201, %173
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  %177 = invoke noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 15)
          to label %178 unwind label %228

178:                                              ; preds = %176
  %179 = xor i1 %177, true
  %180 = invoke noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %179)
          to label %181 unwind label %228

181:                                              ; preds = %178
  br i1 %180, label %293, label %182

182:                                              ; preds = %181
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %184 unwind label %228

184:                                              ; preds = %182
  %185 = load ptr, ptr %183, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #8
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %187 unwind label %232

187:                                              ; preds = %184
  %188 = load ptr, ptr %186, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef nonnull align 8 dereferenceable(29) %188, i32 noundef 73)
          to label %189 unwind label %232

189:                                              ; preds = %187
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %185, ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef @.str.41)
          to label %190 unwind label %232

190:                                              ; preds = %189
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %293

191:                                              ; preds = %145
  %192 = load ptr, ptr %3, align 8
  %193 = call ptr @__cxa_begin_catch(ptr %192) #8
  %194 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %195 unwind label %203

195:                                              ; preds = %191
  %196 = load ptr, ptr %194, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #8
  %197 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %198 unwind label %207

198:                                              ; preds = %195
  %199 = load ptr, ptr %197, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %11, ptr noundef nonnull align 8 dereferenceable(29) %199, i32 noundef 72)
          to label %200 unwind label %207

200:                                              ; preds = %198
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %196, ptr noundef nonnull align 8 dereferenceable(29) %11, ptr noundef @.str.39)
          to label %201 unwind label %207

201:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  call void @__cxa_end_catch()
  br label %174

202:                                              ; preds = %99, %90
  br label %174

203:                                              ; preds = %191
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %3, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %4, align 4
  br label %211

207:                                              ; preds = %200, %198, %195
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %3, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #8
  br label %211

211:                                              ; preds = %207, %203
  invoke void @__cxa_end_catch()
          to label %212 unwind label %491

212:                                              ; preds = %211
  br label %486

213:                                              ; preds = %149
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %3, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %4, align 4
  br label %226

217:                                              ; preds = %163, %161, %154, %152
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %3, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %4, align 4
  br label %225

221:                                              ; preds = %172, %170, %168, %165
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %3, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %14) #8
  br label %225

225:                                              ; preds = %221, %217
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %13) #8
  br label %226

226:                                              ; preds = %225, %213
  call void @llvm.lifetime.end.p0(i64 408, ptr %13) #8
  invoke void @__cxa_end_catch()
          to label %227 unwind label %491

227:                                              ; preds = %226
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %486

228:                                              ; preds = %182, %178, %176
  %229 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %230 = extractvalue { ptr, i32 } %229, 0
  store ptr %230, ptr %3, align 8
  %231 = extractvalue { ptr, i32 } %229, 1
  store i32 %231, ptr %4, align 4
  br label %236

232:                                              ; preds = %189, %187, %184
  %233 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %234 = extractvalue { ptr, i32 } %233, 0
  store ptr %234, ptr %3, align 8
  %235 = extractvalue { ptr, i32 } %233, 1
  store i32 %235, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #8
  br label %236

236:                                              ; preds = %232, %228
  %237 = load i32, ptr %4, align 4
  %238 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %239 = icmp eq i32 %237, %238
  br i1 %239, label %240, label %282

240:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %241 = load ptr, ptr %3, align 8
  %242 = call ptr @__cxa_begin_catch(ptr %241) #8
  store ptr %242, ptr %17, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %18) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %243 unwind label %304

243:                                              ; preds = %240
  %244 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str.4)
          to label %245 unwind label %308

245:                                              ; preds = %243
  %246 = load ptr, ptr %17, align 8, !tbaa !5
  %247 = load ptr, ptr %246, align 8, !tbaa !9
  %248 = getelementptr inbounds ptr, ptr %247, i64 2
  %249 = load ptr, ptr %248, align 8
  %250 = call noundef ptr %249(ptr noundef nonnull align 8 dereferenceable(8) %246) #8
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %244, ptr noundef %250)
          to label %252 unwind label %308

252:                                              ; preds = %245
  %253 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @.str.43)
          to label %254 unwind label %308

254:                                              ; preds = %252
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %256 unwind label %308

256:                                              ; preds = %254
  %257 = load ptr, ptr %255, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %259 unwind label %312

259:                                              ; preds = %256
  %260 = load ptr, ptr %258, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef nonnull align 8 dereferenceable(29) %260, i32 noundef 73)
          to label %261 unwind label %312

261:                                              ; preds = %259
  %262 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %18)
          to label %263 unwind label %312

263:                                              ; preds = %261
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %257, ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef %262)
          to label %264 unwind label %312

264:                                              ; preds = %263
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %18) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %265

265:                                              ; preds = %293, %292, %264
  br label %266

266:                                              ; preds = %265
  br label %267

267:                                              ; preds = %266
  %268 = invoke noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 247)
          to label %269 unwind label %319

269:                                              ; preds = %267
  %270 = xor i1 %268, true
  %271 = invoke noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %270)
          to label %272 unwind label %319

272:                                              ; preds = %269
  br i1 %271, label %384, label %273

273:                                              ; preds = %272
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %275 unwind label %319

275:                                              ; preds = %273
  %276 = load ptr, ptr %274, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #8
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %278 unwind label %323

278:                                              ; preds = %275
  %279 = load ptr, ptr %277, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %20, ptr noundef nonnull align 8 dereferenceable(29) %279, i32 noundef 74)
          to label %280 unwind label %323

280:                                              ; preds = %278
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %276, ptr noundef nonnull align 8 dereferenceable(29) %20, ptr noundef @.str.44)
          to label %281 unwind label %323

281:                                              ; preds = %280
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %384

282:                                              ; preds = %236
  %283 = load ptr, ptr %3, align 8
  %284 = call ptr @__cxa_begin_catch(ptr %283) #8
  %285 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %286 unwind label %294

286:                                              ; preds = %282
  %287 = load ptr, ptr %285, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #8
  %288 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %289 unwind label %298

289:                                              ; preds = %286
  %290 = load ptr, ptr %288, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %16, ptr noundef nonnull align 8 dereferenceable(29) %290, i32 noundef 73)
          to label %291 unwind label %298

291:                                              ; preds = %289
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %287, ptr noundef nonnull align 8 dereferenceable(29) %16, ptr noundef @.str.42)
          to label %292 unwind label %298

292:                                              ; preds = %291
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  call void @__cxa_end_catch()
  br label %265

293:                                              ; preds = %190, %181
  br label %265

294:                                              ; preds = %282
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %3, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %4, align 4
  br label %302

298:                                              ; preds = %291, %289, %286
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %3, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #8
  br label %302

302:                                              ; preds = %298, %294
  invoke void @__cxa_end_catch()
          to label %303 unwind label %491

303:                                              ; preds = %302
  br label %486

304:                                              ; preds = %240
  %305 = landingpad { ptr, i32 }
          cleanup
  %306 = extractvalue { ptr, i32 } %305, 0
  store ptr %306, ptr %3, align 8
  %307 = extractvalue { ptr, i32 } %305, 1
  store i32 %307, ptr %4, align 4
  br label %317

308:                                              ; preds = %254, %252, %245, %243
  %309 = landingpad { ptr, i32 }
          cleanup
  %310 = extractvalue { ptr, i32 } %309, 0
  store ptr %310, ptr %3, align 8
  %311 = extractvalue { ptr, i32 } %309, 1
  store i32 %311, ptr %4, align 4
  br label %316

312:                                              ; preds = %263, %261, %259, %256
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %3, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %316

316:                                              ; preds = %312, %308
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %18) #8
  br label %317

317:                                              ; preds = %316, %304
  call void @llvm.lifetime.end.p0(i64 408, ptr %18) #8
  invoke void @__cxa_end_catch()
          to label %318 unwind label %491

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

319:                                              ; preds = %273, %269, %267
  %320 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %3, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %4, align 4
  br label %327

323:                                              ; preds = %280, %278, %275
  %324 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %3, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %327

327:                                              ; preds = %323, %319
  %328 = load i32, ptr %4, align 4
  %329 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %330 = icmp eq i32 %328, %329
  br i1 %330, label %331, label %373

331:                                              ; preds = %327
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %332 = load ptr, ptr %3, align 8
  %333 = call ptr @__cxa_begin_catch(ptr %332) #8
  store ptr %333, ptr %22, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %23) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %23)
          to label %334 unwind label %395

334:                                              ; preds = %331
  %335 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str.4)
          to label %336 unwind label %399

336:                                              ; preds = %334
  %337 = load ptr, ptr %22, align 8, !tbaa !5
  %338 = load ptr, ptr %337, align 8, !tbaa !9
  %339 = getelementptr inbounds ptr, ptr %338, i64 2
  %340 = load ptr, ptr %339, align 8
  %341 = call noundef ptr %340(ptr noundef nonnull align 8 dereferenceable(8) %337) #8
  %342 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %335, ptr noundef %341)
          to label %343 unwind label %399

343:                                              ; preds = %336
  %344 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %342, ptr noundef @.str.46)
          to label %345 unwind label %399

345:                                              ; preds = %343
  %346 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %347 unwind label %399

347:                                              ; preds = %345
  %348 = load ptr, ptr %346, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #8
  %349 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %350 unwind label %403

350:                                              ; preds = %347
  %351 = load ptr, ptr %349, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %24, ptr noundef nonnull align 8 dereferenceable(29) %351, i32 noundef 74)
          to label %352 unwind label %403

352:                                              ; preds = %350
  %353 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %23)
          to label %354 unwind label %403

354:                                              ; preds = %352
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %348, ptr noundef nonnull align 8 dereferenceable(29) %24, ptr noundef %353)
          to label %355 unwind label %403

355:                                              ; preds = %354
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %23) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %23) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %356

356:                                              ; preds = %384, %383, %355
  br label %357

357:                                              ; preds = %356
  br label %358

358:                                              ; preds = %357
  %359 = invoke noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 32769)
          to label %360 unwind label %410

360:                                              ; preds = %358
  %361 = xor i1 %359, true
  %362 = invoke noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %361)
          to label %363 unwind label %410

363:                                              ; preds = %360
  br i1 %362, label %460, label %364

364:                                              ; preds = %363
  %365 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %366 unwind label %410

366:                                              ; preds = %364
  %367 = load ptr, ptr %365, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #8
  %368 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %369 unwind label %414

369:                                              ; preds = %366
  %370 = load ptr, ptr %368, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %25, ptr noundef nonnull align 8 dereferenceable(29) %370, i32 noundef 75)
          to label %371 unwind label %414

371:                                              ; preds = %369
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %367, ptr noundef nonnull align 8 dereferenceable(29) %25, ptr noundef @.str.47)
          to label %372 unwind label %414

372:                                              ; preds = %371
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %460

373:                                              ; preds = %327
  %374 = load ptr, ptr %3, align 8
  %375 = call ptr @__cxa_begin_catch(ptr %374) #8
  %376 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %377 unwind label %385

377:                                              ; preds = %373
  %378 = load ptr, ptr %376, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #8
  %379 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %380 unwind label %389

380:                                              ; preds = %377
  %381 = load ptr, ptr %379, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %21, ptr noundef nonnull align 8 dereferenceable(29) %381, i32 noundef 74)
          to label %382 unwind label %389

382:                                              ; preds = %380
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %378, ptr noundef nonnull align 8 dereferenceable(29) %21, ptr noundef @.str.45)
          to label %383 unwind label %389

383:                                              ; preds = %382
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  call void @__cxa_end_catch()
  br label %356

384:                                              ; preds = %281, %272
  br label %356

385:                                              ; preds = %373
  %386 = landingpad { ptr, i32 }
          cleanup
  %387 = extractvalue { ptr, i32 } %386, 0
  store ptr %387, ptr %3, align 8
  %388 = extractvalue { ptr, i32 } %386, 1
  store i32 %388, ptr %4, align 4
  br label %393

389:                                              ; preds = %382, %380, %377
  %390 = landingpad { ptr, i32 }
          cleanup
  %391 = extractvalue { ptr, i32 } %390, 0
  store ptr %391, ptr %3, align 8
  %392 = extractvalue { ptr, i32 } %390, 1
  store i32 %392, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #8
  br label %393

393:                                              ; preds = %389, %385
  invoke void @__cxa_end_catch()
          to label %394 unwind label %491

394:                                              ; preds = %393
  br label %486

395:                                              ; preds = %331
  %396 = landingpad { ptr, i32 }
          cleanup
  %397 = extractvalue { ptr, i32 } %396, 0
  store ptr %397, ptr %3, align 8
  %398 = extractvalue { ptr, i32 } %396, 1
  store i32 %398, ptr %4, align 4
  br label %408

399:                                              ; preds = %345, %343, %336, %334
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %3, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %4, align 4
  br label %407

403:                                              ; preds = %354, %352, %350, %347
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %3, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #8
  br label %407

407:                                              ; preds = %403, %399
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %23) #8
  br label %408

408:                                              ; preds = %407, %395
  call void @llvm.lifetime.end.p0(i64 408, ptr %23) #8
  invoke void @__cxa_end_catch()
          to label %409 unwind label %491

409:                                              ; preds = %408
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %486

410:                                              ; preds = %364, %360, %358
  %411 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %412 = extractvalue { ptr, i32 } %411, 0
  store ptr %412, ptr %3, align 8
  %413 = extractvalue { ptr, i32 } %411, 1
  store i32 %413, ptr %4, align 4
  br label %418

414:                                              ; preds = %371, %369, %366
  %415 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %416 = extractvalue { ptr, i32 } %415, 0
  store ptr %416, ptr %3, align 8
  %417 = extractvalue { ptr, i32 } %415, 1
  store i32 %417, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #8
  br label %418

418:                                              ; preds = %414, %410
  %419 = load i32, ptr %4, align 4
  %420 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %421 = icmp eq i32 %419, %420
  br i1 %421, label %422, label %449

422:                                              ; preds = %418
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  %423 = load ptr, ptr %3, align 8
  %424 = call ptr @__cxa_begin_catch(ptr %423) #8
  store ptr %424, ptr %27, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %28) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28)
          to label %425 unwind label %471

425:                                              ; preds = %422
  %426 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str.4)
          to label %427 unwind label %475

427:                                              ; preds = %425
  %428 = load ptr, ptr %27, align 8, !tbaa !5
  %429 = load ptr, ptr %428, align 8, !tbaa !9
  %430 = getelementptr inbounds ptr, ptr %429, i64 2
  %431 = load ptr, ptr %430, align 8
  %432 = call noundef ptr %431(ptr noundef nonnull align 8 dereferenceable(8) %428) #8
  %433 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %426, ptr noundef %432)
          to label %434 unwind label %475

434:                                              ; preds = %427
  %435 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %433, ptr noundef @.str.49)
          to label %436 unwind label %475

436:                                              ; preds = %434
  %437 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %438 unwind label %475

438:                                              ; preds = %436
  %439 = load ptr, ptr %437, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #8
  %440 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %441 unwind label %479

441:                                              ; preds = %438
  %442 = load ptr, ptr %440, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %29, ptr noundef nonnull align 8 dereferenceable(29) %442, i32 noundef 75)
          to label %443 unwind label %479

443:                                              ; preds = %441
  %444 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %28)
          to label %445 unwind label %479

445:                                              ; preds = %443
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %439, ptr noundef nonnull align 8 dereferenceable(29) %29, ptr noundef %444)
          to label %446 unwind label %479

446:                                              ; preds = %445
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %28) #8
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %447

447:                                              ; preds = %460, %459, %446
  br label %448

448:                                              ; preds = %447
  ret void

449:                                              ; preds = %418
  %450 = load ptr, ptr %3, align 8
  %451 = call ptr @__cxa_begin_catch(ptr %450) #8
  %452 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %453 unwind label %461

453:                                              ; preds = %449
  %454 = load ptr, ptr %452, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %455 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %456 unwind label %465

456:                                              ; preds = %453
  %457 = load ptr, ptr %455, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %26, ptr noundef nonnull align 8 dereferenceable(29) %457, i32 noundef 75)
          to label %458 unwind label %465

458:                                              ; preds = %456
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %454, ptr noundef nonnull align 8 dereferenceable(29) %26, ptr noundef @.str.48)
          to label %459 unwind label %465

459:                                              ; preds = %458
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @__cxa_end_catch()
  br label %447

460:                                              ; preds = %372, %363
  br label %447

461:                                              ; preds = %449
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %3, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %4, align 4
  br label %469

465:                                              ; preds = %458, %456, %453
  %466 = landingpad { ptr, i32 }
          cleanup
  %467 = extractvalue { ptr, i32 } %466, 0
  store ptr %467, ptr %3, align 8
  %468 = extractvalue { ptr, i32 } %466, 1
  store i32 %468, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %469

469:                                              ; preds = %465, %461
  invoke void @__cxa_end_catch()
          to label %470 unwind label %491

470:                                              ; preds = %469
  br label %486

471:                                              ; preds = %422
  %472 = landingpad { ptr, i32 }
          cleanup
  %473 = extractvalue { ptr, i32 } %472, 0
  store ptr %473, ptr %3, align 8
  %474 = extractvalue { ptr, i32 } %472, 1
  store i32 %474, ptr %4, align 4
  br label %484

475:                                              ; preds = %436, %434, %427, %425
  %476 = landingpad { ptr, i32 }
          cleanup
  %477 = extractvalue { ptr, i32 } %476, 0
  store ptr %477, ptr %3, align 8
  %478 = extractvalue { ptr, i32 } %476, 1
  store i32 %478, ptr %4, align 4
  br label %483

479:                                              ; preds = %445, %443, %441, %438
  %480 = landingpad { ptr, i32 }
          cleanup
  %481 = extractvalue { ptr, i32 } %480, 0
  store ptr %481, ptr %3, align 8
  %482 = extractvalue { ptr, i32 } %480, 1
  store i32 %482, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #8
  br label %483

483:                                              ; preds = %479, %475
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %28) #8
  br label %484

484:                                              ; preds = %483, %471
  call void @llvm.lifetime.end.p0(i64 408, ptr %28) #8
  invoke void @__cxa_end_catch()
          to label %485 unwind label %491

485:                                              ; preds = %484
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  br label %486

486:                                              ; preds = %485, %470, %409, %394, %318, %303, %227, %212, %136, %121
  %487 = load ptr, ptr %3, align 8
  %488 = load i32, ptr %4, align 4
  %489 = insertvalue { ptr, i32 } poison, ptr %487, 0
  %490 = insertvalue { ptr, i32 } %489, i32 %488, 1
  resume { ptr, i32 } %490

491:                                              ; preds = %484, %469, %408, %393, %317, %302, %226, %211, %135, %120
  %492 = landingpad { ptr, i32 }
          catch ptr null
  %493 = extractvalue { ptr, i32 } %492, 0
  call void @__clang_call_terminate(ptr %493) #9
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nounwind memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"vtable pointer", !8, i64 0}


; 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.UnitTest::TestDetails" = type <{ ptr, ptr, ptr, i32, i8, [3 x i8] }>
%"class.UnitTest::MemoryOutStream" = type { %"class.std::__cxx11::basic_ostringstream.base", %"class.std::__cxx11::basic_string", %"class.std::basic_ios" }
%"class.std::__cxx11::basic_ostringstream.base" = type { %"class.std::basic_ostream.base", %"class.std::__cxx11::basic_stringbuf" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }

@_ZTISt9exception = external constant ptr
@.str.4 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.37 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.38 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.43 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [39 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

declare i32 @__gxx_personality_v0(...)

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv() local_unnamed_addr #1

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv() local_unnamed_addr #1

declare void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29), ptr noundef nonnull align 8 dereferenceable(29), i32 noundef) unnamed_addr #1

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #2

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 8 dereferenceable(29), ptr noundef) local_unnamed_addr #1

declare void @__cxa_end_catch() local_unnamed_addr

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5

declare noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144)) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK14SuiteFunctions26TestIsPowerOf2ForNonPowers7RunImplEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(49) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.UnitTest::TestDetails", align 8
  %3 = alloca %"class.UnitTest::TestDetails", align 8
  %4 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %5 = alloca %"class.UnitTest::TestDetails", align 8
  %6 = alloca %"class.UnitTest::TestDetails", align 8
  %7 = alloca %"class.UnitTest::TestDetails", align 8
  %8 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %9 = alloca %"class.UnitTest::TestDetails", align 8
  %10 = alloca %"class.UnitTest::TestDetails", align 8
  %11 = alloca %"class.UnitTest::TestDetails", align 8
  %12 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %13 = alloca %"class.UnitTest::TestDetails", align 8
  %14 = alloca %"class.UnitTest::TestDetails", align 8
  %15 = alloca %"class.UnitTest::TestDetails", align 8
  %16 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %17 = alloca %"class.UnitTest::TestDetails", align 8
  %18 = alloca %"class.UnitTest::TestDetails", align 8
  %19 = alloca %"class.UnitTest::TestDetails", align 8
  %20 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %21 = alloca %"class.UnitTest::TestDetails", align 8
  %22 = tail call noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 0)
  %23 = xor i1 %22, true
  %24 = tail call noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %23)
  br i1 %24, label %64, label %25

25:                                               ; preds = %1
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %27 unwind label %34

27:                                               ; preds = %25
  %28 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  %29 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %30 unwind label %36

30:                                               ; preds = %27
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %2, ptr noundef nonnull align 8 dereferenceable(29) %31, i32 noundef 71)
          to label %32 unwind label %36

32:                                               ; preds = %30
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %28, ptr noundef nonnull align 8 dereferenceable(29) %2, ptr noundef nonnull @.str.35)
          to label %33 unwind label %36

33:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  br label %64

34:                                               ; preds = %25
  %35 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %38

36:                                               ; preds = %32, %30, %27
  %37 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  br label %38

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.022 = extractvalue { ptr, i32 } %.pn, 1
  %39 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %40 = icmp eq i32 %.022, %39
  %41 = call ptr @__cxa_begin_catch(ptr %.0) #8
  br i1 %40, label %42, label %77

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %4) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %43 unwind label %91

43:                                               ; preds = %42
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.4)
          to label %45 unwind label %93

45:                                               ; preds = %43
  %46 = load ptr, ptr %41, align 8, !tbaa !9
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef ptr %48(ptr noundef nonnull align 8 dereferenceable(8) %41) #8
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef %49)
          to label %51 unwind label %93

51:                                               ; preds = %45
  %52 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.37)
          to label %53 unwind label %93

53:                                               ; preds = %51
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %55 unwind label %93

55:                                               ; preds = %53
  %56 = load ptr, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %58 unwind label %95

58:                                               ; preds = %55
  %59 = load ptr, ptr %57, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %5, ptr noundef nonnull align 8 dereferenceable(29) %59, i32 noundef 71)
          to label %60 unwind label %95

60:                                               ; preds = %58
  %61 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %4)
          to label %62 unwind label %95

62:                                               ; preds = %60
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %56, ptr noundef nonnull align 8 dereferenceable(29) %5, ptr noundef %61)
          to label %63 unwind label %95

63:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %4) #8
  call void @__cxa_end_catch()
  br label %64

64:                                               ; preds = %1, %33, %85, %63
  %65 = call noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 3)
  %66 = xor i1 %65, true
  %67 = call noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %66)
  br i1 %67, label %129, label %68

68:                                               ; preds = %64
  %69 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %70 unwind label %99

70:                                               ; preds = %68
  %71 = load ptr, ptr %69, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %73 unwind label %101

73:                                               ; preds = %70
  %74 = load ptr, ptr %72, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef nonnull align 8 dereferenceable(29) %74, i32 noundef 72)
          to label %75 unwind label %101

75:                                               ; preds = %73
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %71, ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef nonnull @.str.38)
          to label %76 unwind label %101

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %129

77:                                               ; preds = %38
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %79 unwind label %86

79:                                               ; preds = %77
  %80 = load ptr, ptr %78, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  %81 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %82 unwind label %88

82:                                               ; preds = %79
  %83 = load ptr, ptr %81, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %3, ptr noundef nonnull align 8 dereferenceable(29) %83, i32 noundef 71)
          to label %84 unwind label %88

84:                                               ; preds = %82
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %80, ptr noundef nonnull align 8 dereferenceable(29) %3, ptr noundef nonnull @.str.36)
          to label %85 unwind label %88

85:                                               ; preds = %84
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @__cxa_end_catch()
  br label %64

86:                                               ; preds = %77
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %90

88:                                               ; preds = %84, %82, %79
  %89 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  br label %90

90:                                               ; preds = %88, %86
  %.pn44 = phi { ptr, i32 } [ %89, %88 ], [ %87, %86 ]
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

91:                                               ; preds = %42
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %98

93:                                               ; preds = %53, %51, %45, %43
  %94 = landingpad { ptr, i32 }
          cleanup
  br label %97

95:                                               ; preds = %62, %60, %58, %55
  %96 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  br label %97

97:                                               ; preds = %95, %93
  %.pn46 = phi { ptr, i32 } [ %96, %95 ], [ %94, %93 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %4) #8
  br label %98

98:                                               ; preds = %97, %91
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %97 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %4) #8
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

99:                                               ; preds = %68
  %100 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %103

101:                                              ; preds = %75, %73, %70
  %102 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  br label %103

103:                                              ; preds = %101, %99
  %.pn49 = phi { ptr, i32 } [ %102, %101 ], [ %100, %99 ]
  %.4 = extractvalue { ptr, i32 } %.pn49, 0
  %.426 = extractvalue { ptr, i32 } %.pn49, 1
  %104 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %105 = icmp eq i32 %.426, %104
  %106 = call ptr @__cxa_begin_catch(ptr %.4) #8
  br i1 %105, label %107, label %142

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %8) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %108 unwind label %156

108:                                              ; preds = %107
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.4)
          to label %110 unwind label %158

110:                                              ; preds = %108
  %111 = load ptr, ptr %106, align 8, !tbaa !9
  %112 = getelementptr inbounds i8, ptr %111, i64 16
  %113 = load ptr, ptr %112, align 8
  %114 = call noundef ptr %113(ptr noundef nonnull align 8 dereferenceable(8) %106) #8
  %115 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef %114)
          to label %116 unwind label %158

116:                                              ; preds = %110
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull @.str.40)
          to label %118 unwind label %158

118:                                              ; preds = %116
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %120 unwind label %158

120:                                              ; preds = %118
  %121 = load ptr, ptr %119, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #8
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %123 unwind label %160

123:                                              ; preds = %120
  %124 = load ptr, ptr %122, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef nonnull align 8 dereferenceable(29) %124, i32 noundef 72)
          to label %125 unwind label %160

125:                                              ; preds = %123
  %126 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %127 unwind label %160

127:                                              ; preds = %125
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %121, ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef %126)
          to label %128 unwind label %160

128:                                              ; preds = %127
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %8) #8
  call void @__cxa_end_catch()
  br label %129

129:                                              ; preds = %64, %76, %150, %128
  %130 = call noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 15)
  %131 = xor i1 %130, true
  %132 = call noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %131)
  br i1 %132, label %194, label %133

133:                                              ; preds = %129
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %135 unwind label %164

135:                                              ; preds = %133
  %136 = load ptr, ptr %134, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #8
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %138 unwind label %166

138:                                              ; preds = %135
  %139 = load ptr, ptr %137, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %10, ptr noundef nonnull align 8 dereferenceable(29) %139, i32 noundef 73)
          to label %140 unwind label %166

140:                                              ; preds = %138
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %136, ptr noundef nonnull align 8 dereferenceable(29) %10, ptr noundef nonnull @.str.41)
          to label %141 unwind label %166

141:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %194

142:                                              ; preds = %103
  %143 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %144 unwind label %151

144:                                              ; preds = %142
  %145 = load ptr, ptr %143, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %146 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %147 unwind label %153

147:                                              ; preds = %144
  %148 = load ptr, ptr %146, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %7, ptr noundef nonnull align 8 dereferenceable(29) %148, i32 noundef 72)
          to label %149 unwind label %153

149:                                              ; preds = %147
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %145, ptr noundef nonnull align 8 dereferenceable(29) %7, ptr noundef nonnull @.str.39)
          to label %150 unwind label %153

150:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  call void @__cxa_end_catch()
  br label %129

151:                                              ; preds = %142
  %152 = landingpad { ptr, i32 }
          cleanup
  br label %155

153:                                              ; preds = %149, %147, %144
  %154 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %155

155:                                              ; preds = %153, %151
  %.pn51 = phi { ptr, i32 } [ %154, %153 ], [ %152, %151 ]
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

156:                                              ; preds = %107
  %157 = landingpad { ptr, i32 }
          cleanup
  br label %163

158:                                              ; preds = %118, %116, %110, %108
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %162

160:                                              ; preds = %127, %125, %123, %120
  %161 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #8
  br label %162

162:                                              ; preds = %160, %158
  %.pn53 = phi { ptr, i32 } [ %161, %160 ], [ %159, %158 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #8
  br label %163

163:                                              ; preds = %162, %156
  %.pn53.pn = phi { ptr, i32 } [ %.pn53, %162 ], [ %157, %156 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %8) #8
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

164:                                              ; preds = %133
  %165 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %168

166:                                              ; preds = %140, %138, %135
  %167 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #8
  br label %168

168:                                              ; preds = %166, %164
  %.pn56 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  %.8 = extractvalue { ptr, i32 } %.pn56, 0
  %.830 = extractvalue { ptr, i32 } %.pn56, 1
  %169 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %170 = icmp eq i32 %.830, %169
  %171 = call ptr @__cxa_begin_catch(ptr %.8) #8
  br i1 %170, label %172, label %207

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %12) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %12)
          to label %173 unwind label %221

173:                                              ; preds = %172
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.4)
          to label %175 unwind label %223

175:                                              ; preds = %173
  %176 = load ptr, ptr %171, align 8, !tbaa !9
  %177 = getelementptr inbounds i8, ptr %176, i64 16
  %178 = load ptr, ptr %177, align 8
  %179 = call noundef ptr %178(ptr noundef nonnull align 8 dereferenceable(8) %171) #8
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %174, ptr noundef %179)
          to label %181 unwind label %223

181:                                              ; preds = %175
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %180, ptr noundef nonnull @.str.43)
          to label %183 unwind label %223

183:                                              ; preds = %181
  %184 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %185 unwind label %223

185:                                              ; preds = %183
  %186 = load ptr, ptr %184, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #8
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %188 unwind label %225

188:                                              ; preds = %185
  %189 = load ptr, ptr %187, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %13, ptr noundef nonnull align 8 dereferenceable(29) %189, i32 noundef 73)
          to label %190 unwind label %225

190:                                              ; preds = %188
  %191 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %12)
          to label %192 unwind label %225

192:                                              ; preds = %190
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %186, ptr noundef nonnull align 8 dereferenceable(29) %13, ptr noundef %191)
          to label %193 unwind label %225

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %12) #8
  call void @__cxa_end_catch()
  br label %194

194:                                              ; preds = %129, %141, %215, %193
  %195 = call noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 247)
  %196 = xor i1 %195, true
  %197 = call noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %196)
  br i1 %197, label %259, label %198

198:                                              ; preds = %194
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %200 unwind label %229

200:                                              ; preds = %198
  %201 = load ptr, ptr %199, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #8
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %203 unwind label %231

203:                                              ; preds = %200
  %204 = load ptr, ptr %202, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull align 8 dereferenceable(29) %204, i32 noundef 74)
          to label %205 unwind label %231

205:                                              ; preds = %203
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %201, ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull @.str.44)
          to label %206 unwind label %231

206:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %259

207:                                              ; preds = %168
  %208 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %209 unwind label %216

209:                                              ; preds = %207
  %210 = load ptr, ptr %208, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #8
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %212 unwind label %218

212:                                              ; preds = %209
  %213 = load ptr, ptr %211, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %11, ptr noundef nonnull align 8 dereferenceable(29) %213, i32 noundef 73)
          to label %214 unwind label %218

214:                                              ; preds = %212
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %210, ptr noundef nonnull align 8 dereferenceable(29) %11, ptr noundef nonnull @.str.42)
          to label %215 unwind label %218

215:                                              ; preds = %214
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  call void @__cxa_end_catch()
  br label %194

216:                                              ; preds = %207
  %217 = landingpad { ptr, i32 }
          cleanup
  br label %220

218:                                              ; preds = %214, %212, %209
  %219 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #8
  br label %220

220:                                              ; preds = %218, %216
  %.pn58 = phi { ptr, i32 } [ %219, %218 ], [ %217, %216 ]
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

221:                                              ; preds = %172
  %222 = landingpad { ptr, i32 }
          cleanup
  br label %228

223:                                              ; preds = %183, %181, %175, %173
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %227

225:                                              ; preds = %192, %190, %188, %185
  %226 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #8
  br label %227

227:                                              ; preds = %225, %223
  %.pn60 = phi { ptr, i32 } [ %226, %225 ], [ %224, %223 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %12) #8
  br label %228

228:                                              ; preds = %227, %221
  %.pn60.pn = phi { ptr, i32 } [ %.pn60, %227 ], [ %222, %221 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %12) #8
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

229:                                              ; preds = %198
  %230 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %233

231:                                              ; preds = %205, %203, %200
  %232 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #8
  br label %233

233:                                              ; preds = %231, %229
  %.pn63 = phi { ptr, i32 } [ %232, %231 ], [ %230, %229 ]
  %.12 = extractvalue { ptr, i32 } %.pn63, 0
  %.1234 = extractvalue { ptr, i32 } %.pn63, 1
  %234 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %235 = icmp eq i32 %.1234, %234
  %236 = call ptr @__cxa_begin_catch(ptr %.12) #8
  br i1 %235, label %237, label %272

237:                                              ; preds = %233
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %16) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %238 unwind label %286

238:                                              ; preds = %237
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull @.str.4)
          to label %240 unwind label %288

240:                                              ; preds = %238
  %241 = load ptr, ptr %236, align 8, !tbaa !9
  %242 = getelementptr inbounds i8, ptr %241, i64 16
  %243 = load ptr, ptr %242, align 8
  %244 = call noundef ptr %243(ptr noundef nonnull align 8 dereferenceable(8) %236) #8
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef %244)
          to label %246 unwind label %288

246:                                              ; preds = %240
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %245, ptr noundef nonnull @.str.46)
          to label %248 unwind label %288

248:                                              ; preds = %246
  %249 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %250 unwind label %288

250:                                              ; preds = %248
  %251 = load ptr, ptr %249, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #8
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %253 unwind label %290

253:                                              ; preds = %250
  %254 = load ptr, ptr %252, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %17, ptr noundef nonnull align 8 dereferenceable(29) %254, i32 noundef 74)
          to label %255 unwind label %290

255:                                              ; preds = %253
  %256 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %16)
          to label %257 unwind label %290

257:                                              ; preds = %255
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %251, ptr noundef nonnull align 8 dereferenceable(29) %17, ptr noundef %256)
          to label %258 unwind label %290

258:                                              ; preds = %257
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %16) #8
  call void @__cxa_end_catch()
  br label %259

259:                                              ; preds = %194, %206, %280, %258
  %260 = call noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef 32769)
  %261 = xor i1 %260, true
  %262 = call noundef zeroext i1 @_ZN8UnitTest5CheckIbEEbT_(i1 noundef zeroext %261)
  br i1 %262, label %324, label %263

263:                                              ; preds = %259
  %264 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %265 unwind label %294

265:                                              ; preds = %263
  %266 = load ptr, ptr %264, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %18) #8
  %267 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %268 unwind label %296

268:                                              ; preds = %265
  %269 = load ptr, ptr %267, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %18, ptr noundef nonnull align 8 dereferenceable(29) %269, i32 noundef 75)
          to label %270 unwind label %296

270:                                              ; preds = %268
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %266, ptr noundef nonnull align 8 dereferenceable(29) %18, ptr noundef nonnull @.str.47)
          to label %271 unwind label %296

271:                                              ; preds = %270
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %324

272:                                              ; preds = %233
  %273 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %274 unwind label %281

274:                                              ; preds = %272
  %275 = load ptr, ptr %273, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %277 unwind label %283

277:                                              ; preds = %274
  %278 = load ptr, ptr %276, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef nonnull align 8 dereferenceable(29) %278, i32 noundef 74)
          to label %279 unwind label %283

279:                                              ; preds = %277
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %275, ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef nonnull @.str.45)
          to label %280 unwind label %283

280:                                              ; preds = %279
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @__cxa_end_catch()
  br label %259

281:                                              ; preds = %272
  %282 = landingpad { ptr, i32 }
          cleanup
  br label %285

283:                                              ; preds = %279, %277, %274
  %284 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  br label %285

285:                                              ; preds = %283, %281
  %.pn65 = phi { ptr, i32 } [ %284, %283 ], [ %282, %281 ]
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

286:                                              ; preds = %237
  %287 = landingpad { ptr, i32 }
          cleanup
  br label %293

288:                                              ; preds = %248, %246, %240, %238
  %289 = landingpad { ptr, i32 }
          cleanup
  br label %292

290:                                              ; preds = %257, %255, %253, %250
  %291 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #8
  br label %292

292:                                              ; preds = %290, %288
  %.pn67 = phi { ptr, i32 } [ %291, %290 ], [ %289, %288 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %16) #8
  br label %293

293:                                              ; preds = %292, %286
  %.pn67.pn = phi { ptr, i32 } [ %.pn67, %292 ], [ %287, %286 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %16) #8
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

294:                                              ; preds = %263
  %295 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %298

296:                                              ; preds = %270, %268, %265
  %297 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %298

298:                                              ; preds = %296, %294
  %.pn70 = phi { ptr, i32 } [ %297, %296 ], [ %295, %294 ]
  %.16 = extractvalue { ptr, i32 } %.pn70, 0
  %.1638 = extractvalue { ptr, i32 } %.pn70, 1
  %299 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %300 = icmp eq i32 %.1638, %299
  %301 = call ptr @__cxa_begin_catch(ptr %.16) #8
  br i1 %300, label %302, label %325

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %20) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %20)
          to label %303 unwind label %339

303:                                              ; preds = %302
  %304 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.4)
          to label %305 unwind label %341

305:                                              ; preds = %303
  %306 = load ptr, ptr %301, align 8, !tbaa !9
  %307 = getelementptr inbounds i8, ptr %306, i64 16
  %308 = load ptr, ptr %307, align 8
  %309 = call noundef ptr %308(ptr noundef nonnull align 8 dereferenceable(8) %301) #8
  %310 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %304, ptr noundef %309)
          to label %311 unwind label %341

311:                                              ; preds = %305
  %312 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %310, ptr noundef nonnull @.str.49)
          to label %313 unwind label %341

313:                                              ; preds = %311
  %314 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %315 unwind label %341

315:                                              ; preds = %313
  %316 = load ptr, ptr %314, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #8
  %317 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %318 unwind label %343

318:                                              ; preds = %315
  %319 = load ptr, ptr %317, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %21, ptr noundef nonnull align 8 dereferenceable(29) %319, i32 noundef 75)
          to label %320 unwind label %343

320:                                              ; preds = %318
  %321 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %20)
          to label %322 unwind label %343

322:                                              ; preds = %320
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %316, ptr noundef nonnull align 8 dereferenceable(29) %21, ptr noundef %321)
          to label %323 unwind label %343

323:                                              ; preds = %322
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %20) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %20) #8
  call void @__cxa_end_catch()
  br label %324

324:                                              ; preds = %259, %271, %323, %333
  ret void

325:                                              ; preds = %298
  %326 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %327 unwind label %334

327:                                              ; preds = %325
  %328 = load ptr, ptr %326, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #8
  %329 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %330 unwind label %336

330:                                              ; preds = %327
  %331 = load ptr, ptr %329, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef nonnull align 8 dereferenceable(29) %331, i32 noundef 75)
          to label %332 unwind label %336

332:                                              ; preds = %330
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %328, ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef nonnull @.str.48)
          to label %333 unwind label %336

333:                                              ; preds = %332
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #8
  call void @__cxa_end_catch()
  br label %324

334:                                              ; preds = %325
  %335 = landingpad { ptr, i32 }
          cleanup
  br label %338

336:                                              ; preds = %332, %330, %327
  %337 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #8
  br label %338

338:                                              ; preds = %336, %334
  %.pn72 = phi { ptr, i32 } [ %337, %336 ], [ %335, %334 ]
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

339:                                              ; preds = %302
  %340 = landingpad { ptr, i32 }
          cleanup
  br label %346

341:                                              ; preds = %313, %311, %305, %303
  %342 = landingpad { ptr, i32 }
          cleanup
  br label %345

343:                                              ; preds = %322, %320, %318, %315
  %344 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #8
  br label %345

345:                                              ; preds = %343, %341
  %.pn74 = phi { ptr, i32 } [ %344, %343 ], [ %342, %341 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %20) #8
  br label %346

346:                                              ; preds = %345, %339
  %.pn74.pn = phi { ptr, i32 } [ %.pn74, %345 ], [ %340, %339 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %20) #8
  invoke void @__cxa_end_catch()
          to label %347 unwind label %348

347:                                              ; preds = %346, %293, %228, %163, %98, %338, %285, %220, %155, %90
  %.pn74.pn.pn = phi { ptr, i32 } [ %.pn72, %338 ], [ %.pn65, %285 ], [ %.pn58, %220 ], [ %.pn51, %155 ], [ %.pn44, %90 ], [ %.pn46.pn, %98 ], [ %.pn53.pn, %163 ], [ %.pn60.pn, %228 ], [ %.pn67.pn, %293 ], [ %.pn74.pn, %346 ]
  resume { ptr, i32 } %.pn74.pn.pn

348:                                              ; preds = %346, %338, %293, %285, %228, %220, %163, %155, %98, %90
  %349 = landingpad { ptr, i32 }
          catch ptr null
  %350 = extractvalue { ptr, i32 } %349, 0
  call void @__clang_call_terminate(ptr %350) #9
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6Aquila10isPowerOf2IiEEbT_(i32 noundef) local_unnamed_addr #7

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nofree nosync nounwind memory(none) }
attributes #3 = { 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!"vtable pointer", !8, i64 0}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass