; LLVM IR from zsiciarz/aquila :: tests/source/generator (SquareGenerator)

; 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.Aquila::SquareGenerator" = type { %"class.Aquila::Generator", double }
%"class.Aquila::Generator" = type { %"class.Aquila::SignalSource", double, double, double }
%"class.Aquila::SignalSource" = type { ptr, %"class.std::vector", double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Aquila::SignalSource::iterator" = type { ptr, i64 }
%"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 }

@_ZN20SuiteSquareGenerator3genE = external dso_local global %"class.Aquila::SquareGenerator", align 8
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setAmplitudeEd(ptr noundef nonnull align 8 dereferenceable(64), double noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setFrequencyEd(ptr noundef nonnull align 8 dereferenceable(64), double noundef) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i64 } @_ZSt11max_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr, i64, ptr, i64) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(29)) #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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) #4

declare void @__cxa_end_catch()

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 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) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i64 } @_ZSt11min_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr, i64, ptr, i64) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK20SuiteSquareGenerator21TestUnipolarAmplitude7RunImplEv(ptr noundef nonnull align 8 dereferenceable(49) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.Aquila::SignalSource", align 8
  %4 = alloca double, align 8
  %5 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %6 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.UnitTest::TestDetails", align 8
  %12 = alloca %"class.UnitTest::TestDetails", align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %15 = alloca %"class.UnitTest::TestDetails", align 8
  %16 = alloca double, align 8
  %17 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %18 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %19 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %20 = alloca i32, align 4
  %21 = alloca %"class.UnitTest::TestDetails", align 8
  %22 = alloca %"class.UnitTest::TestDetails", align 8
  %23 = alloca ptr, align 8
  %24 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %25 = alloca %"class.UnitTest::TestDetails", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %26 = load ptr, ptr %2, align 8
  %27 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setAmplitudeEd(ptr noundef nonnull align 8 dereferenceable(64) @_ZN20SuiteSquareGenerator3genE, double noundef 2.500000e+02)
  %28 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setFrequencyEd(ptr noundef nonnull align 8 dereferenceable(64) %27, double noundef 1.000000e+01)
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds ptr, ptr %29, i64 8
  %31 = load ptr, ptr %30, align 8
  call void %31(ptr noundef nonnull align 8 dereferenceable(64) %28, i64 noundef 1000)
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #7
  call void @_ZN6AquilaplERKNS_12SignalSourceEd(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) @_ZN20SuiteSquareGenerator3genE, double noundef 2.500000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  %32 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %33 unwind label %69

33:                                               ; preds = %1
  %34 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %35 = extractvalue { ptr, i64 } %32, 0
  store ptr %35, ptr %34, align 8
  %36 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %37 = extractvalue { ptr, i64 } %32, 1
  store i64 %37, ptr %36, align 8
  %38 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %39 unwind label %69

39:                                               ; preds = %33
  %40 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %41 = extractvalue { ptr, i64 } %38, 0
  store ptr %41, ptr %40, align 8
  %42 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %43 = extractvalue { ptr, i64 } %38, 1
  store i64 %43, ptr %42, align 8
  %44 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 0
  %45 = load ptr, ptr %44, align 8
  %46 = getelementptr inbounds { ptr, i64 }, ptr %6, i32 0, i32 1
  %47 = load i64, ptr %46, align 8
  %48 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %49 = load ptr, ptr %48, align 8
  %50 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %51 = load i64, ptr %50, align 8
  %52 = invoke { ptr, i64 } @_ZSt11max_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr %45, i64 %47, ptr %49, i64 %51)
          to label %53 unwind label %69

53:                                               ; preds = %39
  %54 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 0
  %55 = extractvalue { ptr, i64 } %52, 0
  store ptr %55, ptr %54, align 8
  %56 = getelementptr inbounds { ptr, i64 }, ptr %5, i32 0, i32 1
  %57 = extractvalue { ptr, i64 } %52, 1
  store i64 %57, ptr %56, align 8
  %58 = invoke noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %59 unwind label %69

59:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  store double %58, ptr %4, align 8, !tbaa !11
  br label %60

60:                                               ; preds = %59
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %62 unwind label %73

62:                                               ; preds = %60
  %63 = load ptr, ptr %61, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 500, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #7
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %65 unwind label %77

65:                                               ; preds = %62
  %66 = load ptr, ptr %64, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %11, ptr noundef nonnull align 8 dereferenceable(29) %66, i32 noundef 27)
          to label %67 unwind label %77

67:                                               ; preds = %65
  invoke void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %63, ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(29) %11)
          to label %68 unwind label %77

68:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %111

69:                                               ; preds = %53, %39, %33, %1
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  br label %289

73:                                               ; preds = %60
  %74 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %81

77:                                               ; preds = %67, %65, %62
  %78 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %81

81:                                               ; preds = %77, %73
  %82 = load i32, ptr %8, align 4
  %83 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %84 = icmp eq i32 %82, %83
  br i1 %84, label %85, label %151

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %86 = load ptr, ptr %7, align 8
  %87 = call ptr @__cxa_begin_catch(ptr %86) #7
  store ptr %87, ptr %13, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %14) #7
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %14)
          to label %88 unwind label %177

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef @.str.3)
          to label %90 unwind label %181

90:                                               ; preds = %88
  %91 = load ptr, ptr %13, align 8, !tbaa !5
  %92 = load ptr, ptr %91, align 8, !tbaa !9
  %93 = getelementptr inbounds ptr, ptr %92, i64 2
  %94 = load ptr, ptr %93, align 8
  %95 = call noundef ptr %94(ptr noundef nonnull align 8 dereferenceable(8) %91) #7
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %89, ptr noundef %95)
          to label %97 unwind label %181

97:                                               ; preds = %90
  %98 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @.str.10)
          to label %99 unwind label %181

99:                                               ; preds = %97
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %101 unwind label %181

101:                                              ; preds = %99
  %102 = load ptr, ptr %100, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %104 unwind label %185

104:                                              ; preds = %101
  %105 = load ptr, ptr %103, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef nonnull align 8 dereferenceable(29) %105, i32 noundef 27)
          to label %106 unwind label %185

106:                                              ; preds = %104
  %107 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %14)
          to label %108 unwind label %185

108:                                              ; preds = %106
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %102, ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef %107)
          to label %109 unwind label %185

109:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %14) #7
  call void @llvm.lifetime.end.p0(i64 408, ptr %14) #7
  invoke void @__cxa_end_catch()
          to label %110 unwind label %191

110:                                              ; preds = %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %111

111:                                              ; preds = %162, %110, %68
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %114 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %115 unwind label %197

115:                                              ; preds = %113
  %116 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %117 = extractvalue { ptr, i64 } %114, 0
  store ptr %117, ptr %116, align 8
  %118 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %119 = extractvalue { ptr, i64 } %114, 1
  store i64 %119, ptr %118, align 8
  %120 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %121 unwind label %197

121:                                              ; preds = %115
  %122 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %123 = extractvalue { ptr, i64 } %120, 0
  store ptr %123, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %125 = extractvalue { ptr, i64 } %120, 1
  store i64 %125, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %127 = load ptr, ptr %126, align 8
  %128 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %129 = load i64, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %131 = load ptr, ptr %130, align 8
  %132 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %133 = load i64, ptr %132, align 8
  %134 = invoke { ptr, i64 } @_ZSt11min_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr %127, i64 %129, ptr %131, i64 %133)
          to label %135 unwind label %197

135:                                              ; preds = %121
  %136 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 0
  %137 = extractvalue { ptr, i64 } %134, 0
  store ptr %137, ptr %136, align 8
  %138 = getelementptr inbounds { ptr, i64 }, ptr %17, i32 0, i32 1
  %139 = extractvalue { ptr, i64 } %134, 1
  store i64 %139, ptr %138, align 8
  %140 = invoke noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %17)
          to label %141 unwind label %197

141:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  store double %140, ptr %16, align 8, !tbaa !11
  br label %142

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

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

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

149:                                              ; preds = %147
  invoke void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %145, ptr noundef nonnull align 4 dereferenceable(4) %20, ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(29) %21)
          to label %150 unwind label %205

150:                                              ; preds = %149
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %239

151:                                              ; preds = %81
  %152 = load ptr, ptr %7, align 8
  %153 = call ptr @__cxa_begin_catch(ptr %152) #7
  %154 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %155 unwind label %163

155:                                              ; preds = %151
  %156 = load ptr, ptr %154, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %158 unwind label %167

158:                                              ; preds = %155
  %159 = load ptr, ptr %157, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %12, ptr noundef nonnull align 8 dereferenceable(29) %159, i32 noundef 27)
          to label %160 unwind label %167

160:                                              ; preds = %158
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %156, ptr noundef nonnull align 8 dereferenceable(29) %12, ptr noundef @.str.9)
          to label %161 unwind label %167

161:                                              ; preds = %160
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  invoke void @__cxa_end_catch()
          to label %162 unwind label %171

162:                                              ; preds = %161
  br label %111

163:                                              ; preds = %151
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %7, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %8, align 4
  br label %175

167:                                              ; preds = %160, %158, %155
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %7, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  br label %175

171:                                              ; preds = %161
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %7, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %8, align 4
  br label %289

175:                                              ; preds = %167, %163
  invoke void @__cxa_end_catch()
          to label %176 unwind label %295

176:                                              ; preds = %175
  br label %289

177:                                              ; preds = %85
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %190

181:                                              ; preds = %99, %97, %90, %88
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %7, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %8, align 4
  br label %189

185:                                              ; preds = %108, %106, %104, %101
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %189

189:                                              ; preds = %185, %181
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %14) #7
  br label %190

190:                                              ; preds = %189, %177
  call void @llvm.lifetime.end.p0(i64 408, ptr %14) #7
  invoke void @__cxa_end_catch()
          to label %195 unwind label %295

191:                                              ; preds = %109
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %7, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %8, align 4
  br label %196

195:                                              ; preds = %190
  br label %196

196:                                              ; preds = %195, %191
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %289

197:                                              ; preds = %135, %121, %115, %113
  %198 = landingpad { ptr, i32 }
          cleanup
  %199 = extractvalue { ptr, i32 } %198, 0
  store ptr %199, ptr %7, align 8
  %200 = extractvalue { ptr, i32 } %198, 1
  store i32 %200, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  br label %288

201:                                              ; preds = %142
  %202 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %203 = extractvalue { ptr, i32 } %202, 0
  store ptr %203, ptr %7, align 8
  %204 = extractvalue { ptr, i32 } %202, 1
  store i32 %204, ptr %8, align 4
  br label %209

205:                                              ; preds = %149, %147, %144
  %206 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %7, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %209

209:                                              ; preds = %205, %201
  %210 = load i32, ptr %8, align 4
  %211 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #7
  %212 = icmp eq i32 %210, %211
  br i1 %212, label %213, label %242

213:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %214 = load ptr, ptr %7, align 8
  %215 = call ptr @__cxa_begin_catch(ptr %214) #7
  store ptr %215, ptr %23, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %24) #7
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %216 unwind label %268

216:                                              ; preds = %213
  %217 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef @.str.3)
          to label %218 unwind label %272

218:                                              ; preds = %216
  %219 = load ptr, ptr %23, align 8, !tbaa !5
  %220 = load ptr, ptr %219, align 8, !tbaa !9
  %221 = getelementptr inbounds ptr, ptr %220, i64 2
  %222 = load ptr, ptr %221, align 8
  %223 = call noundef ptr %222(ptr noundef nonnull align 8 dereferenceable(8) %219) #7
  %224 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %217, ptr noundef %223)
          to label %225 unwind label %272

225:                                              ; preds = %218
  %226 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef @.str.12)
          to label %227 unwind label %272

227:                                              ; preds = %225
  %228 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %229 unwind label %272

229:                                              ; preds = %227
  %230 = load ptr, ptr %228, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %232 unwind label %276

232:                                              ; preds = %229
  %233 = load ptr, ptr %231, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %25, ptr noundef nonnull align 8 dereferenceable(29) %233, i32 noundef 29)
          to label %234 unwind label %276

234:                                              ; preds = %232
  %235 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %24)
          to label %236 unwind label %276

236:                                              ; preds = %234
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %230, ptr noundef nonnull align 8 dereferenceable(29) %25, ptr noundef %235)
          to label %237 unwind label %276

237:                                              ; preds = %236
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #7
  call void @llvm.lifetime.end.p0(i64 408, ptr %24) #7
  invoke void @__cxa_end_catch()
          to label %238 unwind label %282

238:                                              ; preds = %237
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %239

239:                                              ; preds = %253, %238, %150
  br label %240

240:                                              ; preds = %239
  br label %241

241:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #7
  ret void

242:                                              ; preds = %209
  %243 = load ptr, ptr %7, align 8
  %244 = call ptr @__cxa_begin_catch(ptr %243) #7
  %245 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %246 unwind label %254

246:                                              ; preds = %242
  %247 = load ptr, ptr %245, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %249 unwind label %258

249:                                              ; preds = %246
  %250 = load ptr, ptr %248, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %22, ptr noundef nonnull align 8 dereferenceable(29) %250, i32 noundef 29)
          to label %251 unwind label %258

251:                                              ; preds = %249
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %247, ptr noundef nonnull align 8 dereferenceable(29) %22, ptr noundef @.str.11)
          to label %252 unwind label %258

252:                                              ; preds = %251
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  invoke void @__cxa_end_catch()
          to label %253 unwind label %262

253:                                              ; preds = %252
  br label %239

254:                                              ; preds = %242
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %7, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %8, align 4
  br label %266

258:                                              ; preds = %251, %249, %246
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %7, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  br label %266

262:                                              ; preds = %252
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %7, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %8, align 4
  br label %288

266:                                              ; preds = %258, %254
  invoke void @__cxa_end_catch()
          to label %267 unwind label %295

267:                                              ; preds = %266
  br label %288

268:                                              ; preds = %213
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %7, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %8, align 4
  br label %281

272:                                              ; preds = %227, %225, %218, %216
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %7, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %8, align 4
  br label %280

276:                                              ; preds = %236, %234, %232, %229
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %7, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %280

280:                                              ; preds = %276, %272
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %24) #7
  br label %281

281:                                              ; preds = %280, %268
  call void @llvm.lifetime.end.p0(i64 408, ptr %24) #7
  invoke void @__cxa_end_catch()
          to label %286 unwind label %295

282:                                              ; preds = %237
  %283 = landingpad { ptr, i32 }
          cleanup
  %284 = extractvalue { ptr, i32 } %283, 0
  store ptr %284, ptr %7, align 8
  %285 = extractvalue { ptr, i32 } %283, 1
  store i32 %285, ptr %8, align 4
  br label %287

286:                                              ; preds = %281
  br label %287

287:                                              ; preds = %286, %282
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br label %288

288:                                              ; preds = %287, %267, %262, %197
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %289

289:                                              ; preds = %288, %196, %176, %171, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #7
  br label %290

290:                                              ; preds = %289
  %291 = load ptr, ptr %7, align 8
  %292 = load i32, ptr %8, align 4
  %293 = insertvalue { ptr, i32 } poison, ptr %291, 0
  %294 = insertvalue { ptr, i32 } %293, i32 %292, 1
  resume { ptr, i32 } %294

295:                                              ; preds = %281, %266, %190, %175
  %296 = landingpad { ptr, i32 }
          catch ptr null
  %297 = extractvalue { ptr, i32 } %296, 0
  call void @__clang_call_terminate(ptr %297) #8
  unreachable
}

declare void @_ZN6AquilaplERKNS_12SignalSourceEd(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8, ptr noundef nonnull align 8 dereferenceable(40), double noundef) #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, 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.Aquila::SquareGenerator" = type { %"class.Aquila::Generator", double }
%"class.Aquila::Generator" = type { %"class.Aquila::SignalSource", double, double, double }
%"class.Aquila::SignalSource" = type { ptr, %"class.std::vector", double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Aquila::SignalSource::iterator" = type { ptr, i64 }
%"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 }

@_ZN20SuiteSquareGenerator3genE = external dso_local global %"class.Aquila::SquareGenerator", align 8
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setAmplitudeEd(ptr noundef nonnull align 8 dereferenceable(64), double noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setFrequencyEd(ptr noundef nonnull align 8 dereferenceable(64), double noundef) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i64 } @_ZSt11max_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr, i64, ptr, i64) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(29)) local_unnamed_addr #3

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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 #4

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 #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #3 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 #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { ptr, i64 } @_ZSt11min_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr, i64, ptr, i64) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK20SuiteSquareGenerator21TestUnipolarAmplitude7RunImplEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(49) %0) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.Aquila::SignalSource", align 8
  %3 = alloca double, align 8
  %4 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %5 = alloca i32, align 4
  %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 double, align 8
  %11 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.UnitTest::TestDetails", align 8
  %14 = alloca %"class.UnitTest::TestDetails", align 8
  %15 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %16 = alloca %"class.UnitTest::TestDetails", align 8
  %17 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setAmplitudeEd(ptr noundef nonnull align 8 dereferenceable(64) @_ZN20SuiteSquareGenerator3genE, double noundef 2.500000e+02)
  %18 = tail call noundef nonnull align 8 dereferenceable(64) ptr @_ZN6Aquila9Generator12setFrequencyEd(ptr noundef nonnull align 8 dereferenceable(64) %17, double noundef 1.000000e+01)
  %19 = load ptr, ptr %18, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 64
  %21 = load ptr, ptr %20, align 8
  tail call void %21(ptr noundef nonnull align 8 dereferenceable(64) %18, i64 noundef 1000)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #7
  call void @_ZN6AquilaplERKNS_12SignalSourceEd(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %2, ptr noundef nonnull align 8 dereferenceable(40) @_ZN20SuiteSquareGenerator3genE, double noundef 2.500000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %22 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %23 unwind label %45

23:                                               ; preds = %1
  %24 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %25 unwind label %45

25:                                               ; preds = %23
  %26 = extractvalue { ptr, i64 } %22, 1
  %27 = extractvalue { ptr, i64 } %22, 0
  %28 = extractvalue { ptr, i64 } %24, 0
  %29 = extractvalue { ptr, i64 } %24, 1
  %30 = invoke { ptr, i64 } @_ZSt11max_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr %27, i64 %26, ptr %28, i64 %29)
          to label %31 unwind label %45

31:                                               ; preds = %25
  %32 = extractvalue { ptr, i64 } %30, 0
  store ptr %32, ptr %4, align 8
  %33 = getelementptr inbounds i8, ptr %4, i64 8
  %34 = extractvalue { ptr, i64 } %30, 1
  store i64 %34, ptr %33, align 8
  %35 = invoke noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %4)
          to label %36 unwind label %45

36:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  store double %35, ptr %3, align 8, !tbaa !8
  %37 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %38 unwind label %47

38:                                               ; preds = %36
  %39 = load ptr, ptr %37, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 500, ptr %5, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %41 unwind label %49

41:                                               ; preds = %38
  %42 = load ptr, ptr %40, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %6, ptr noundef nonnull align 8 dereferenceable(29) %42, i32 noundef 27)
          to label %43 unwind label %49

43:                                               ; preds = %41
  invoke void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %39, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(29) %6)
          to label %44 unwind label %49

44:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %77

45:                                               ; preds = %31, %25, %23, %1
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  br label %187

47:                                               ; preds = %36
  %48 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %51

49:                                               ; preds = %43, %41, %38
  %50 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  br label %51

51:                                               ; preds = %49, %47
  %.pn = phi { ptr, i32 } [ %50, %49 ], [ %48, %47 ]
  %.0 = extractvalue { ptr, i32 } %.pn, 0
  %.016 = extractvalue { ptr, i32 } %.pn, 1
  %52 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %53 = icmp eq i32 %.016, %52
  %54 = call ptr @__cxa_begin_catch(ptr %.0) #7
  br i1 %53, label %55, label %101

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %8) #7
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %56 unwind label %117

56:                                               ; preds = %55
  %57 = 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.3)
          to label %58 unwind label %119

58:                                               ; preds = %56
  %59 = load ptr, ptr %54, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 16
  %61 = load ptr, ptr %60, align 8
  %62 = call noundef ptr %61(ptr noundef nonnull align 8 dereferenceable(8) %54) #7
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef %62)
          to label %64 unwind label %119

64:                                               ; preds = %58
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.10)
          to label %66 unwind label %119

66:                                               ; preds = %64
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %68 unwind label %119

68:                                               ; preds = %66
  %69 = load ptr, ptr %67, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %71 unwind label %121

71:                                               ; preds = %68
  %72 = load ptr, ptr %70, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef nonnull align 8 dereferenceable(29) %72, i32 noundef 27)
          to label %73 unwind label %121

73:                                               ; preds = %71
  %74 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %8)
          to label %75 unwind label %121

75:                                               ; preds = %73
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %69, ptr noundef nonnull align 8 dereferenceable(29) %9, ptr noundef %74)
          to label %76 unwind label %121

76:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #7
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %8) #7
  invoke void @__cxa_end_catch()
          to label %77 unwind label %125

77:                                               ; preds = %76, %109, %44
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  %78 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %79 unwind label %127

79:                                               ; preds = %77
  %80 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %81 unwind label %127

81:                                               ; preds = %79
  %82 = extractvalue { ptr, i64 } %78, 1
  %83 = extractvalue { ptr, i64 } %78, 0
  %84 = extractvalue { ptr, i64 } %80, 0
  %85 = extractvalue { ptr, i64 } %80, 1
  %86 = invoke { ptr, i64 } @_ZSt11min_elementIN6Aquila12SignalSource8iteratorEET_S3_S3_(ptr %83, i64 %82, ptr %84, i64 %85)
          to label %87 unwind label %127

87:                                               ; preds = %81
  %88 = extractvalue { ptr, i64 } %86, 0
  store ptr %88, ptr %11, align 8
  %89 = getelementptr inbounds i8, ptr %11, i64 8
  %90 = extractvalue { ptr, i64 } %86, 1
  store i64 %90, ptr %89, align 8
  %91 = invoke noundef double @_ZNK6Aquila12SignalSource8iteratordeEv(ptr noundef nonnull align 8 dereferenceable(16) %11)
          to label %92 unwind label %127

92:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  store double %91, ptr %10, align 8, !tbaa !8
  %93 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %94 unwind label %129

94:                                               ; preds = %92
  %95 = load ptr, ptr %93, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 0, ptr %12, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  %96 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %97 unwind label %131

97:                                               ; preds = %94
  %98 = load ptr, ptr %96, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %13, ptr noundef nonnull align 8 dereferenceable(29) %98, i32 noundef 29)
          to label %99 unwind label %131

99:                                               ; preds = %97
  invoke void @_ZN8UnitTest10CheckEqualIidEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %95, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(29) %13)
          to label %100 unwind label %131

100:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %159

101:                                              ; preds = %51
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %103 unwind label %110

103:                                              ; preds = %101
  %104 = load ptr, ptr %102, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  %105 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %106 unwind label %112

106:                                              ; preds = %103
  %107 = load ptr, ptr %105, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %7, ptr noundef nonnull align 8 dereferenceable(29) %107, i32 noundef 27)
          to label %108 unwind label %112

108:                                              ; preds = %106
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %104, ptr noundef nonnull align 8 dereferenceable(29) %7, ptr noundef nonnull @.str.9)
          to label %109 unwind label %112

109:                                              ; preds = %108
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  invoke void @__cxa_end_catch()
          to label %77 unwind label %114

110:                                              ; preds = %101
  %111 = landingpad { ptr, i32 }
          cleanup
  br label %116

112:                                              ; preds = %108, %106, %103
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %116

114:                                              ; preds = %109
  %115 = landingpad { ptr, i32 }
          cleanup
  br label %187

116:                                              ; preds = %112, %110
  %.pn29 = phi { ptr, i32 } [ %113, %112 ], [ %111, %110 ]
  invoke void @__cxa_end_catch()
          to label %187 unwind label %188

117:                                              ; preds = %55
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %124

119:                                              ; preds = %66, %64, %58, %56
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %75, %73, %71, %68
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %123

123:                                              ; preds = %121, %119
  %.pn31 = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %8) #7
  br label %124

124:                                              ; preds = %123, %117
  %.pn31.pn = phi { ptr, i32 } [ %.pn31, %123 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %8) #7
  invoke void @__cxa_end_catch()
          to label %187 unwind label %188

125:                                              ; preds = %76
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %187

127:                                              ; preds = %87, %81, %79, %77
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %186

129:                                              ; preds = %92
  %130 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %133

131:                                              ; preds = %99, %97, %94
  %132 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  br label %133

133:                                              ; preds = %131, %129
  %.pn36 = phi { ptr, i32 } [ %132, %131 ], [ %130, %129 ]
  %.5 = extractvalue { ptr, i32 } %.pn36, 0
  %.521 = extractvalue { ptr, i32 } %.pn36, 1
  %134 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #7
  %135 = icmp eq i32 %.521, %134
  %136 = call ptr @__cxa_begin_catch(ptr %.5) #7
  br i1 %135, label %137, label %160

137:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %15) #7
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15)
          to label %138 unwind label %176

138:                                              ; preds = %137
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull @.str.3)
          to label %140 unwind label %178

140:                                              ; preds = %138
  %141 = load ptr, ptr %136, align 8, !tbaa !5
  %142 = getelementptr inbounds i8, ptr %141, i64 16
  %143 = load ptr, ptr %142, align 8
  %144 = call noundef ptr %143(ptr noundef nonnull align 8 dereferenceable(8) %136) #7
  %145 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef %144)
          to label %146 unwind label %178

146:                                              ; preds = %140
  %147 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef nonnull @.str.12)
          to label %148 unwind label %178

148:                                              ; preds = %146
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %150 unwind label %178

150:                                              ; preds = %148
  %151 = load ptr, ptr %149, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  %152 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %153 unwind label %180

153:                                              ; preds = %150
  %154 = load ptr, ptr %152, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %16, ptr noundef nonnull align 8 dereferenceable(29) %154, i32 noundef 29)
          to label %155 unwind label %180

155:                                              ; preds = %153
  %156 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %15)
          to label %157 unwind label %180

157:                                              ; preds = %155
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %151, ptr noundef nonnull align 8 dereferenceable(29) %16, ptr noundef %156)
          to label %158 unwind label %180

158:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #7
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %15) #7
  invoke void @__cxa_end_catch()
          to label %159 unwind label %184

159:                                              ; preds = %158, %168, %100
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  ret void

160:                                              ; preds = %133
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %162 unwind label %169

162:                                              ; preds = %160
  %163 = load ptr, ptr %161, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %14) #7
  %164 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %165 unwind label %171

165:                                              ; preds = %162
  %166 = load ptr, ptr %164, align 8, !tbaa !11
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull align 8 dereferenceable(29) %166, i32 noundef 29)
          to label %167 unwind label %171

167:                                              ; preds = %165
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %163, ptr noundef nonnull align 8 dereferenceable(29) %14, ptr noundef nonnull @.str.11)
          to label %168 unwind label %171

168:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  invoke void @__cxa_end_catch()
          to label %159 unwind label %173

169:                                              ; preds = %160
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %175

171:                                              ; preds = %167, %165, %162
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %14) #7
  br label %175

173:                                              ; preds = %168
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %186

175:                                              ; preds = %171, %169
  %.pn38 = phi { ptr, i32 } [ %172, %171 ], [ %170, %169 ]
  invoke void @__cxa_end_catch()
          to label %186 unwind label %188

176:                                              ; preds = %137
  %177 = landingpad { ptr, i32 }
          cleanup
  br label %183

178:                                              ; preds = %148, %146, %140, %138
  %179 = landingpad { ptr, i32 }
          cleanup
  br label %182

180:                                              ; preds = %157, %155, %153, %150
  %181 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %182

182:                                              ; preds = %180, %178
  %.pn40 = phi { ptr, i32 } [ %181, %180 ], [ %179, %178 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %15) #7
  br label %183

183:                                              ; preds = %182, %176
  %.pn40.pn = phi { ptr, i32 } [ %.pn40, %182 ], [ %177, %176 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %15) #7
  invoke void @__cxa_end_catch()
          to label %186 unwind label %188

184:                                              ; preds = %158
  %185 = landingpad { ptr, i32 }
          cleanup
  br label %186

186:                                              ; preds = %184, %183, %175, %173, %127
  %.pn43.pn = phi { ptr, i32 } [ %174, %173 ], [ %.pn38, %175 ], [ %128, %127 ], [ %185, %184 ], [ %.pn40.pn, %183 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br label %187

187:                                              ; preds = %125, %124, %116, %186, %114, %45
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %186 ], [ %115, %114 ], [ %.pn29, %116 ], [ %46, %45 ], [ %126, %125 ], [ %.pn31.pn, %124 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #7
  resume { ptr, i32 } %.pn43.pn.pn

188:                                              ; preds = %183, %175, %124, %116
  %189 = landingpad { ptr, i32 }
          catch ptr null
  %190 = extractvalue { ptr, i32 } %189, 0
  call void @__clang_call_terminate(ptr %190) #8
  unreachable
}

declare void @_ZN6AquilaplERKNS_12SignalSourceEd(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8, ptr noundef nonnull align 8 dereferenceable(40), double noundef) local_unnamed_addr #4

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"double", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !10, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !10, i64 0}


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