; LLVM IR from zsiciarz/aquila :: tests/source/SignalSource.ll (ZNK17SuiteSignalSource21TestComplexExpression7RunImplEv)

; 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::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 }

@_ZN17SuiteSignalSource9testArrayE = external dso_local global [10 x double], align 16
@_ZN17SuiteSignalSource4dataE = external dso_local global %"class.Aquila::SignalSource", align 8
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [128 x i8], align 1

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

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

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

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

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

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

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

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

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

declare void @__cxa_end_catch()

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN6Aquila12SignalSource8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Aquila12SignalSource6sampleEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17SuiteSignalSource21TestComplexExpression7RunImplEv(ptr noundef nonnull align 8 dereferenceable(49) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.Aquila::SignalSource", align 8
  %4 = alloca %"class.Aquila::SignalSource", align 8
  %5 = alloca %"class.Aquila::SignalSource", align 8
  %6 = alloca %"class.Aquila::SignalSource", align 8
  %7 = alloca %"class.Aquila::SignalSource", align 8
  %8 = alloca %"class.Aquila::SignalSource", align 8
  %9 = alloca %"class.Aquila::SignalSource", align 8
  %10 = alloca %"class.Aquila::SignalSource", align 8
  %11 = alloca %"class.Aquila::SignalSource", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %16 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca %"class.UnitTest::TestDetails", align 8
  %20 = alloca %"class.UnitTest::TestDetails", align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %23 = alloca %"class.UnitTest::TestDetails", align 8
  %24 = alloca %"class.Aquila::SignalSource::iterator", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %25 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr %3) #8
  call void @_ZN6Aquila12SignalSourceC2IdEEPT_md(ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef @_ZN17SuiteSignalSource9testArrayE, i64 noundef 10, double noundef 2.205000e+04)
  call void @llvm.lifetime.start.p0(i64 40, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr %11) #8
  invoke void @_ZN6AquilaplEdRKNS_12SignalSourceE(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %11, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) @_ZN17SuiteSignalSource4dataE)
          to label %26 unwind label %50

26:                                               ; preds = %1
  invoke void @_ZN6AquilaplEONS_12SignalSourceEd(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %10, ptr noundef nonnull align 8 dereferenceable(40) %11, double noundef 5.000000e+00)
          to label %27 unwind label %54

27:                                               ; preds = %26
  invoke void @_ZN6AquilamlEdONS_12SignalSourceE(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %9, double noundef 2.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) %10)
          to label %28 unwind label %58

28:                                               ; preds = %27
  invoke void @_ZN6AquilaplEdONS_12SignalSourceE(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %8, double noundef 3.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %29 unwind label %62

29:                                               ; preds = %28
  invoke void @_ZN6AquilamlERKNS_12SignalSourceEOS0_(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %7, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %30 unwind label %66

30:                                               ; preds = %29
  invoke void @_ZN6AquilamlEONS_12SignalSourceEd(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %7, double noundef 2.000000e+00)
          to label %31 unwind label %70

31:                                               ; preds = %30
  invoke void @_ZN6AquilamlEONS_12SignalSourceERKS0_(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %32 unwind label %74

32:                                               ; preds = %31
  invoke void @_ZN6AquilaplERKNS_12SignalSourceEOS0_(ptr dead_on_unwind writable sret(%"class.Aquila::SignalSource") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %3, ptr noundef nonnull align 8 dereferenceable(40) %5)
          to label %33 unwind label %78

33:                                               ; preds = %32
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #8
  %34 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %35 unwind label %89

35:                                               ; preds = %33
  %36 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 0
  %37 = extractvalue { ptr, i64 } %34, 0
  store ptr %37, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, i64 }, ptr %15, i32 0, i32 1
  %39 = extractvalue { ptr, i64 } %34, 1
  store i64 %39, ptr %38, align 8
  br label %40

40:                                               ; preds = %176, %35
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  %41 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %42 unwind label %93

42:                                               ; preds = %40
  %43 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 0
  %44 = extractvalue { ptr, i64 } %41, 0
  store ptr %44, ptr %43, align 8
  %45 = getelementptr inbounds { ptr, i64 }, ptr %16, i32 0, i32 1
  %46 = extractvalue { ptr, i64 } %41, 1
  store i64 %46, ptr %45, align 8
  %47 = invoke noundef zeroext i1 @_ZNK6Aquila12SignalSource8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
          to label %48 unwind label %93

48:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br i1 %47, label %97, label %49

49:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  br label %226

50:                                               ; preds = %1
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %12, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %13, align 4
  br label %88

54:                                               ; preds = %26
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %12, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %13, align 4
  br label %87

58:                                               ; preds = %27
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = extractvalue { ptr, i32 } %59, 0
  store ptr %60, ptr %12, align 8
  %61 = extractvalue { ptr, i32 } %59, 1
  store i32 %61, ptr %13, align 4
  br label %86

62:                                               ; preds = %28
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %12, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %13, align 4
  br label %85

66:                                               ; preds = %29
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %12, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %13, align 4
  br label %84

70:                                               ; preds = %30
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %12, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %13, align 4
  br label %83

74:                                               ; preds = %31
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %12, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %13, align 4
  br label %82

78:                                               ; preds = %32
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %12, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %13, align 4
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  br label %82

82:                                               ; preds = %78, %74
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  br label %83

83:                                               ; preds = %82, %70
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  br label %84

84:                                               ; preds = %83, %66
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  br label %85

85:                                               ; preds = %84, %62
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  br label %86

86:                                               ; preds = %85, %58
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  br label %87

87:                                               ; preds = %86, %54
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #8
  br label %88

88:                                               ; preds = %87, %50
  call void @llvm.lifetime.end.p0(i64 40, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %5) #8
  br label %227

89:                                               ; preds = %193, %174, %33
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %12, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %13, align 4
  br label %225

93:                                               ; preds = %42, %40
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %12, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  br label %225

97:                                               ; preds = %48
  br label %98

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

100:                                              ; preds = %98
  %101 = load ptr, ptr %99, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %102 = load i64, ptr %14, align 8, !tbaa !9
  %103 = getelementptr inbounds [10 x double], ptr @_ZN17SuiteSignalSource9testArrayE, i64 0, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = load i64, ptr %14, align 8, !tbaa !9
  %106 = getelementptr inbounds [10 x double], ptr @_ZN17SuiteSignalSource9testArrayE, i64 0, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !11
  %108 = load i64, ptr %14, align 8, !tbaa !9
  %109 = getelementptr inbounds [10 x double], ptr @_ZN17SuiteSignalSource9testArrayE, i64 0, i64 %108
  %110 = load double, ptr %109, align 8, !tbaa !11
  %111 = fadd double 1.000000e+00, %110
  %112 = fadd double %111, 5.000000e+00
  %113 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %112, double 3.000000e+00)
  %114 = fmul double %107, %113
  %115 = fmul double %114, 2.000000e+00
  %116 = load i64, ptr %14, align 8, !tbaa !9
  %117 = getelementptr inbounds [10 x double], ptr @_ZN17SuiteSignalSource9testArrayE, i64 0, i64 %116
  %118 = load double, ptr %117, align 8, !tbaa !11
  %119 = call double @llvm.fmuladd.f64(double %115, double %118, double %104)
  store double %119, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %120 = load i64, ptr %14, align 8, !tbaa !9
  %121 = invoke noundef double @_ZNK6Aquila12SignalSource6sampleEm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %120)
          to label %122 unwind label %132

122:                                              ; preds = %100
  store double %121, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #8
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %124 unwind label %136

124:                                              ; preds = %122
  %125 = load ptr, ptr %123, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %19, ptr noundef nonnull align 8 dereferenceable(29) %125, i32 noundef 175)
          to label %126 unwind label %136

126:                                              ; preds = %124
  invoke void @_ZN8UnitTest10CheckEqualIddEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %101, ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(29) %19)
          to label %127 unwind label %136

127:                                              ; preds = %126
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %171

128:                                              ; preds = %98
  %129 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %12, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %13, align 4
  br label %141

132:                                              ; preds = %100
  %133 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %12, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %13, align 4
  br label %140

136:                                              ; preds = %126, %124, %122
  %137 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %12, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #8
  br label %140

140:                                              ; preds = %136, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %141

141:                                              ; preds = %140, %128
  %142 = load i32, ptr %13, align 4
  %143 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9exception) #8
  %144 = icmp eq i32 %142, %143
  br i1 %144, label %145, label %183

145:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #8
  %146 = load ptr, ptr %12, align 8
  %147 = call ptr @__cxa_begin_catch(ptr %146) #8
  store ptr %147, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 408, ptr %22) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %22)
          to label %148 unwind label %205

148:                                              ; preds = %145
  %149 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef @.str.3)
          to label %150 unwind label %209

150:                                              ; preds = %148
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load ptr, ptr %151, align 8, !tbaa !13
  %153 = getelementptr inbounds ptr, ptr %152, i64 2
  %154 = load ptr, ptr %153, align 8
  %155 = call noundef ptr %154(ptr noundef nonnull align 8 dereferenceable(8) %151) #8
  %156 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %149, ptr noundef %155)
          to label %157 unwind label %209

157:                                              ; preds = %150
  %158 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.70)
          to label %159 unwind label %209

159:                                              ; preds = %157
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %161 unwind label %209

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

164:                                              ; preds = %161
  %165 = load ptr, ptr %163, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %23, ptr noundef nonnull align 8 dereferenceable(29) %165, i32 noundef 175)
          to label %166 unwind label %213

166:                                              ; preds = %164
  %167 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %22)
          to label %168 unwind label %213

168:                                              ; preds = %166
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %162, ptr noundef nonnull align 8 dereferenceable(29) %23, ptr noundef %167)
          to label %169 unwind label %213

169:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %22) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr %22) #8
  invoke void @__cxa_end_catch()
          to label %170 unwind label %219

170:                                              ; preds = %169
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #8
  br label %171

171:                                              ; preds = %194, %170, %127
  br label %172

172:                                              ; preds = %171
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = invoke { ptr, i64 } @_ZN6Aquila12SignalSource8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %15, i32 noundef 0)
          to label %176 unwind label %89

176:                                              ; preds = %174
  %177 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 0
  %178 = extractvalue { ptr, i64 } %175, 0
  store ptr %178, ptr %177, align 8
  %179 = getelementptr inbounds { ptr, i64 }, ptr %24, i32 0, i32 1
  %180 = extractvalue { ptr, i64 } %175, 1
  store i64 %180, ptr %179, align 8
  %181 = load i64, ptr %14, align 8, !tbaa !9
  %182 = add i64 %181, 1
  store i64 %182, ptr %14, align 8, !tbaa !9
  br label %40, !llvm.loop !15

183:                                              ; preds = %141
  %184 = load ptr, ptr %12, align 8
  %185 = call ptr @__cxa_begin_catch(ptr %184) #8
  %186 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %187 unwind label %195

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

190:                                              ; preds = %187
  %191 = load ptr, ptr %189, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %20, ptr noundef nonnull align 8 dereferenceable(29) %191, i32 noundef 175)
          to label %192 unwind label %199

192:                                              ; preds = %190
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %188, ptr noundef nonnull align 8 dereferenceable(29) %20, ptr noundef @.str.69)
          to label %193 unwind label %199

193:                                              ; preds = %192
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  invoke void @__cxa_end_catch()
          to label %194 unwind label %89

194:                                              ; preds = %193
  br label %171

195:                                              ; preds = %183
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %12, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %13, align 4
  br label %203

199:                                              ; preds = %192, %190, %187
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %12, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #8
  br label %203

203:                                              ; preds = %199, %195
  invoke void @__cxa_end_catch()
          to label %204 unwind label %233

204:                                              ; preds = %203
  br label %225

205:                                              ; preds = %145
  %206 = landingpad { ptr, i32 }
          cleanup
  %207 = extractvalue { ptr, i32 } %206, 0
  store ptr %207, ptr %12, align 8
  %208 = extractvalue { ptr, i32 } %206, 1
  store i32 %208, ptr %13, align 4
  br label %218

209:                                              ; preds = %159, %157, %150, %148
  %210 = landingpad { ptr, i32 }
          cleanup
  %211 = extractvalue { ptr, i32 } %210, 0
  store ptr %211, ptr %12, align 8
  %212 = extractvalue { ptr, i32 } %210, 1
  store i32 %212, ptr %13, align 4
  br label %217

213:                                              ; preds = %168, %166, %164, %161
  %214 = landingpad { ptr, i32 }
          cleanup
  %215 = extractvalue { ptr, i32 } %214, 0
  store ptr %215, ptr %12, align 8
  %216 = extractvalue { ptr, i32 } %214, 1
  store i32 %216, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #8
  br label %217

217:                                              ; preds = %213, %209
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %22) #8
  br label %218

218:                                              ; preds = %217, %205
  call void @llvm.lifetime.end.p0(i64 408, ptr %22) #8
  invoke void @__cxa_end_catch()
          to label %223 unwind label %233

219:                                              ; preds = %169
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %12, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %13, align 4
  br label %224

223:                                              ; preds = %218
  br label %224

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

225:                                              ; preds = %224, %204, %93, %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  br label %227

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

227:                                              ; preds = %225, %88
  call void @llvm.lifetime.end.p0(i64 40, ptr %4) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr %3) #8
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %12, align 8
  %230 = load i32, ptr %13, align 4
  %231 = insertvalue { ptr, i32 } poison, ptr %229, 0
  %232 = insertvalue { ptr, i32 } %231, i32 %230, 1
  resume { ptr, i32 } %232

233:                                              ; preds = %218, %203
  %234 = landingpad { ptr, i32 }
          catch ptr null
  %235 = extractvalue { ptr, i32 } %234, 0
  call void @__clang_call_terminate(ptr %235) #9
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind memory(none) }
attributes #5 = { 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 #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"vtable pointer", !8, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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::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 }

@_ZN17SuiteSignalSource9testArrayE = external dso_local global [10 x double], align 16
@_ZN17SuiteSignalSource4dataE = external dso_local global %"class.Aquila::SignalSource", align 8
@_ZTISt9exception = external constant ptr
@.str.3 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [146 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [128 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i64 } @_ZN6Aquila12SignalSource8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK6Aquila12SignalSource6sampleEm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK17SuiteSignalSource21TestComplexExpression7RunImplEv(ptr nocapture noundef nonnull readnone align 8 dereferenceable(49) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.Aquila::SignalSource", align 8
  %3 = alloca %"class.Aquila::SignalSource", align 8
  %4 = alloca %"class.Aquila::SignalSource", align 8
  %5 = alloca %"class.Aquila::SignalSource", align 8
  %6 = alloca %"class.Aquila::SignalSource", align 8
  %7 = alloca %"class.Aquila::SignalSource", align 8
  %8 = alloca %"class.Aquila::SignalSource", align 8
  %9 = alloca %"class.Aquila::SignalSource", align 8
  %10 = alloca %"class.Aquila::SignalSource", align 8
  %11 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %12 = alloca %"class.Aquila::SignalSource::iterator", align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %"class.UnitTest::TestDetails", align 8
  %16 = alloca %"class.UnitTest::TestDetails", align 8
  %17 = alloca %"class.UnitTest::MemoryOutStream", align 8
  %18 = alloca %"class.UnitTest::TestDetails", align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %2) #8
  call void @_ZN6Aquila12SignalSourceC2IdEEPT_md(ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull @_ZN17SuiteSignalSource9testArrayE, i64 noundef 10, double noundef 2.205000e+04)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #8
  invoke void @_ZN6AquilaplEdRKNS_12SignalSourceE(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %10, double noundef 1.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) @_ZN17SuiteSignalSource4dataE)
          to label %19 unwind label %41

19:                                               ; preds = %1
  invoke void @_ZN6AquilaplEONS_12SignalSourceEd(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %9, ptr noundef nonnull align 8 dereferenceable(40) %10, double noundef 5.000000e+00)
          to label %20 unwind label %43

20:                                               ; preds = %19
  invoke void @_ZN6AquilamlEdONS_12SignalSourceE(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %8, double noundef 2.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) %9)
          to label %21 unwind label %45

21:                                               ; preds = %20
  invoke void @_ZN6AquilaplEdONS_12SignalSourceE(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %7, double noundef 3.000000e+00, ptr noundef nonnull align 8 dereferenceable(40) %8)
          to label %22 unwind label %47

22:                                               ; preds = %21
  invoke void @_ZN6AquilamlERKNS_12SignalSourceEOS0_(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %23 unwind label %49

23:                                               ; preds = %22
  invoke void @_ZN6AquilamlEONS_12SignalSourceEd(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %5, ptr noundef nonnull align 8 dereferenceable(40) %6, double noundef 2.000000e+00)
          to label %24 unwind label %51

24:                                               ; preds = %23
  invoke void @_ZN6AquilamlEONS_12SignalSourceERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %4, ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %2)
          to label %25 unwind label %53

25:                                               ; preds = %24
  invoke void @_ZN6AquilaplERKNS_12SignalSourceEOS0_(ptr dead_on_unwind nonnull writable sret(%"class.Aquila::SignalSource") align 8 %3, ptr noundef nonnull align 8 dereferenceable(40) %2, ptr noundef nonnull align 8 dereferenceable(40) %4)
          to label %26 unwind label %55

26:                                               ; preds = %25
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #8
  %27 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource5beginEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %28 unwind label %.loopexit.split-lp

28:                                               ; preds = %26
  %29 = extractvalue { ptr, i64 } %27, 0
  store ptr %29, ptr %11, align 8
  %30 = getelementptr inbounds i8, ptr %11, i64 8
  %31 = extractvalue { ptr, i64 } %27, 1
  store i64 %31, ptr %30, align 8
  %32 = getelementptr inbounds i8, ptr %12, i64 8
  br label %33

33:                                               ; preds = %116, %28
  %.026 = phi i64 [ 0, %28 ], [ %117, %116 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %34 = invoke { ptr, i64 } @_ZNK6Aquila12SignalSource3endEv(ptr noundef nonnull align 8 dereferenceable(40) %3)
          to label %35 unwind label %64

35:                                               ; preds = %33
  %36 = extractvalue { ptr, i64 } %34, 0
  store ptr %36, ptr %12, align 8
  %37 = extractvalue { ptr, i64 } %34, 1
  store i64 %37, ptr %32, align 8
  %38 = invoke noundef zeroext i1 @_ZNK6Aquila12SignalSource8iteratorneERKS1_(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %39 unwind label %64

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br i1 %38, label %66, label %40

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

41:                                               ; preds = %1
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %63

43:                                               ; preds = %19
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %62

45:                                               ; preds = %20
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %61

47:                                               ; preds = %21
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %60

49:                                               ; preds = %22
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %59

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

53:                                               ; preds = %24
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %25
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #8
  br label %57

57:                                               ; preds = %55, %53
  %.pn = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #8
  br label %58

58:                                               ; preds = %57, %51
  %.pn.pn = phi { ptr, i32 } [ %.pn, %57 ], [ %52, %51 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #8
  br label %59

59:                                               ; preds = %58, %49
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %58 ], [ %50, %49 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #8
  br label %60

60:                                               ; preds = %59, %47
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %59 ], [ %48, %47 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #8
  br label %61

61:                                               ; preds = %60, %45
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %60 ], [ %46, %45 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #8
  br label %62

62:                                               ; preds = %61, %43
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %61 ], [ %44, %43 ]
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #8
  br label %63

63:                                               ; preds = %62, %41
  %.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn.pn, %62 ], [ %42, %41 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #8
  br label %143

.loopexit:                                        ; preds = %114, %126
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %142

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

64:                                               ; preds = %35, %33
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %142

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

68:                                               ; preds = %66
  %69 = load ptr, ptr %67, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #8
  %70 = getelementptr inbounds [10 x double], ptr @_ZN17SuiteSignalSource9testArrayE, i64 0, i64 %.026
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fadd double %71, 1.000000e+00
  %73 = fadd double %72, 5.000000e+00
  %74 = call double @llvm.fmuladd.f64(double %73, double 2.000000e+00, double 3.000000e+00)
  %75 = fmul double %71, %74
  %76 = fmul double %75, 2.000000e+00
  %77 = call double @llvm.fmuladd.f64(double %76, double %71, double %71)
  store double %77, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %78 = call noundef double @_ZNK6Aquila12SignalSource6sampleEm(ptr noundef nonnull align 8 dereferenceable(40) %3, i64 noundef %.026)
  store double %78, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %15) #8
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7DetailsEv()
          to label %80 unwind label %86

80:                                               ; preds = %68
  %81 = load ptr, ptr %79, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %15, ptr noundef nonnull align 8 dereferenceable(29) %81, i32 noundef 175)
          to label %82 unwind label %86

82:                                               ; preds = %80
  invoke void @_ZN8UnitTest10CheckEqualIddEEvRNS_11TestResultsERKT_RKT0_RKNS_11TestDetailsE(ptr noundef nonnull align 8 dereferenceable(21) %69, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(29) %15)
          to label %83 unwind label %86

83:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %114

84:                                               ; preds = %66
  %85 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  br label %88

86:                                               ; preds = %82, %80, %68
  %87 = landingpad { ptr, i32 }
          catch ptr @_ZTISt9exception
          catch ptr null
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #8
  br label %88

88:                                               ; preds = %86, %84
  %.pn34 = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  %.7 = extractvalue { ptr, i32 } %.pn34, 0
  %.719 = extractvalue { ptr, i32 } %.pn34, 1
  %89 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9exception) #8
  %90 = icmp eq i32 %.719, %89
  %91 = call ptr @__cxa_begin_catch(ptr %.7) #8
  br i1 %90, label %92, label %118

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 408, ptr nonnull %17) #8
  invoke void @_ZN8UnitTest15MemoryOutStreamC1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %93 unwind label %132

93:                                               ; preds = %92
  %94 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.3)
          to label %95 unwind label %134

95:                                               ; preds = %93
  %96 = load ptr, ptr %91, align 8, !tbaa !11
  %97 = getelementptr inbounds i8, ptr %96, i64 16
  %98 = load ptr, ptr %97, align 8
  %99 = call noundef ptr %98(ptr noundef nonnull align 8 dereferenceable(8) %91) #8
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef %99)
          to label %101 unwind label %134

101:                                              ; preds = %95
  %102 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.70)
          to label %103 unwind label %134

103:                                              ; preds = %101
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN8UnitTest11CurrentTest7ResultsEv()
          to label %105 unwind label %134

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

108:                                              ; preds = %105
  %109 = load ptr, ptr %107, align 8, !tbaa !5
  invoke void @_ZN8UnitTest11TestDetailsC1ERKS0_i(ptr noundef nonnull align 8 dereferenceable(29) %18, ptr noundef nonnull align 8 dereferenceable(29) %109, i32 noundef 175)
          to label %110 unwind label %136

110:                                              ; preds = %108
  %111 = invoke noundef ptr @_ZNK8UnitTest15MemoryOutStream7GetTextEv(ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %112 unwind label %136

112:                                              ; preds = %110
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %106, ptr noundef nonnull align 8 dereferenceable(29) %18, ptr noundef %111)
          to label %113 unwind label %136

113:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %17) #8
  invoke void @__cxa_end_catch()
          to label %114 unwind label %140

114:                                              ; preds = %113, %126, %83
  %115 = invoke { ptr, i64 } @_ZN6Aquila12SignalSource8iteratorppEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 0)
          to label %116 unwind label %.loopexit

116:                                              ; preds = %114
  %117 = add i64 %.026, 1
  br label %33, !llvm.loop !13

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

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

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

125:                                              ; preds = %123
  invoke void @_ZN8UnitTest11TestResults13OnTestFailureERKNS_11TestDetailsEPKc(ptr noundef nonnull align 8 dereferenceable(21) %121, ptr noundef nonnull align 8 dereferenceable(29) %16, ptr noundef nonnull @.str.69)
          to label %126 unwind label %129

126:                                              ; preds = %125
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  invoke void @__cxa_end_catch()
          to label %114 unwind label %.loopexit

127:                                              ; preds = %118
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %131

129:                                              ; preds = %125, %123, %120
  %130 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #8
  br label %131

131:                                              ; preds = %129, %127
  %.pn36 = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  invoke void @__cxa_end_catch()
          to label %142 unwind label %144

132:                                              ; preds = %92
  %133 = landingpad { ptr, i32 }
          cleanup
  br label %139

134:                                              ; preds = %103, %101, %95, %93
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %138

136:                                              ; preds = %112, %110, %108, %105
  %137 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %18) #8
  br label %138

138:                                              ; preds = %136, %134
  %.pn38 = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @_ZN8UnitTest15MemoryOutStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(144) %17) #8
  br label %139

139:                                              ; preds = %138, %132
  %.pn38.pn = phi { ptr, i32 } [ %.pn38, %138 ], [ %133, %132 ]
  call void @llvm.lifetime.end.p0(i64 408, ptr nonnull %17) #8
  invoke void @__cxa_end_catch()
          to label %142 unwind label %144

140:                                              ; preds = %113
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %142

142:                                              ; preds = %.loopexit, %.loopexit.split-lp, %140, %139, %131, %64
  %.pn43 = phi { ptr, i32 } [ %.pn36, %131 ], [ %65, %64 ], [ %141, %140 ], [ %.pn38.pn, %139 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #8
  br label %143

143:                                              ; preds = %142, %63
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %142 ], [ %.pn.pn.pn.pn.pn.pn.pn, %63 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #8
  call void @_ZN6Aquila12SignalSourceD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %2) #8
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %2) #8
  resume { ptr, i32 } %.pn43.pn

144:                                              ; preds = %139, %131
  %145 = landingpad { ptr, i32 }
          catch ptr null
  %146 = extractvalue { ptr, i32 } %145, 0
  call void @__clang_call_terminate(ptr %146) #9
  unreachable
}

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

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

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


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