; 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::StringArray" = type { %"class.juce::Array.131" }
%"class.juce::Array.131" = type { %"class.juce::ArrayAllocationBase.132", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.132" = type <{ %"class.juce::HeapBlock.133", i32, [4 x i8] }>
%"class.juce::HeapBlock.133" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::PluginDirectoryScanner" = type <{ ptr, ptr, %"class.juce::StringArray", %"class.juce::File", %"class.juce::StringArray", %"class.juce::Atomic", float, i8, [3 x i8] }>
%"class.juce::File" = type { %"class.juce::String" }
%"class.juce::Atomic" = type { i32, [4 x i8] }

; 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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

; Function Attrs: nounwind
declare void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), 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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce22PluginDirectoryScannerC2ERNS_15KnownPluginListERNS_17AudioPluginFormatENS_14FileSearchPathEbRKNS_4FileEb(ptr noundef nonnull align 8 dereferenceable(85) %0, ptr noundef nonnull align 8 dereferenceable(192) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i1 noundef zeroext %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca ptr, align 8
  %14 = alloca i8, align 1
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %"class.juce::StringArray", align 8
  %18 = alloca %"class.juce::StringArray", align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %"class.juce::String", align 8
  %22 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %23 = zext i1 %4 to i8
  store i8 %23, ptr %12, align 1, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !5
  %24 = zext i1 %6 to i8
  store i8 %24, ptr %14, align 1, !tbaa !9
  %25 = load ptr, ptr %8, align 8
  %26 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %27, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 1
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %29, ptr %28, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %31 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 3
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  invoke void @_ZN4juce4FileC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %33 unwind label %62

33:                                               ; preds = %7
  %34 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 4
  call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  %35 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 5
  call void @_ZN4juce6AtomicIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(4) %35) #6
  %36 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 6
  store float 0.000000e+00, ptr %36, align 8, !tbaa !11
  %37 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 7
  %38 = load i8, ptr %14, align 1, !tbaa !9, !range !23, !noundef !24
  %39 = trunc i8 %38 to i1
  %40 = zext i1 %39 to i8
  store i8 %40, ptr %37, align 4, !tbaa !25
  invoke void @_ZN4juce14FileSearchPath20removeRedundantPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %41 unwind label %66

41:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #6
  %42 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !26
  %44 = load i8, ptr %12, align 1, !tbaa !9, !range !23, !noundef !24
  %45 = trunc i8 %44 to i1
  %46 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 7
  %47 = load i8, ptr %46, align 4, !tbaa !25, !range !23, !noundef !24
  %48 = trunc i8 %47 to i1
  %49 = load ptr, ptr %43, align 8, !tbaa !27
  %50 = getelementptr inbounds ptr, ptr %49, i64 9
  %51 = load ptr, ptr %50, align 8
  invoke void %51(ptr dead_on_unwind writable sret(%"class.juce::StringArray") align 8 %17, ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext %45, i1 noundef zeroext %48)
          to label %52 unwind label %70

52:                                               ; preds = %41
  %53 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce11StringArrayaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  %55 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 3
  invoke void @_ZN4juceL21readDeadMansPedalFileERKNS_4FileE(ptr dead_on_unwind writable sret(%"class.juce::StringArray") align 8 %18, ptr noundef nonnull align 8 dereferenceable(8) %55)
          to label %56 unwind label %74

56:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !29
  br label %57

57:                                               ; preds = %98, %56
  %58 = load i32, ptr %19, align 4, !tbaa !29
  %59 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %78, label %61

61:                                               ; preds = %57
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %101

62:                                               ; preds = %7
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %15, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %16, align 4
  br label %114

66:                                               ; preds = %33
  %67 = landingpad { ptr, i32 }
          cleanup
  %68 = extractvalue { ptr, i32 } %67, 0
  store ptr %68, ptr %15, align 8
  %69 = extractvalue { ptr, i32 } %67, 1
  store i32 %69, ptr %16, align 4
  br label %113

70:                                               ; preds = %41
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %15, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #6
  br label %113

74:                                               ; preds = %52
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %15, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %16, align 4
  br label %112

78:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %79 = load i32, ptr %19, align 4, !tbaa !29
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %18, i32 noundef %79) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %80) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %81 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  %82 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #6
  store i32 %82, ptr %22, align 4, !tbaa !29
  br label %83

83:                                               ; preds = %96, %78
  %84 = load i32, ptr %22, align 4, !tbaa !29
  %85 = add nsw i32 %84, -1
  store i32 %85, ptr %22, align 4, !tbaa !29
  %86 = icmp sge i32 %85, 0
  br i1 %86, label %88, label %87

87:                                               ; preds = %83
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %97

88:                                               ; preds = %83
  %89 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  %90 = load i32, ptr %22, align 4, !tbaa !29
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %89, i32 noundef %90) #6
  %92 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(8) %91) #6
  br i1 %92, label %93, label %96

93:                                               ; preds = %88
  %94 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  %95 = load i32, ptr %22, align 4, !tbaa !29
  call void @_ZN4juce11StringArray4moveEii(ptr noundef nonnull align 8 dereferenceable(24) %94, i32 noundef %95, i32 noundef -1) #6
  br label %96

96:                                               ; preds = %93, %88
  br label %83, !llvm.loop !30

97:                                               ; preds = %87
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %19, align 4, !tbaa !29
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %19, align 4, !tbaa !29
  br label %57, !llvm.loop !32

101:                                              ; preds = %61
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 3
  invoke void @_ZN4juce22PluginDirectoryScanner35applyBlacklistingsFromDeadMansPedalERNS_15KnownPluginListERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(192) %102, ptr noundef nonnull align 8 dereferenceable(8) %103)
          to label %104 unwind label %108

104:                                              ; preds = %101
  %105 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 5
  %106 = getelementptr inbounds %"class.juce::PluginDirectoryScanner", ptr %25, i32 0, i32 2
  %107 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #6
  call void @_ZN4juce6AtomicIiE3setEi(ptr noundef nonnull align 8 dereferenceable(4) %105, i32 noundef %107) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  ret void

108:                                              ; preds = %101
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %15, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %16, align 4
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  br label %112

112:                                              ; preds = %108, %74
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %113

113:                                              ; preds = %112, %70, %66
  call void @_ZN4juce6AtomicIiED2Ev(ptr noundef nonnull align 8 dereferenceable(4) %35) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %34) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %31) #6
  br label %114

114:                                              ; preds = %113, %62
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  br label %115

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

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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce11StringArrayaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #1

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

; Function Attrs: nounwind
declare void @_ZN4juce11StringArray4moveEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce22PluginDirectoryScanner35applyBlacklistingsFromDeadMansPedalERNS_15KnownPluginListERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce6AtomicIiE3setEi(ptr noundef nonnull align 8 dereferenceable(4), i32 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce6AtomicIiED2Ev(ptr noundef nonnull align 8 dereferenceable(4)) unnamed_addr #2 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 = { 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 #3 = { 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 = { "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, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !22, i64 80}
!12 = !{!"_ZTSN4juce22PluginDirectoryScannerE", !6, i64 0, !6, i64 8, !13, i64 16, !18, i64 40, !13, i64 48, !21, i64 72, !22, i64 80, !10, i64 84}
!13 = !{!"_ZTSN4juce11StringArrayE", !14, i64 0}
!14 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !15, i64 0, !17, i64 16}
!15 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !16, i64 0, !17, i64 8}
!16 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !6, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!"_ZTSN4juce4FileE", !19, i64 0}
!19 = !{!"_ZTSN4juce6StringE", !20, i64 0}
!20 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!21 = !{!"_ZTSN4juce6AtomicIiEE", !17, i64 0}
!22 = !{!"float", !7, i64 0}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!12, !10, i64 84}
!26 = !{!12, !6, i64 8}
!27 = !{!28, !28, i64 0}
!28 = !{!"vtable pointer", !8, i64 0}
!29 = !{!17, !17, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31}


; 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::StringArray" = type { %"class.juce::Array.131" }
%"class.juce::Array.131" = type { %"class.juce::ArrayAllocationBase.132", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.132" = type <{ %"class.juce::HeapBlock.133", i32, [4 x i8] }>
%"class.juce::HeapBlock.133" = type { ptr }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }

; 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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8), 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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce22PluginDirectoryScannerC2ERNS_15KnownPluginListERNS_17AudioPluginFormatENS_14FileSearchPathEbRKNS_4FileEb(ptr noundef nonnull align 8 dereferenceable(85) %0, ptr noundef nonnull align 8 dereferenceable(192) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef %3, i1 noundef zeroext %4, ptr noundef nonnull align 8 dereferenceable(8) %5, i1 noundef zeroext %6) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca %"class.juce::StringArray", align 8
  %9 = alloca %"class.juce::StringArray", align 8
  %10 = alloca %"class.juce::String", align 8
  store ptr %1, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  store ptr %2, ptr %11, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 16
  tail call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 40
  invoke void @_ZN4juce4FileC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %14 unwind label %31

14:                                               ; preds = %7
  %15 = zext i1 %6 to i8
  %16 = getelementptr inbounds i8, ptr %0, i64 48
  tail call void @_ZN4juce11StringArrayC1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN4juce6AtomicIiEC2Ev(ptr noundef nonnull align 8 dereferenceable(4) %17) #6
  %18 = getelementptr inbounds i8, ptr %0, i64 80
  store float 0.000000e+00, ptr %18, align 8, !tbaa !9
  %19 = getelementptr inbounds i8, ptr %0, i64 84
  store i8 %15, ptr %19, align 4, !tbaa !22
  invoke void @_ZN4juce14FileSearchPath20removeRedundantPathsEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %20 unwind label %33

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %21 = load ptr, ptr %11, align 8, !tbaa !23
  %22 = load i8, ptr %19, align 4, !tbaa !22, !range !24, !noundef !25
  %23 = trunc nuw i8 %22 to i1
  %24 = load ptr, ptr %21, align 8, !tbaa !26
  %25 = getelementptr inbounds i8, ptr %24, i64 72
  %26 = load ptr, ptr %25, align 8
  invoke void %26(ptr dead_on_unwind nonnull writable sret(%"class.juce::StringArray") align 8 %8, ptr noundef nonnull align 8 dereferenceable(8) %21, ptr noundef nonnull align 8 dereferenceable(24) %3, i1 noundef zeroext %4, i1 noundef zeroext %23)
          to label %27 unwind label %35

27:                                               ; preds = %20
  %28 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce11StringArrayaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZN4juceL21readDeadMansPedalFileERKNS_4FileE(ptr dead_on_unwind nonnull writable sret(%"class.juce::StringArray") align 8 %9, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %.preheader unwind label %37

.preheader:                                       ; preds = %27
  %29 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %.lr.ph24, label %._crit_edge25

._crit_edge25:                                    ; preds = %._crit_edge, %.preheader
  invoke void @_ZN4juce22PluginDirectoryScanner35applyBlacklistingsFromDeadMansPedalERNS_15KnownPluginListERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(192) %1, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %51 unwind label %53

31:                                               ; preds = %7
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %57

33:                                               ; preds = %14
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %56

35:                                               ; preds = %20
  %36 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %56

37:                                               ; preds = %27
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %55

.lr.ph24:                                         ; preds = %.preheader, %._crit_edge
  %.01423 = phi i32 [ %42, %._crit_edge ], [ 0, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %9, i32 noundef %.01423) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %39) #6
  %40 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %49, %.lr.ph24
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %42 = add nuw nsw i32 %.01423, 1
  %43 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %44 = icmp slt i32 %42, %43
  br i1 %44, label %.lr.ph24, label %._crit_edge25, !llvm.loop !28

.lr.ph:                                           ; preds = %.lr.ph24, %49
  %.in = phi i32 [ %45, %49 ], [ %40, %.lr.ph24 ]
  %45 = add nsw i32 %.in, -1
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce11StringArrayixEi(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %45) #6
  %47 = call noundef zeroext i1 @_ZN4juceeqERKNS_6StringES2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %46) #6
  br i1 %47, label %48, label %49

48:                                               ; preds = %.lr.ph
  call void @_ZN4juce11StringArray4moveEii(ptr noundef nonnull align 8 dereferenceable(24) %12, i32 noundef %45, i32 noundef -1) #6
  br label %49

49:                                               ; preds = %48, %.lr.ph
  %50 = icmp ugt i32 %.in, 1
  br i1 %50, label %.lr.ph, label %._crit_edge, !llvm.loop !30

51:                                               ; preds = %._crit_edge25
  %52 = call noundef i32 @_ZNK4juce11StringArray4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @_ZN4juce6AtomicIiE3setEi(ptr noundef nonnull align 8 dereferenceable(4) %17, i32 noundef %52) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  ret void

53:                                               ; preds = %._crit_edge25
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %55

55:                                               ; preds = %53, %37
  %.pn = phi { ptr, i32 } [ %54, %53 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %56

56:                                               ; preds = %55, %35, %33
  %.pn.pn = phi { ptr, i32 } [ %.pn, %55 ], [ %36, %35 ], [ %34, %33 ]
  call void @_ZN4juce6AtomicIiED2Ev(ptr noundef nonnull align 8 dereferenceable(4) %17) #6
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZN4juce4FileD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %57

57:                                               ; preds = %56, %31
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %56 ], [ %32, %31 ]
  call void @_ZN4juce11StringArrayD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(24) ptr @_ZN4juce11StringArrayaSEOS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1

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

; Function Attrs: nounwind
declare void @_ZN4juce11StringArray4moveEii(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4juce22PluginDirectoryScanner35applyBlacklistingsFromDeadMansPedalERNS_15KnownPluginListERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(192), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce6AtomicIiE3setEi(ptr noundef nonnull align 8 dereferenceable(4), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4juce6AtomicIiED2Ev(ptr noundef nonnull align 8 dereferenceable(4)) unnamed_addr #2 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 = { 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 #3 = { 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 = { "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, !20, i64 80}
!10 = !{!"_ZTSN4juce22PluginDirectoryScannerE", !6, i64 0, !6, i64 8, !11, i64 16, !16, i64 40, !11, i64 48, !19, i64 72, !20, i64 80, !21, i64 84}
!11 = !{!"_ZTSN4juce11StringArrayE", !12, i64 0}
!12 = !{!"_ZTSN4juce5ArrayINS_6StringENS_20DummyCriticalSectionELi0EEE", !13, i64 0, !15, i64 16}
!13 = !{!"_ZTSN4juce19ArrayAllocationBaseINS_6StringENS_20DummyCriticalSectionEEE", !14, i64 0, !15, i64 8}
!14 = !{!"_ZTSN4juce9HeapBlockINS_6StringELb0EEE", !6, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4juce4FileE", !17, i64 0}
!17 = !{!"_ZTSN4juce6StringE", !18, i64 0}
!18 = !{!"_ZTSN4juce16CharPointer_UTF8E", !6, i64 0}
!19 = !{!"_ZTSN4juce6AtomicIiEE", !15, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{!10, !21, i64 84}
!23 = !{!10, !6, i64 8}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass