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

; 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::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Random" = type { i64 }
%"class.juce::StringArray" = type { %"class.juce::Array" }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MemoryBlock" = type { %"class.juce::HeapBlock.38", i64 }
%"class.juce::HeapBlock.38" = type { ptr }
%"class.juce::ChildProcessMaster" = type { ptr, %"class.juce::ChildProcess", %"class.juce::ScopedPointer.41" }
%"class.juce::ChildProcess" = type { %"class.juce::ScopedPointer.40" }
%"class.juce::ScopedPointer.40" = type { ptr }
%"class.juce::ScopedPointer.41" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN4juceL12startMessageE = external hidden global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce22InterprocessConnection11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(96)) #4 align 2

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

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

declare void @_ZN4juce11MemoryBlockC1EPKvm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18ChildProcessMaster18launchSlaveProcessERKNS_4FileERKNS_6StringEii(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3, i32 noundef %4) #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::String", align 8
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::Random", align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.juce::StringArray", align 8
  %18 = alloca %"class.juce::String", align 8
  %19 = alloca %"class.juce::String", align 8
  %20 = alloca %"class.juce::MemoryBlock", align 8
  %21 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  %22 = load ptr, ptr %7, align 8
  %23 = getelementptr inbounds %"class.juce::ChildProcessMaster", ptr %22, i32 0, i32 2
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef null)
  br label %25

25:                                               ; preds = %5
  br label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %27 = call noundef i64 @_ZN4juce6Random9nextInt64Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  invoke void @_ZN4juce6String11toHexStringEx(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, i64 noundef %27)
          to label %28 unwind label %64

28:                                               ; preds = %26
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %12, ptr noundef @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %29 unwind label %68

29:                                               ; preds = %28
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %30) #8
  invoke void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %31)
          to label %32 unwind label %73

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  invoke void @_ZN4juceL20getCommandLinePrefixERKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %19, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %34 unwind label %77

34:                                               ; preds = %32
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %18, ptr noundef %19, ptr noundef nonnull align 8 dereferenceable(8) %12)
          to label %35 unwind label %81

35:                                               ; preds = %34
  invoke void @_ZN4juce11StringArray3addEONS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %36 unwind label %85

36:                                               ; preds = %35
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  %37 = getelementptr inbounds %"class.juce::ChildProcessMaster", ptr %22, i32 0, i32 1
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = invoke noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(24) %17, i32 noundef %38)
          to label %40 unwind label %73

40:                                               ; preds = %36
  br i1 %39, label %41, label %108

41:                                               ; preds = %40
  %42 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 424) #9
          to label %43 unwind label %73

43:                                               ; preds = %41
  %44 = load i32, ptr %10, align 4, !tbaa !9
  %45 = icmp sle i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  br label %49

47:                                               ; preds = %43
  %48 = load i32, ptr %10, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %47, %46
  %50 = phi i32 [ 8000, %46 ], [ %48, %47 ]
  invoke void @_ZN4juce18ChildProcessMaster10ConnectionC2ERS0_RKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(424) %42, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(8) %12, i32 noundef %50)
          to label %51 unwind label %91

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"class.juce::ChildProcessMaster", ptr %22, i32 0, i32 2
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef %42)
          to label %54 unwind label %73

54:                                               ; preds = %51
  %55 = getelementptr inbounds %"class.juce::ChildProcessMaster", ptr %22, i32 0, i32 2
  %56 = call noundef ptr @_ZNK4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %55) #8
  %57 = invoke noundef zeroext i1 @_ZNK4juce22InterprocessConnection11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(96) %56)
          to label %58 unwind label %73

58:                                               ; preds = %54
  br i1 %57, label %59, label %104

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  %60 = load ptr, ptr @_ZN4juceL12startMessageE, align 8, !tbaa !5
  invoke void @_ZN4juce11MemoryBlockC1EPKvm(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %60, i64 noundef 8)
          to label %61 unwind label %95

61:                                               ; preds = %59
  %62 = invoke noundef zeroext i1 @_ZN4juce18ChildProcessMaster18sendMessageToSlaveERKNS_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(16) %20)
          to label %63 unwind label %99

63:                                               ; preds = %61
  call void @_ZN4juce11MemoryBlockD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  store i1 true, ptr %6, align 1
  store i32 1, ptr %21, align 4
  br label %109

64:                                               ; preds = %26
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %15, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %16, align 4
  br label %72

68:                                               ; preds = %28
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %15, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %16, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  br label %72

72:                                               ; preds = %68, %64
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %112

73:                                               ; preds = %104, %54, %51, %41, %36, %29
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %15, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %16, align 4
  br label %111

77:                                               ; preds = %32
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %15, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %16, align 4
  br label %90

81:                                               ; preds = %34
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %15, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %16, align 4
  br label %89

85:                                               ; preds = %35
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %15, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %16, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  br label %89

89:                                               ; preds = %85, %81
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %19) #8
  br label %90

90:                                               ; preds = %89, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %111

91:                                               ; preds = %49
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %15, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %16, align 4
  call void @_ZdlPvm(ptr noundef %42, i64 noundef 424) #10
  br label %111

95:                                               ; preds = %59
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %15, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %16, align 4
  br label %103

99:                                               ; preds = %61
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %15, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %16, align 4
  call void @_ZN4juce11MemoryBlockD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #8
  br label %103

103:                                              ; preds = %99, %95
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  br label %111

104:                                              ; preds = %58
  %105 = getelementptr inbounds %"class.juce::ChildProcessMaster", ptr %22, i32 0, i32 2
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef null)
          to label %107 unwind label %73

107:                                              ; preds = %104
  br label %108

108:                                              ; preds = %107, %40
  store i1 false, ptr %6, align 1
  store i32 1, ptr %21, align 4
  br label %109

109:                                              ; preds = %108, %63
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  %110 = load i1, ptr %6, align 1
  ret i1 %110

111:                                              ; preds = %103, %91, %90, %73
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #8
  br label %112

112:                                              ; preds = %111, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %15, align 8
  %115 = load i32, ptr %16, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

declare void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZN4juce6String11toHexStringEx(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, i64 noundef) #5

declare void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

; Function Attrs: nounwind
declare noundef i64 @_ZN4juce6Random9nextInt64Ev(ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

declare void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5

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

declare void @_ZN4juce11StringArray3addEONS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) #5

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL20getCommandLinePrefixERKNS_6StringE(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce18ChildProcessMaster10ConnectionC2ERS0_RKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #4 align 2

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

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 = { 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 #3 = { nobuiltin 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 #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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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 = !{!"int", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::Random" = type { i64 }
%"class.juce::StringArray" = type { %"class.juce::Array" }
%"class.juce::Array" = type { %"class.juce::ArrayAllocationBase", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase" = type <{ %"class.juce::HeapBlock", i32, [4 x i8] }>
%"class.juce::HeapBlock" = type { ptr }
%"class.juce::MemoryBlock" = type { %"class.juce::HeapBlock.38", i64 }
%"class.juce::HeapBlock.38" = type { ptr }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN4juceL12startMessageE = external hidden local_unnamed_addr global ptr, align 8

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce22InterprocessConnection11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #4 align 2

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

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

declare void @_ZN4juce11MemoryBlockC1EPKvm(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef, i64 noundef) unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce18ChildProcessMaster18launchSlaveProcessERKNS_4FileERKNS_6StringEii(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca %"class.juce::String", align 8
  %8 = alloca %"class.juce::Random", align 8
  %9 = alloca %"class.juce::StringArray", align 8
  %10 = alloca %"class.juce::String", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::MemoryBlock", align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 16
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %15 = call noundef i64 @_ZN4juce6Random9nextInt64Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  invoke void @_ZN4juce6String11toHexStringEx(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %7, i64 noundef %15)
          to label %16 unwind label %41

16:                                               ; preds = %5
  invoke void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %6, ptr noundef nonnull @.str.5, ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %17 unwind label %43

17:                                               ; preds = %16
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce4File15getFullPathNameEv(ptr noundef nonnull align 8 dereferenceable(8) %1) #8
  invoke void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %19 unwind label %46

19:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  invoke void @_ZN4juceL20getCommandLinePrefixERKNS_6StringE(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %11, ptr noundef nonnull align 8 dereferenceable(8) %2)
          to label %20 unwind label %48

20:                                               ; preds = %19
  invoke void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %10, ptr noundef nonnull %11, ptr noundef nonnull align 8 dereferenceable(8) %6)
          to label %21 unwind label %50

21:                                               ; preds = %20
  invoke void @_ZN4juce11StringArray3addEONS_6StringE(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %22 unwind label %52

22:                                               ; preds = %21
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  %24 = invoke noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %4)
          to label %25 unwind label %46

25:                                               ; preds = %22
  br i1 %24, label %26, label %65

26:                                               ; preds = %25
  %27 = invoke noalias noundef nonnull dereferenceable(424) ptr @_Znwm(i64 noundef 424) #9
          to label %28 unwind label %46

28:                                               ; preds = %26
  %29 = icmp slt i32 %3, 1
  %30 = select i1 %29, i32 8000, i32 %3
  invoke void @_ZN4juce18ChildProcessMaster10ConnectionC2ERS0_RKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(424) %27, ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %6, i32 noundef %30)
          to label %31 unwind label %56

31:                                               ; preds = %28
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull %27)
  %33 = call noundef ptr @_ZNK4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %13) #8
  %34 = invoke noundef zeroext i1 @_ZNK4juce22InterprocessConnection11isConnectedEv(ptr noundef nonnull align 8 dereferenceable(96) %33)
          to label %35 unwind label %46

35:                                               ; preds = %31
  br i1 %34, label %36, label %63

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #8
  %37 = load ptr, ptr @_ZN4juceL12startMessageE, align 8, !tbaa !5
  invoke void @_ZN4juce11MemoryBlockC1EPKvm(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef %37, i64 noundef 8)
          to label %38 unwind label %58

38:                                               ; preds = %36
  %39 = invoke noundef zeroext i1 @_ZN4juce18ChildProcessMaster18sendMessageToSlaveERKNS_11MemoryBlockE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %40 unwind label %60

40:                                               ; preds = %38
  call void @_ZN4juce11MemoryBlockD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %65

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

43:                                               ; preds = %16
  %44 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #8
  br label %45

45:                                               ; preds = %43, %41
  %.pn = phi { ptr, i32 } [ %44, %43 ], [ %42, %41 ]
  call void @_ZN4juce6RandomD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #8
  br label %67

46:                                               ; preds = %31, %26, %22, %17
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %66

48:                                               ; preds = %19
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %55

50:                                               ; preds = %20
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %54

52:                                               ; preds = %21
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #8
  br label %54

54:                                               ; preds = %52, %50
  %.pn16 = phi { ptr, i32 } [ %53, %52 ], [ %51, %50 ]
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #8
  br label %55

55:                                               ; preds = %54, %48
  %.pn16.pn = phi { ptr, i32 } [ %.pn16, %54 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  br label %66

56:                                               ; preds = %28
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %27, i64 noundef 424) #10
  br label %66

58:                                               ; preds = %36
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %62

60:                                               ; preds = %38
  %61 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce11MemoryBlockD1Ev(ptr noundef nonnull align 8 dereferenceable(16) %12) #8
  br label %62

62:                                               ; preds = %60, %58
  %.pn19 = phi { ptr, i32 } [ %61, %60 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #8
  br label %66

63:                                               ; preds = %35
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_18ChildProcessMaster10ConnectionEEaSEPS2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef null)
  br label %65

65:                                               ; preds = %25, %63, %40
  %.014 = phi i1 [ true, %40 ], [ false, %63 ], [ false, %25 ]
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  ret i1 %.014

66:                                               ; preds = %62, %56, %55, %46
  %.pn19.pn = phi { ptr, i32 } [ %.pn19, %62 ], [ %47, %46 ], [ %57, %56 ], [ %.pn16.pn, %55 ]
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #8
  br label %67

67:                                               ; preds = %66, %45
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %66 ], [ %.pn, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  resume { ptr, i32 } %.pn19.pn.pn
}

declare void @_ZN4juceplEPKcRKNS_6StringE(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZN4juce6String11toHexStringEx(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, i64 noundef) local_unnamed_addr #5

declare void @_ZN4juce6RandomC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5

; Function Attrs: nounwind
declare noundef i64 @_ZN4juce6Random9nextInt64Ev(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

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

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

declare void @_ZN4juce11StringArray3addERKNS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

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

declare void @_ZN4juce11StringArray3addEONS_6StringE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

declare void @_ZN4juceplENS_6StringERKS0_(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juceL20getCommandLinePrefixERKNS_6StringE(ptr dead_on_unwind noalias writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare noundef zeroext i1 @_ZN4juce12ChildProcess5startERKNS_11StringArrayEi(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce18ChildProcessMaster10ConnectionC2ERS0_RKNS_6StringEi(ptr noundef nonnull align 8 dereferenceable(424), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) unnamed_addr #4 align 2

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

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 = { 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 #3 = { nobuiltin 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 #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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
attributes #10 = { builtin 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"}


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