; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode/juce_data_structures.ll (ZN4juce14PropertiesFile9loadAsXmlEv)

; 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::XmlDocument" = type { %"class.juce::String", %"class.juce::CharPointer_UTF8", i8, i8, %"class.juce::String", %"class.juce::String", %"class.juce::StringArray", i8, i8, %"class.juce::ScopedPointer.62" }
%"class.juce::StringArray" = type { %"class.juce::Array.55" }
%"class.juce::Array.55" = type { %"class.juce::ArrayAllocationBase.56", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.56" = type <{ %"class.juce::HeapBlock.57", i32, [4 x i8] }>
%"class.juce::HeapBlock.57" = type { ptr }
%"class.juce::ScopedPointer.62" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::PropertiesFile" = type <{ %"class.juce::PropertySet.base", [7 x i8], %"class.juce::ChangeBroadcaster", %"class.juce::Timer", %"class.juce::File", %"struct.juce::PropertiesFile::Options", i8, i8, [6 x i8] }>
%"class.juce::PropertySet.base" = type <{ ptr, %"class.juce::StringPairArray", ptr, %"class.juce::CriticalSection", i8 }>
%"class.juce::StringPairArray" = type <{ %"class.juce::StringArray", %"class.juce::StringArray", i8, [7 x i8] }>
%"class.juce::CriticalSection" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.juce::ChangeBroadcaster" = type { ptr, %"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback", %"class.juce::ListenerList.32" }
%"class.juce::ChangeBroadcaster::ChangeBroadcasterCallback" = type { %"class.juce::AsyncUpdater", ptr }
%"class.juce::AsyncUpdater" = type { ptr, %"class.juce::ReferenceCountedObjectPtr" }
%"class.juce::ReferenceCountedObjectPtr" = type { ptr }
%"class.juce::ListenerList.32" = type { %"class.juce::Array.33" }
%"class.juce::Array.33" = type { %"class.juce::ArrayAllocationBase.34", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.34" = type <{ %"class.juce::HeapBlock.35", i32, [4 x i8] }>
%"class.juce::HeapBlock.35" = type { ptr }
%"class.juce::Timer" = type { ptr, i32, i32, ptr, ptr }
%"class.juce::File" = type { %"class.juce::String" }
%"struct.juce::PropertiesFile::Options" = type { %"class.juce::String", %"class.juce::String", %"class.juce::String", %"class.juce::String", i8, i8, i8, i32, i32, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32)) #2 align 2

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

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

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

declare void @_ZNK4juce10XmlElement14createDocumentENS_9StringRefEbbS1_i(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, i32 noundef) #4

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

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

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

; 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile9loadAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %0) #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca %"class.juce::XmlDocument", align 8
  %5 = alloca %"class.juce::ScopedPointer", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::StringRef", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"class.juce::StringRef", align 8
  %11 = alloca %"class.juce::String", align 8
  %12 = alloca %"class.juce::StringRef", align 8
  %13 = alloca %"class.juce::String", align 8
  %14 = alloca %"class.juce::StringRef", align 8
  %15 = alloca %"class.juce::StringRef", align 8
  %16 = alloca %"class.juce::StringRef", align 8
  %17 = alloca %"class.juce::StringRef", align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr %4) #6
  %20 = getelementptr inbounds %"class.juce::PropertiesFile", ptr %19, i32 0, i32 4
  call void @_ZN4juce11XmlDocumentC1ERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(80) %4, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %21 = invoke noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80) %4, i1 noundef zeroext true)
          to label %22 unwind label %42

22:                                               ; preds = %1
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %21) #6
  %23 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %24 = icmp ne ptr %23, null
  br i1 %24, label %25, label %89

25:                                               ; preds = %22
  %26 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef @.str.10) #6
  %27 = call noundef zeroext i1 @_ZNK4juce10XmlElement10hasTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef %8) #6
  br i1 %27, label %28, label %89

28:                                               ; preds = %25
  %29 = invoke noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80) %4, i1 noundef zeroext false)
          to label %30 unwind label %46

30:                                               ; preds = %28
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_10XmlElementEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %29)
          to label %32 unwind label %46

32:                                               ; preds = %30
  %33 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %34 = icmp ne ptr %33, null
  br i1 %34, label %35, label %88

35:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %36 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.11) #6
  %37 = call noundef ptr @_ZNK4juce10XmlElement14getChildByNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef %10) #6
  store ptr %37, ptr %9, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %81, %35
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %50, label %41

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

42:                                               ; preds = %1
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %6, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %7, align 4
  br label %93

46:                                               ; preds = %30, %28
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %6, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %7, align 4
  br label %92

50:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %51 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef @.str.12) #6
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce10XmlElement18getStringAttributeENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %51, ptr noundef %12) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %52) #6
  %53 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  br i1 %53, label %54, label %77

54:                                               ; preds = %50
  %55 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = call noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32) %56) #6
  %58 = icmp ne ptr %57, null
  br i1 %58, label %59, label %63

59:                                               ; preds = %54
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = call noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32) %60) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef @.str.13) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef @.str) #6
  invoke void @_ZNK4juce10XmlElement14createDocumentENS_9StringRefEbbS1_i(ptr dead_on_unwind writable sret(%"class.juce::String") align 8 %13, ptr noundef nonnull align 8 dereferenceable(32) %61, ptr noundef %14, i1 noundef zeroext true, i1 noundef zeroext true, ptr noundef %15, i32 noundef 60)
          to label %62 unwind label %68

62:                                               ; preds = %59
  br label %66

63:                                               ; preds = %54
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef @.str.14) #6
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce10XmlElement18getStringAttributeENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %64, ptr noundef %16) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %65) #6
  br label %66

66:                                               ; preds = %63, %62
  invoke void @_ZN4juce15StringPairArray3setERKNS_6StringES3_(ptr noundef nonnull align 8 dereferenceable(49) %55, ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %67 unwind label %72

67:                                               ; preds = %66
  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 %77

68:                                               ; preds = %59
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %6, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %7, align 4
  br label %76

72:                                               ; preds = %66
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  br label %76

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %86

77:                                               ; preds = %67, %50
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @.str.11) #6
  %80 = invoke noundef ptr @_ZNK4juce10XmlElement25getNextElementWithTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %79, ptr noundef %17)
          to label %81 unwind label %82

81:                                               ; preds = %78
  store ptr %80, ptr %9, align 8, !tbaa !5
  br label %38, !llvm.loop !9

82:                                               ; preds = %78
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %6, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %7, align 4
  br label %86

86:                                               ; preds = %82, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %92

87:                                               ; preds = %41
  store i1 true, ptr %2, align 1
  store i32 1, ptr %18, align 4
  br label %90

88:                                               ; preds = %32
  br label %89

89:                                               ; preds = %88, %25, %22
  store i1 false, ptr %2, align 1
  store i32 1, ptr %18, align 4
  br label %90

90:                                               ; preds = %89, %87
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #6
  %91 = load i1, ptr %2, align 1
  ret i1 %91

92:                                               ; preds = %86, %46
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  br label %93

93:                                               ; preds = %92, %42
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr %4) #6
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %6, align 8
  %96 = load i32, ptr %7, align 4
  %97 = insertvalue { ptr, i32 } poison, ptr %95, 0
  %98 = insertvalue { ptr, i32 } %97, i32 %96, 1
  resume { ptr, i32 } %98
}

declare void @_ZN4juce11XmlDocumentC1ERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80), i1 noundef zeroext) #4

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

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

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

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

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

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

declare void @_ZN4juce15StringPairArray3setERKNS_6StringES3_(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #4

declare noundef ptr @_ZNK4juce10XmlElement25getNextElementWithTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

; Function Attrs: nounwind
declare void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) 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 = { 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 = { 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 = { "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 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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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

%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::XmlDocument" = type { %"class.juce::String", %"class.juce::CharPointer_UTF8", i8, i8, %"class.juce::String", %"class.juce::String", %"class.juce::StringArray", i8, i8, %"class.juce::ScopedPointer.62" }
%"class.juce::StringArray" = type { %"class.juce::Array.55" }
%"class.juce::Array.55" = type { %"class.juce::ArrayAllocationBase.56", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.56" = type <{ %"class.juce::HeapBlock.57", i32, [4 x i8] }>
%"class.juce::HeapBlock.57" = type { ptr }
%"class.juce::ScopedPointer.62" = type { ptr }
%"class.juce::ScopedPointer" = type { ptr }
%"class.juce::StringRef" = type { %"class.juce::CharPointer_UTF8" }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [4 x i8], align 1

declare i32 @__gxx_personality_v0(...)

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

; 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: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2 align 2

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

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

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

declare void @_ZNK4juce10XmlElement14createDocumentENS_9StringRefEbbS1_i(ptr dead_on_unwind writable sret(%"class.juce::String") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i1 noundef zeroext, i1 noundef zeroext, ptr noundef, i32 noundef) local_unnamed_addr #4

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

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

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

; 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: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce14PropertiesFile9loadAsXmlEv(ptr noundef nonnull align 8 dereferenceable(274) %0) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.juce::XmlDocument", align 8
  %3 = alloca %"class.juce::ScopedPointer", align 8
  %4 = alloca %"class.juce::StringRef", align 8
  %5 = alloca %"class.juce::StringRef", align 8
  %6 = alloca %"class.juce::String", align 8
  %7 = alloca %"class.juce::StringRef", align 8
  %8 = alloca %"class.juce::String", align 8
  %9 = alloca %"class.juce::StringRef", align 8
  %10 = alloca %"class.juce::StringRef", align 8
  %11 = alloca %"class.juce::StringRef", align 8
  %12 = alloca %"class.juce::StringRef", align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %2) #6
  %13 = getelementptr inbounds i8, ptr %0, i64 208
  call void @_ZN4juce11XmlDocumentC1ERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(80) %2, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %14 = invoke noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80) %2, i1 noundef zeroext true)
          to label %15 unwind label %29

15:                                               ; preds = %1
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %14) #6
  %16 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %.loopexit, label %17

17:                                               ; preds = %15
  %18 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.10) #6
  %19 = call noundef zeroext i1 @_ZNK4juce10XmlElement10hasTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull %4) #6
  br i1 %19, label %20, label %.loopexit

20:                                               ; preds = %17
  %21 = invoke noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80) %2, i1 noundef zeroext false)
          to label %22 unwind label %31

22:                                               ; preds = %20
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN4juce13ScopedPointerINS_10XmlElementEEaSEPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %21)
  %24 = call noundef ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  %.not15 = icmp eq ptr %24, null
  br i1 %.not15, label %.loopexit, label %25

25:                                               ; preds = %22
  %26 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4juce13ScopedPointerINS_10XmlElementEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull @.str.11) #6
  %27 = call noundef ptr @_ZNK4juce10XmlElement14getChildByNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull %5) #6
  br label %28

28:                                               ; preds = %50, %25
  %.0 = phi ptr [ %27, %25 ], [ %51, %50 ]
  %.not16 = icmp eq ptr %.0, null
  br i1 %.not16, label %.loopexit, label %33

29:                                               ; preds = %1
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %55

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

33:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull @.str.12) #6
  %34 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce10XmlElement18getStringAttributeENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %.0, ptr noundef nonnull %7) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %34) #6
  %35 = call noundef zeroext i1 @_ZNK4juce6String10isNotEmptyEv(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  br i1 %35, label %36, label %50

36:                                               ; preds = %33
  %37 = call noundef nonnull align 8 dereferenceable(49) ptr @_ZN4juce11PropertySet16getAllPropertiesEv(ptr noundef nonnull align 8 dereferenceable(113) %0) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %38 = call noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32) %.0) #6
  %.not17 = icmp eq ptr %38, null
  br i1 %.not17, label %41, label %39

39:                                               ; preds = %36
  %40 = call noundef ptr @_ZNK4juce10XmlElement20getFirstChildElementEv(ptr noundef nonnull align 8 dereferenceable(32) %.0) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull @.str.13) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull @.str) #6
  invoke void @_ZNK4juce10XmlElement14createDocumentENS_9StringRefEbbS1_i(ptr dead_on_unwind nonnull writable sret(%"class.juce::String") align 8 %8, ptr noundef nonnull align 8 dereferenceable(32) %40, ptr noundef nonnull %9, i1 noundef zeroext true, i1 noundef zeroext true, ptr noundef nonnull %10, i32 noundef 60)
          to label %43 unwind label %45

41:                                               ; preds = %36
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @.str.14) #6
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK4juce10XmlElement18getStringAttributeENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %.0, ptr noundef nonnull %11) #6
  call void @_ZN4juce6StringC1ERKS0_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %42) #6
  br label %43

43:                                               ; preds = %39, %41
  invoke void @_ZN4juce15StringPairArray3setERKNS_6StringES3_(ptr noundef nonnull align 8 dereferenceable(49) %37, ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %44 unwind label %47

44:                                               ; preds = %43
  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 %50

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

47:                                               ; preds = %43
  %48 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  br label %49

49:                                               ; preds = %47, %45
  %.pn = phi { ptr, i32 } [ %48, %47 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %54

50:                                               ; preds = %44, %33
  call void @_ZN4juce6StringD1Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @_ZN4juce9StringRefC1EPKc(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull @.str.11) #6
  %51 = invoke noundef ptr @_ZNK4juce10XmlElement25getNextElementWithTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32) %.0, ptr noundef nonnull %12)
          to label %28 unwind label %52, !llvm.loop !5

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

.loopexit:                                        ; preds = %28, %15, %17, %22
  %.014 = phi i1 [ false, %22 ], [ false, %17 ], [ false, %15 ], [ true, %28 ]
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #6
  ret i1 %.014

54:                                               ; preds = %49, %52, %31
  %.pn19.pn = phi { ptr, i32 } [ %32, %31 ], [ %53, %52 ], [ %.pn, %49 ]
  call void @_ZN4juce13ScopedPointerINS_10XmlElementEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  br label %55

55:                                               ; preds = %54, %29
  %.pn19.pn.pn = phi { ptr, i32 } [ %.pn19.pn, %54 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80) %2) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn19.pn.pn
}

declare void @_ZN4juce11XmlDocumentC1ERKNS_4FileE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #4

declare noundef ptr @_ZN4juce11XmlDocument18getDocumentElementEb(ptr noundef nonnull align 8 dereferenceable(80), i1 noundef zeroext) local_unnamed_addr #4

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

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

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

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

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

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

declare void @_ZN4juce15StringPairArray3setERKNS_6StringES3_(ptr noundef nonnull align 8 dereferenceable(49), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

declare noundef ptr @_ZNK4juce10XmlElement25getNextElementWithTagNameENS_9StringRefE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce11XmlDocumentD1Ev(ptr noundef nonnull align 8 dereferenceable(80)) 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 = { 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 = { 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 = { "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 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass