; LLVM IR from Aquatic-Games/mixr :: src/Impl/Impl.ll (ZN4mixr4Impl12CreateSourceERKNS_17SourceDescriptionE)

; 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"

%"struct.mixr::AudioFormat" = type { i32, i32, i8 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.18 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.18 = type { i64, [8 x i8] }
%"struct.mixr::Source" = type { i32, %"struct.mixr::AudioFormat", i32, i32, double, %"class.std::deque", ptr, i8, double, float, i8, i64, float, float, i64, double, ptr, ptr, ptr, ptr, i64, float, float, i64, i64, i64 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }
%"struct.mixr::SourceDescription" = type { i32, %"struct.mixr::AudioFormat", %union.anon }
%union.anon = type { %"struct.mixr::ADPCMDescription" }
%"struct.mixr::ADPCMDescription" = type { i64 }
%"class.mixr::Impl" = type { i32, float, %"class.std::vector", %"class.std::vector.0", %"class.std::deque", %"class.std::deque" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<mixr::Buffer, std::allocator<mixr::Buffer>>::_Vector_impl" }
%"struct.std::_Vector_base<mixr::Buffer, std::allocator<mixr::Buffer>>::_Vector_impl" = type { %"struct.std::_Vector_base<mixr::Buffer, std::allocator<mixr::Buffer>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mixr::Buffer, std::allocator<mixr::Buffer>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<mixr::Source, std::allocator<mixr::Source>>::_Vector_impl" }
%"struct.std::_Vector_base<mixr::Source, std::allocator<mixr::Source>>::_Vector_impl" = type { %"struct.std::_Vector_base<mixr::Source, std::allocator<mixr::Source>>::_Vector_impl_data" }
%"struct.std::_Vector_base<mixr::Source, std::allocator<mixr::Source>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt13runtime_error = external constant ptr

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4mixr4Impl12CreateSourceERKNS_17SourceDescriptionE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.mixr::AudioFormat", align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i1, align 1
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"struct.mixr::Source", align 8
  %17 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %18 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #10
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.mixr::SourceDescription", ptr %19, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #10
  %21 = getelementptr inbounds %"struct.mixr::AudioFormat", ptr %5, i32 0, i32 0
  %22 = load i32, ptr %21, align 4, !tbaa !15
  switch i32 %22, label %26 [
    i32 0, label %23
    i32 1, label %23
    i32 2, label %24
    i32 3, label %25
    i32 4, label %25
  ]

23:                                               ; preds = %2, %2
  store i8 1, ptr %6, align 1, !tbaa !14
  br label %26

24:                                               ; preds = %2
  store i8 2, ptr %6, align 1, !tbaa !14
  br label %26

25:                                               ; preds = %2, %2
  store i8 4, ptr %6, align 1, !tbaa !14
  br label %26

26:                                               ; preds = %25, %24, %23, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #10
  %27 = getelementptr inbounds %"struct.mixr::AudioFormat", ptr %5, i32 0, i32 2
  %28 = load i8, ptr %27, align 4, !tbaa !17
  %29 = zext i8 %28 to i32
  store i32 %29, ptr %7, align 4, !tbaa !12
  %30 = load i32, ptr %7, align 4, !tbaa !12
  %31 = icmp slt i32 %30, 1
  br i1 %31, label %35, label %32

32:                                               ; preds = %26
  %33 = load i32, ptr %7, align 4, !tbaa !12
  %34 = icmp sgt i32 %33, 2
  br i1 %34, label %35, label %52

35:                                               ; preds = %32, %26
  store i1 true, ptr %12, align 1
  %36 = call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #10
  %37 = load i32, ptr %7, align 4, !tbaa !12
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %9, i32 noundef %37) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef @.str, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %38 unwind label %40

38:                                               ; preds = %35
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %39 unwind label %44

39:                                               ; preds = %38
  store i1 false, ptr %12, align 1
  invoke void @__cxa_throw(ptr %36, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #11
          to label %143 unwind label %44

40:                                               ; preds = %35
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %10, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %11, align 4
  br label %48

44:                                               ; preds = %39, %38
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %10, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %11, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #10
  br label %48

48:                                               ; preds = %44, %40
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #10
  %49 = load i1, ptr %12, align 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %48
  call void @__cxa_free_exception(ptr %36) #10
  br label %51

51:                                               ; preds = %50, %48
  br label %137

52:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.mixr::SourceDescription", ptr %53, i32 0, i32 0
  %55 = load i32, ptr %54, align 8, !tbaa !18
  store i32 %55, ptr %13, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.mixr::SourceDescription", ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %"struct.mixr::ADPCMDescription", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !14
  store i64 %59, ptr %14, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  store ptr null, ptr %15, align 8, !tbaa !5
  %60 = load i32, ptr %13, align 4, !tbaa !21
  switch i32 %60, label %69 [
    i32 0, label %69
    i32 1, label %61
  ]

61:                                               ; preds = %52
  %62 = load i64, ptr %14, align 8, !tbaa !22
  %63 = load i32, ptr %7, align 4, !tbaa !12
  %64 = mul nsw i32 %63, 4
  %65 = sext i32 %64 to i64
  %66 = sub i64 %62, %65
  %67 = mul i64 %66, 4
  %68 = call noalias noundef nonnull ptr @_Znam(i64 noundef %67) #12
  store ptr %68, ptr %15, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %61, %52, %52
  call void @llvm.lifetime.start.p0(i64 248, ptr %16) #10
  %70 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 0
  %71 = load i32, ptr %13, align 4, !tbaa !21
  store i32 %71, ptr %70, align 8, !tbaa !24
  %72 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %72, ptr align 4 %5, i64 12, i1 false), !tbaa.struct !9
  %73 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 2
  %74 = load i8, ptr %6, align 1, !tbaa !14
  %75 = zext i8 %74 to i32
  store i32 %75, ptr %73, align 8, !tbaa !34
  %76 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 3
  %77 = load i8, ptr %6, align 1, !tbaa !14
  %78 = zext i8 %77 to i32
  %79 = load i32, ptr %7, align 4, !tbaa !12
  %80 = sub nsw i32 %79, 1
  %81 = mul nsw i32 %78, %80
  store i32 %81, ptr %76, align 4, !tbaa !35
  %82 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 4
  %83 = getelementptr inbounds %"struct.mixr::AudioFormat", ptr %5, i32 0, i32 1
  %84 = load i32, ptr %83, align 4, !tbaa !36
  %85 = uitofp i32 %84 to float
  %86 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !37
  %88 = uitofp i32 %87 to float
  %89 = fdiv float %85, %88
  %90 = fpext float %89 to double
  store double %90, ptr %82, align 8, !tbaa !47
  %91 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 5
  call void @llvm.memset.p0.i64(ptr align 8 %91, i8 0, i64 80, i1 false)
  call void @_ZNSt5dequeImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %91)
  %92 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 6
  %93 = load ptr, ptr %15, align 8, !tbaa !5
  store ptr %93, ptr %92, align 8, !tbaa !48
  %94 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 7
  store i8 0, ptr %94, align 8, !tbaa !49
  %95 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 8
  store double 1.000000e+00, ptr %95, align 8, !tbaa !50
  %96 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 9
  store float 1.000000e+00, ptr %96, align 8, !tbaa !51
  %97 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 10
  store i8 0, ptr %97, align 4, !tbaa !52
  %98 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 11
  store i64 0, ptr %98, align 8, !tbaa !53
  %99 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 12
  store float 1.000000e+00, ptr %99, align 8, !tbaa !54
  %100 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 13
  store float 1.000000e+00, ptr %100, align 4, !tbaa !55
  %101 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 14
  store i64 0, ptr %101, align 8, !tbaa !56
  %102 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 15
  store double 0.000000e+00, ptr %102, align 8, !tbaa !57
  %103 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 16
  store ptr null, ptr %103, align 8, !tbaa !58
  %104 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 17
  store ptr null, ptr %104, align 8, !tbaa !59
  %105 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 18
  store ptr null, ptr %105, align 8, !tbaa !60
  %106 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 19
  store ptr null, ptr %106, align 8, !tbaa !61
  %107 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 20
  store i64 0, ptr %107, align 8, !tbaa !62
  %108 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 21
  store float 0.000000e+00, ptr %108, align 8, !tbaa !63
  %109 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 22
  store float 0.000000e+00, ptr %109, align 4, !tbaa !64
  %110 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 23
  store i64 -1, ptr %110, align 8, !tbaa !65
  %111 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 24
  %112 = load i64, ptr %14, align 8, !tbaa !22
  store i64 %112, ptr %111, align 8, !tbaa !66
  %113 = getelementptr inbounds %"struct.mixr::Source", ptr %16, i32 0, i32 25
  store i64 0, ptr %113, align 8, !tbaa !67
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %114 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 5
  %115 = call noundef zeroext i1 @_ZNKSt5dequeImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %114) #10
  br i1 %115, label %116, label %125

116:                                              ; preds = %69
  %117 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 3
  %118 = call noundef i64 @_ZNKSt6vectorIN4mixr6SourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %117) #10
  store i64 %118, ptr %17, align 8, !tbaa !22
  %119 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 3
  invoke void @_ZNSt6vectorIN4mixr6SourceESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(248) %16)
          to label %120 unwind label %121

120:                                              ; preds = %116
  br label %135

121:                                              ; preds = %125, %116
  %122 = landingpad { ptr, i32 }
          cleanup
  %123 = extractvalue { ptr, i32 } %122, 0
  store ptr %123, ptr %10, align 8
  %124 = extractvalue { ptr, i32 } %122, 1
  store i32 %124, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %16) #10
  call void @llvm.lifetime.end.p0(i64 248, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %137

125:                                              ; preds = %69
  %126 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 5
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5dequeImSaImEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %126) #10
  %128 = load i64, ptr %127, align 8, !tbaa !22
  store i64 %128, ptr %17, align 8, !tbaa !22
  %129 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 5
  call void @_ZNSt5dequeImSaImEE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %129) #10
  %130 = getelementptr inbounds %"class.mixr::Impl", ptr %18, i32 0, i32 3
  %131 = load i64, ptr %17, align 8, !tbaa !22
  %132 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZNSt6vectorIN4mixr6SourceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %131) #10
  %133 = invoke noundef nonnull align 8 dereferenceable(248) ptr @_ZN4mixr6SourceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(248) %132, ptr noundef nonnull align 8 dereferenceable(248) %16)
          to label %134 unwind label %121

134:                                              ; preds = %125
  br label %135

135:                                              ; preds = %134, %120
  %136 = load i64, ptr %17, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %16) #10
  call void @llvm.lifetime.end.p0(i64 248, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #10
  ret i64 %136

137:                                              ; preds = %121, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #10
  br label %138

138:                                              ; preds = %137
  %139 = load ptr, ptr %10, align 8
  %140 = load i32, ptr %11, align 4
  %141 = insertvalue { ptr, i32 } poison, ptr %139, 0
  %142 = insertvalue { ptr, i32 } %141, i32 %140, 1
  resume { ptr, i32 } %142

143:                                              ; preds = %39
  unreachable
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #5

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #8

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(248) ptr @_ZN4mixr6SourceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(248)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

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

!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 = !{i64 0, i64 4, !10, i64 4, i64 4, !12, i64 8, i64 1, !14}
!10 = !{!11, !11, i64 0}
!11 = !{!"_ZTSN4mixr8DataTypeE", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !11, i64 0}
!16 = !{!"_ZTSN4mixr11AudioFormatE", !11, i64 0, !13, i64 4, !7, i64 8}
!17 = !{!16, !7, i64 8}
!18 = !{!19, !20, i64 0}
!19 = !{!"_ZTSN4mixr17SourceDescriptionE", !20, i64 0, !16, i64 4, !7, i64 16}
!20 = !{!"_ZTSN4mixr10SourceTypeE", !7, i64 0}
!21 = !{!20, !20, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!25, !20, i64 0}
!25 = !{!"_ZTSN4mixr6SourceE", !20, i64 0, !16, i64 4, !13, i64 16, !13, i64 20, !26, i64 24, !27, i64 32, !6, i64 112, !32, i64 120, !26, i64 128, !33, i64 136, !32, i64 140, !23, i64 144, !33, i64 152, !33, i64 156, !23, i64 160, !26, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !6, i64 200, !23, i64 208, !33, i64 216, !33, i64 220, !23, i64 224, !23, i64 232, !23, i64 240}
!26 = !{!"double", !7, i64 0}
!27 = !{!"_ZTSSt5dequeImSaImEE", !28, i64 0}
!28 = !{!"_ZTSSt11_Deque_baseImSaImEE", !29, i64 0}
!29 = !{!"_ZTSNSt11_Deque_baseImSaImEE11_Deque_implE", !30, i64 0}
!30 = !{!"_ZTSNSt11_Deque_baseImSaImEE16_Deque_impl_dataE", !6, i64 0, !23, i64 8, !31, i64 16, !31, i64 48}
!31 = !{!"_ZTSSt15_Deque_iteratorImRmPmE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!32 = !{!"bool", !7, i64 0}
!33 = !{!"float", !7, i64 0}
!34 = !{!25, !13, i64 16}
!35 = !{!25, !13, i64 20}
!36 = !{!16, !13, i64 4}
!37 = !{!38, !13, i64 0}
!38 = !{!"_ZTSN4mixr4ImplE", !13, i64 0, !33, i64 4, !39, i64 8, !43, i64 32, !27, i64 56, !27, i64 136}
!39 = !{!"_ZTSSt6vectorIN4mixr6BufferESaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseIN4mixr6BufferESaIS1_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIN4mixr6BufferESaIS1_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseIN4mixr6BufferESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTSSt6vectorIN4mixr6SourceESaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSSt12_Vector_baseIN4mixr6SourceESaIS1_EE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIN4mixr6SourceESaIS1_EE12_Vector_implE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseIN4mixr6SourceESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!47 = !{!25, !26, i64 24}
!48 = !{!25, !6, i64 112}
!49 = !{!25, !32, i64 120}
!50 = !{!25, !26, i64 128}
!51 = !{!25, !33, i64 136}
!52 = !{!25, !32, i64 140}
!53 = !{!25, !23, i64 144}
!54 = !{!25, !33, i64 152}
!55 = !{!25, !33, i64 156}
!56 = !{!25, !23, i64 160}
!57 = !{!25, !26, i64 168}
!58 = !{!25, !6, i64 176}
!59 = !{!25, !6, i64 184}
!60 = !{!25, !6, i64 192}
!61 = !{!25, !6, i64 200}
!62 = !{!25, !23, i64 208}
!63 = !{!25, !33, i64 216}
!64 = !{!25, !33, i64 220}
!65 = !{!25, !23, i64 224}
!66 = !{!25, !23, i64 232}
!67 = !{!25, !23, i64 240}


; 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.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.18 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.18 = type { i64, [8 x i8] }
%"struct.mixr::Source" = type { i32, %"struct.mixr::AudioFormat", i32, i32, double, %"class.std::deque", ptr, i8, double, float, i8, i64, float, float, i64, double, ptr, ptr, ptr, ptr, i64, float, float, i64, i64, i64 }
%"struct.mixr::AudioFormat" = type { i32, i32, i8 }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl" }
%"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl" = type { %"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl_data" }
%"struct.std::_Deque_base<unsigned long, std::allocator<unsigned long>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [33 x i8], align 1
@_ZTISt13runtime_error = external constant ptr
@switch.table._ZN4mixr4Impl12CreateSourceERKNS_17SourceDescriptionE = private unnamed_addr constant [5 x i32] [i32 1, i32 1, i32 2, i32 4, i32 4], align 4

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN4mixr4Impl12CreateSourceERKNS_17SourceDescriptionE(ptr noundef nonnull align 8 dereferenceable(216) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"struct.mixr::Source", align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 4
  %.sroa.0.0.copyload = load i32, ptr %6, align 4, !tbaa !5
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 8
  %.sroa.6.0.copyload = load i32, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !9
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 12
  %.sroa.7.0.copyload = load i8, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !11
  %.sroa.8.0..sroa_idx = getelementptr inbounds i8, ptr %1, i64 13
  %7 = icmp ult i32 %.sroa.0.0.copyload, 5
  br i1 %7, label %switch.lookup, label %9

switch.lookup:                                    ; preds = %2
  %8 = zext nneg i32 %.sroa.0.0.copyload to i64
  %switch.gep = getelementptr inbounds [5 x i32], ptr @switch.table._ZN4mixr4Impl12CreateSourceERKNS_17SourceDescriptionE, i64 0, i64 %8
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %9

9:                                                ; preds = %switch.lookup, %2
  %.028 = phi i32 [ 0, %2 ], [ %switch.load, %switch.lookup ]
  %10 = zext i8 %.sroa.7.0.copyload to i32
  %11 = add i8 %.sroa.7.0.copyload, -3
  %or.cond = icmp ult i8 %11, -2
  br i1 %or.cond, label %12, label %20

12:                                               ; preds = %9
  %13 = tail call ptr @__cxa_allocate_exception(i64 16) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #10
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #10
  call void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %4, i32 noundef %10) #10
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %3, ptr noundef nonnull @.str, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %14 unwind label %.thread

14:                                               ; preds = %12
  invoke void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %15 unwind label %17

15:                                               ; preds = %14
  invoke void @__cxa_throw(ptr nonnull %13, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #11
          to label %69 unwind label %17

.thread:                                          ; preds = %12
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #10
  br label %19

17:                                               ; preds = %14, %15
  %.030 = phi i1 [ false, %15 ], [ true, %14 ]
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #10
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #10
  br i1 %.030, label %19, label %68

19:                                               ; preds = %.thread, %17
  %.pn39 = phi { ptr, i32 } [ %16, %.thread ], [ %18, %17 ]
  call void @__cxa_free_exception(ptr %13) #10
  br label %68

20:                                               ; preds = %9
  %21 = load i32, ptr %1, align 8, !tbaa !12
  %22 = getelementptr inbounds i8, ptr %1, i64 16
  %23 = load i64, ptr %22, align 8, !tbaa !11
  %cond = icmp eq i32 %21, 1
  br i1 %cond, label %24, label %30

24:                                               ; preds = %20
  %25 = shl nuw nsw i32 %10, 2
  %26 = zext nneg i32 %25 to i64
  %27 = sub i64 %23, %26
  %28 = shl i64 %27, 2
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %28) #12
  br label %30

30:                                               ; preds = %20, %24
  %.027 = phi ptr [ %29, %24 ], [ null, %20 ]
  call void @llvm.lifetime.start.p0(i64 248, ptr nonnull %5) #10
  store i32 %21, ptr %5, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %5, i64 4
  store i32 %.sroa.0.0.copyload, ptr %31, align 4, !tbaa !5
  %.sroa.6.0..sroa_idx18 = getelementptr inbounds i8, ptr %5, i64 8
  store i32 %.sroa.6.0.copyload, ptr %.sroa.6.0..sroa_idx18, align 8, !tbaa !9
  %.sroa.7.0..sroa_idx20 = getelementptr inbounds i8, ptr %5, i64 12
  store i8 %.sroa.7.0.copyload, ptr %.sroa.7.0..sroa_idx20, align 4, !tbaa !11
  %.sroa.8.0..sroa_idx22 = getelementptr inbounds i8, ptr %5, i64 13
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(3) %.sroa.8.0..sroa_idx22, ptr noundef nonnull align 1 dereferenceable(3) %.sroa.8.0..sroa_idx, i64 3, i1 false)
  %32 = getelementptr inbounds i8, ptr %5, i64 16
  store i32 %.028, ptr %32, align 8, !tbaa !28
  %33 = getelementptr inbounds i8, ptr %5, i64 20
  %34 = add nsw i32 %10, -1
  %35 = mul nuw nsw i32 %.028, %34
  store i32 %35, ptr %33, align 4, !tbaa !29
  %36 = getelementptr inbounds i8, ptr %5, i64 24
  %37 = uitofp i32 %.sroa.6.0.copyload to float
  %38 = load i32, ptr %0, align 8, !tbaa !30
  %39 = uitofp i32 %38 to float
  %40 = fdiv float %37, %39
  %41 = fpext float %40 to double
  store double %41, ptr %36, align 8, !tbaa !40
  %42 = getelementptr inbounds i8, ptr %5, i64 32
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(80) %42, i8 0, i64 80, i1 false)
  call void @_ZNSt5dequeImSaImEEC2Ev(ptr noundef nonnull align 8 dereferenceable(80) %42)
  %43 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr %.027, ptr %43, align 8, !tbaa !41
  %44 = getelementptr inbounds i8, ptr %5, i64 120
  store i8 0, ptr %44, align 8, !tbaa !42
  %45 = getelementptr inbounds i8, ptr %5, i64 128
  store double 1.000000e+00, ptr %45, align 8, !tbaa !43
  %46 = getelementptr inbounds i8, ptr %5, i64 136
  store float 1.000000e+00, ptr %46, align 8, !tbaa !44
  %47 = getelementptr inbounds i8, ptr %5, i64 140
  store i8 0, ptr %47, align 4, !tbaa !45
  %48 = getelementptr inbounds i8, ptr %5, i64 144
  store i64 0, ptr %48, align 8, !tbaa !46
  %49 = getelementptr inbounds i8, ptr %5, i64 152
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %49, align 8, !tbaa !47
  %50 = getelementptr inbounds i8, ptr %5, i64 160
  %51 = getelementptr inbounds i8, ptr %5, i64 224
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %50, i8 0, i64 64, i1 false)
  store i64 -1, ptr %51, align 8, !tbaa !48
  %52 = getelementptr inbounds i8, ptr %5, i64 232
  store i64 %23, ptr %52, align 8, !tbaa !49
  %53 = getelementptr inbounds i8, ptr %5, i64 240
  store i64 0, ptr %53, align 8, !tbaa !50
  %54 = getelementptr inbounds i8, ptr %0, i64 136
  %55 = call noundef zeroext i1 @_ZNKSt5dequeImSaImEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(80) %54) #10
  br i1 %55, label %56, label %61

56:                                               ; preds = %30
  %57 = getelementptr inbounds i8, ptr %0, i64 32
  %58 = call noundef i64 @_ZNKSt6vectorIN4mixr6SourceESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %57) #10
  invoke void @_ZNSt6vectorIN4mixr6SourceESaIS1_EE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %67 unwind label %59

59:                                               ; preds = %61, %56
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #10
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %5) #10
  br label %68

61:                                               ; preds = %30
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt5dequeImSaImEE5frontEv(ptr noundef nonnull align 8 dereferenceable(80) %54) #10
  %63 = load i64, ptr %62, align 8, !tbaa !51
  call void @_ZNSt5dequeImSaImEE9pop_frontEv(ptr noundef nonnull align 8 dereferenceable(80) %54) #10
  %64 = getelementptr inbounds i8, ptr %0, i64 32
  %65 = call noundef nonnull align 8 dereferenceable(248) ptr @_ZNSt6vectorIN4mixr6SourceESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %63) #10
  %66 = invoke noundef nonnull align 8 dereferenceable(248) ptr @_ZN4mixr6SourceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(248) %65, ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %67 unwind label %59

67:                                               ; preds = %61, %56
  %.0 = phi i64 [ %58, %56 ], [ %63, %61 ]
  call void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #10
  call void @llvm.lifetime.end.p0(i64 248, ptr nonnull %5) #10
  ret i64 %.0

68:                                               ; preds = %17, %19, %59
  %.pn.pn = phi { ptr, i32 } [ %.pn39, %19 ], [ %18, %17 ], [ %60, %59 ]
  resume { ptr, i32 } %.pn.pn

69:                                               ; preds = %15
  unreachable
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt7__cxx119to_stringEi(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #5

declare void @_ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZNSt13runtime_errorD1Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #8

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #9

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(248) ptr @_ZN4mixr6SourceaSERKS0_(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4mixr6SourceD2Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #5 align 2

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

!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 = !{!"_ZTSN4mixr8DataTypeE", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSN4mixr17SourceDescriptionE", !14, i64 0, !15, i64 4, !7, i64 16}
!14 = !{!"_ZTSN4mixr10SourceTypeE", !7, i64 0}
!15 = !{!"_ZTSN4mixr11AudioFormatE", !6, i64 0, !10, i64 4, !7, i64 8}
!16 = !{!17, !14, i64 0}
!17 = !{!"_ZTSN4mixr6SourceE", !14, i64 0, !15, i64 4, !10, i64 16, !10, i64 20, !18, i64 24, !19, i64 32, !23, i64 112, !26, i64 120, !18, i64 128, !27, i64 136, !26, i64 140, !24, i64 144, !27, i64 152, !27, i64 156, !24, i64 160, !18, i64 168, !23, i64 176, !23, i64 184, !23, i64 192, !23, i64 200, !24, i64 208, !27, i64 216, !27, i64 220, !24, i64 224, !24, i64 232, !24, i64 240}
!18 = !{!"double", !7, i64 0}
!19 = !{!"_ZTSSt5dequeImSaImEE", !20, i64 0}
!20 = !{!"_ZTSSt11_Deque_baseImSaImEE", !21, i64 0}
!21 = !{!"_ZTSNSt11_Deque_baseImSaImEE11_Deque_implE", !22, i64 0}
!22 = !{!"_ZTSNSt11_Deque_baseImSaImEE16_Deque_impl_dataE", !23, i64 0, !24, i64 8, !25, i64 16, !25, i64 48}
!23 = !{!"any pointer", !7, i64 0}
!24 = !{!"long", !7, i64 0}
!25 = !{!"_ZTSSt15_Deque_iteratorImRmPmE", !23, i64 0, !23, i64 8, !23, i64 16, !23, i64 24}
!26 = !{!"bool", !7, i64 0}
!27 = !{!"float", !7, i64 0}
!28 = !{!17, !10, i64 16}
!29 = !{!17, !10, i64 20}
!30 = !{!31, !10, i64 0}
!31 = !{!"_ZTSN4mixr4ImplE", !10, i64 0, !27, i64 4, !32, i64 8, !36, i64 32, !19, i64 56, !19, i64 136}
!32 = !{!"_ZTSSt6vectorIN4mixr6BufferESaIS1_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN4mixr6BufferESaIS1_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4mixr6BufferESaIS1_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN4mixr6BufferESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!36 = !{!"_ZTSSt6vectorIN4mixr6SourceESaIS1_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4mixr6SourceESaIS1_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4mixr6SourceESaIS1_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4mixr6SourceESaIS1_EE17_Vector_impl_dataE", !23, i64 0, !23, i64 8, !23, i64 16}
!40 = !{!17, !18, i64 24}
!41 = !{!17, !23, i64 112}
!42 = !{!17, !26, i64 120}
!43 = !{!17, !18, i64 128}
!44 = !{!17, !27, i64 136}
!45 = !{!17, !26, i64 140}
!46 = !{!17, !24, i64 144}
!47 = !{!27, !27, i64 0}
!48 = !{!17, !24, i64 224}
!49 = !{!17, !24, i64 232}
!50 = !{!17, !24, i64 240}
!51 = !{!24, !24, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass