; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_audio_processors)

; 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.juce::AudioChannelSet" = type { %"class.juce::BigInteger" }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.50", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.50" = type { ptr }
%"struct.juce::AudioProcessor::BusesProperties" = type { %"class.juce::Array.45", %"class.juce::Array.45" }
%"class.juce::Array.45" = type { %"class.juce::ArrayAllocationBase.46", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.46" = type <{ %"class.juce::HeapBlock.47", i32, [4 x i8] }>
%"class.juce::HeapBlock.47" = type { ptr }
%"struct.juce::AudioProcessor::InOutChannelPair" = type { i16, i16 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2

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

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

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

declare void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8, i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14AudioProcessor30busesPropertiesFromLayoutArrayERKNS_5ArrayINS0_16InOutChannelPairENS_20DummyCriticalSectionELi0EEE(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::BusesProperties") align 8 %0, ptr noundef nonnull align 8 dereferenceable(20) %1) #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.juce::String", align 8
  %10 = alloca %"class.juce::AudioChannelSet", align 8
  %11 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %12 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::AudioChannelSet", align 8
  %15 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  store i1 false, ptr %5, align 1
  call void @_ZN4juce14AudioProcessor15BusesPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %6, ptr noundef nonnull align 8 dereferenceable(20) %16, i32 noundef 0)
          to label %17 unwind label %31

17:                                               ; preds = %2
  %18 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %6, i32 0, i32 0
  %19 = load i16, ptr %18, align 2, !tbaa !9
  %20 = sext i16 %19 to i32
  %21 = icmp sgt i32 %20, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br i1 %21, label %22, label %49

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef @.str.4)
          to label %23 unwind label %35

23:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %11, ptr noundef nonnull align 8 dereferenceable(20) %24, i32 noundef 0)
          to label %25 unwind label %39

25:                                               ; preds = %23
  %26 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %11, i32 0, i32 0
  %27 = load i16, ptr %26, align 2, !tbaa !9
  %28 = sext i16 %27 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %10, i32 noundef %28)
          to label %29 unwind label %39

29:                                               ; preds = %25
  invoke void @_ZN4juce14AudioProcessor15BusesProperties6addBusEbRKNS_6StringERKNS_15AudioChannelSetEb(ptr noundef nonnull align 8 dereferenceable(48) %0, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(40) %10, i1 noundef zeroext true)
          to label %30 unwind label %43

30:                                               ; preds = %29
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %49

31:                                               ; preds = %2
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %87

35:                                               ; preds = %22
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  br label %48

39:                                               ; preds = %25, %23
  %40 = landingpad { ptr, i32 }
          cleanup
  %41 = extractvalue { ptr, i32 } %40, 0
  store ptr %41, ptr %7, align 8
  %42 = extractvalue { ptr, i32 } %40, 1
  store i32 %42, ptr %8, align 4
  br label %47

43:                                               ; preds = %29
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #6
  br label %47

47:                                               ; preds = %43, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  br label %48

48:                                               ; preds = %47, %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %87

49:                                               ; preds = %30, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %12, ptr noundef nonnull align 8 dereferenceable(20) %50, i32 noundef 0)
          to label %51 unwind label %65

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %12, i32 0, i32 1
  %53 = load i16, ptr %52, align 2, !tbaa !12
  %54 = sext i16 %53 to i32
  %55 = icmp sgt i32 %54, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br i1 %55, label %56, label %83

56:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef @.str.5)
          to label %57 unwind label %69

57:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %15, ptr noundef nonnull align 8 dereferenceable(20) %58, i32 noundef 0)
          to label %59 unwind label %73

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"struct.juce::AudioProcessor::InOutChannelPair", ptr %15, i32 0, i32 1
  %61 = load i16, ptr %60, align 2, !tbaa !12
  %62 = sext i16 %61 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8 %14, i32 noundef %62)
          to label %63 unwind label %73

63:                                               ; preds = %59
  invoke void @_ZN4juce14AudioProcessor15BusesProperties6addBusEbRKNS_6StringERKNS_15AudioChannelSetEb(ptr noundef nonnull align 8 dereferenceable(48) %0, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(40) %14, i1 noundef zeroext true)
          to label %64 unwind label %77

64:                                               ; preds = %63
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %83

65:                                               ; preds = %49
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %87

69:                                               ; preds = %56
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %82

73:                                               ; preds = %59, %57
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %81

77:                                               ; preds = %63
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %14) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %82

82:                                               ; preds = %81, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %87

83:                                               ; preds = %64, %51
  store i1 true, ptr %5, align 1
  %84 = load i1, ptr %5, align 1
  br i1 %84, label %86, label %85

85:                                               ; preds = %83
  call void @_ZN4juce14AudioProcessor15BusesPropertiesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %86

86:                                               ; preds = %85, %83
  ret void

87:                                               ; preds = %82, %65, %48, %31
  call void @_ZN4juce14AudioProcessor15BusesPropertiesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  br label %88

88:                                               ; preds = %87
  %89 = load ptr, ptr %7, align 8
  %90 = load i32, ptr %8, align 4
  %91 = insertvalue { ptr, i32 } poison, ptr %89, 0
  %92 = insertvalue { ptr, i32 } %91, i32 %90, 1
  resume { ptr, i32 } %92
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) #5 align 2

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

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


; 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.juce::AudioChannelSet" = type { %"class.juce::BigInteger" }
%"class.juce::BigInteger" = type <{ %"class.juce::HeapBlock.50", [4 x i32], i64, i32, i8, [3 x i8] }>
%"class.juce::HeapBlock.50" = type { ptr }
%"struct.juce::AudioProcessor::BusesProperties" = type { %"class.juce::Array.45", %"class.juce::Array.45" }
%"class.juce::Array.45" = type { %"class.juce::ArrayAllocationBase.46", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.46" = type <{ %"class.juce::HeapBlock.47", i32, [4 x i8] }>
%"class.juce::HeapBlock.47" = type { ptr }
%"struct.juce::AudioProcessor::InOutChannelPair" = type { i16, i16 }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [7 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nounwind
declare void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #1

declare void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #2

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

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

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

declare void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind writable sret(%"class.juce::AudioChannelSet") align 8, i32 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14AudioProcessor30busesPropertiesFromLayoutArrayERKNS_5ArrayINS0_16InOutChannelPairENS_20DummyCriticalSectionELi0EEE(ptr dead_on_unwind noalias nonnull writable sret(%"struct.juce::AudioProcessor::BusesProperties") align 8 %0, ptr noundef nonnull align 8 dereferenceable(20) %1) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %4 = alloca %"class.juce::String", align 8
  %5 = alloca %"class.juce::AudioChannelSet", align 8
  %6 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %7 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::AudioChannelSet", align 8
  %10 = alloca %"struct.juce::AudioProcessor::InOutChannelPair", align 2
  tail call void @_ZN4juce14AudioProcessor15BusesPropertiesC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %3, ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef 0)
  %11 = load i16, ptr %3, align 2, !tbaa !5
  %12 = icmp sgt i16 %11, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  br i1 %12, label %13, label %27

13:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.4)
          to label %14 unwind label %19

14:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %6, ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef 0)
  %15 = load i16, ptr %6, align 2, !tbaa !5
  %16 = sext i16 %15 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %5, i32 noundef %16)
          to label %17 unwind label %21

17:                                               ; preds = %14
  invoke void @_ZN4juce14AudioProcessor15BusesProperties6addBusEbRKNS_6StringERKNS_15AudioChannelSetEb(ptr noundef nonnull align 8 dereferenceable(48) %0, i1 noundef zeroext true, ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(40) %5, i1 noundef zeroext true)
          to label %18 unwind label %23

18:                                               ; preds = %17
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %27

19:                                               ; preds = %13
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %26

21:                                               ; preds = %14
  %22 = landingpad { ptr, i32 }
          cleanup
  br label %25

23:                                               ; preds = %17
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #6
  br label %25

25:                                               ; preds = %23, %21
  %.pn = phi { ptr, i32 } [ %24, %23 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  br label %26

26:                                               ; preds = %25, %19
  %.pn.pn = phi { ptr, i32 } [ %.pn, %25 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %47

27:                                               ; preds = %18, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %7, ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef 0)
  %28 = getelementptr inbounds i8, ptr %7, i64 2
  %29 = load i16, ptr %28, align 2, !tbaa !10
  %30 = icmp sgt i16 %29, 0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br i1 %30, label %31, label %46

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  invoke void @_ZN4juce6StringC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.5)
          to label %32 unwind label %38

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind nonnull writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2 %10, ptr noundef nonnull align 8 dereferenceable(20) %1, i32 noundef 0)
  %33 = getelementptr inbounds i8, ptr %10, i64 2
  %34 = load i16, ptr %33, align 2, !tbaa !10
  %35 = sext i16 %34 to i32
  invoke void @_ZN4juce15AudioChannelSet19canonicalChannelSetEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::AudioChannelSet") align 8 %9, i32 noundef %35)
          to label %36 unwind label %40

36:                                               ; preds = %32
  invoke void @_ZN4juce14AudioProcessor15BusesProperties6addBusEbRKNS_6StringERKNS_15AudioChannelSetEb(ptr noundef nonnull align 8 dereferenceable(48) %0, i1 noundef zeroext false, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(40) %9, i1 noundef zeroext true)
          to label %37 unwind label %42

37:                                               ; preds = %36
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %46

38:                                               ; preds = %31
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %45

40:                                               ; preds = %32
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %44

42:                                               ; preds = %36
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce15AudioChannelSetD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #6
  br label %44

44:                                               ; preds = %42, %40
  %.pn13 = phi { ptr, i32 } [ %43, %42 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %9) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %45

45:                                               ; preds = %44, %38
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %44 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %47

46:                                               ; preds = %27, %37
  ret void

47:                                               ; preds = %45, %26
  %.pn13.pn.pn = phi { ptr, i32 } [ %.pn13.pn, %45 ], [ %.pn.pn, %26 ]
  call void @_ZN4juce14AudioProcessor15BusesPropertiesD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %0) #6
  resume { ptr, i32 } %.pn13.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK4juce5ArrayINS_14AudioProcessor16InOutChannelPairENS_20DummyCriticalSectionELi0EEixEi(ptr dead_on_unwind noalias writable sret(%"struct.juce::AudioProcessor::InOutChannelPair") align 2, ptr noundef nonnull align 8 dereferenceable(20), i32 noundef) local_unnamed_addr #5 align 2

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

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


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