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

; 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::MemoryOutputStream" = type { %"class.juce::OutputStream", ptr, %"class.juce::MemoryBlock", ptr, i64, i64, i64 }
%"class.juce::OutputStream" = type { ptr, %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::MemoryBlock" = type { %"class.juce::HeapBlock.29", i64 }
%"class.juce::HeapBlock.29" = type { ptr }
%"class.juce::MidiMessage" = type <{ %"union.juce::MidiMessage::PackedData", double, i32, [4 x i8] }>
%"union.juce::MidiMessage::PackedData" = type { ptr }
%"class.juce::MidiFile" = type <{ %"class.juce::OwnedArray.30", i16, [6 x i8] }>
%"class.juce::OwnedArray.30" = type { %"class.juce::ArrayAllocationBase.31", i32, [4 x i8] }
%"class.juce::ArrayAllocationBase.31" = type <{ %"class.juce::HeapBlock.32", i32, [4 x i8] }>
%"class.juce::HeapBlock.32" = type { ptr }
%"class.juce::MidiMessageSequence::MidiEventHolder" = type { %"class.juce::MidiMessage", ptr }

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

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

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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce9ByteOrder12bigEndianIntEPKv(ptr noundef) #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4juce11MidiMessage12getTimeStampEv(ptr noundef nonnull align 8 dereferenceable(20)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce8MidiFile10writeTrackERNS_12OutputStreamEi(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.juce::MemoryOutputStream", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i8, align 1
  %22 = alloca %"class.juce::MidiMessage", align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #6
  call void @_ZN4juce18MemoryOutputStreamC1Em(ptr noundef nonnull align 8 dereferenceable(72) %8, i64 noundef 256)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %25 = getelementptr inbounds %"class.juce::MidiFile", ptr %24, i32 0, i32 0
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = call noundef ptr @_ZNK4juce10OwnedArrayINS_19MidiMessageSequenceENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %25, i32 noundef %26) #6
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  store i8 0, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %112, %3
  %29 = load i32, ptr %13, align 4, !tbaa !9
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK4juce19MidiMessageSequence12getNumEventsEv(ptr noundef nonnull align 8 dereferenceable(24) %30) #6
  %32 = icmp slt i32 %29, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %116

34:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load i32, ptr %13, align 4, !tbaa !9
  %37 = call noundef ptr @_ZNK4juce19MidiMessageSequence15getEventPointerEi(ptr noundef nonnull align 8 dereferenceable(24) %35, i32 noundef %36) #6
  %38 = getelementptr inbounds %"class.juce::MidiMessageSequence::MidiEventHolder", ptr %37, i32 0, i32 0
  store ptr %38, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %14, align 8, !tbaa !5
  %40 = call noundef zeroext i1 @_ZNK4juce11MidiMessage21isEndOfTrackMetaEventEv(ptr noundef nonnull align 8 dereferenceable(20) %39) #6
  br i1 %40, label %41, label %42

41:                                               ; preds = %34
  store i8 1, ptr %12, align 1, !tbaa !12
  br label %42

42:                                               ; preds = %41, %34
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %43 = load ptr, ptr %14, align 8, !tbaa !5
  %44 = call noundef double @_ZNK4juce11MidiMessage12getTimeStampEv(ptr noundef nonnull align 8 dereferenceable(20) %43) #6
  %45 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %44) #6
  store i32 %45, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = load i32, ptr %10, align 4, !tbaa !9
  %48 = sub nsw i32 %46, %47
  %49 = invoke noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %48)
          to label %50 unwind label %82

50:                                               ; preds = %42
  store i32 %49, ptr %16, align 4, !tbaa !9
  %51 = load i32, ptr %16, align 4, !tbaa !9
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %51)
          to label %52 unwind label %82

52:                                               ; preds = %50
  %53 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %53, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %54 = load ptr, ptr %14, align 8, !tbaa !5
  %55 = call noundef ptr @_ZNK4juce11MidiMessage10getRawDataEv(ptr noundef nonnull align 8 dereferenceable(20) %54) #6
  store ptr %55, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = call noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %56) #6
  store i32 %57, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #6
  %58 = load ptr, ptr %19, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 0
  %60 = load i8, ptr %59, align 1, !tbaa !11
  store i8 %60, ptr %21, align 1, !tbaa !11
  %61 = load i8, ptr %21, align 1, !tbaa !11
  %62 = zext i8 %61 to i32
  %63 = load i8, ptr %11, align 1, !tbaa !11
  %64 = zext i8 %63 to i32
  %65 = icmp eq i32 %62, %64
  br i1 %65, label %66, label %86

66:                                               ; preds = %52
  %67 = load i8, ptr %21, align 1, !tbaa !11
  %68 = zext i8 %67 to i32
  %69 = and i32 %68, 240
  %70 = icmp ne i32 %69, 240
  br i1 %70, label %71, label %86

71:                                               ; preds = %66
  %72 = load i32, ptr %20, align 4, !tbaa !9
  %73 = icmp sgt i32 %72, 1
  br i1 %73, label %74, label %86

74:                                               ; preds = %71
  %75 = load i32, ptr %13, align 4, !tbaa !9
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %86

77:                                               ; preds = %74
  %78 = load ptr, ptr %19, align 8, !tbaa !5
  %79 = getelementptr inbounds i8, ptr %78, i32 1
  store ptr %79, ptr %19, align 8, !tbaa !5
  %80 = load i32, ptr %20, align 4, !tbaa !9
  %81 = add nsw i32 %80, -1
  store i32 %81, ptr %20, align 4, !tbaa !9
  br label %105

82:                                               ; preds = %50, %42
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %17, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %18, align 4
  br label %115

86:                                               ; preds = %74, %71, %66, %52
  %87 = load i8, ptr %21, align 1, !tbaa !11
  %88 = zext i8 %87 to i32
  %89 = icmp eq i32 %88, 240
  br i1 %89, label %90, label %104

90:                                               ; preds = %86
  %91 = load i8, ptr %21, align 1, !tbaa !11
  %92 = invoke noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 noundef signext %91)
          to label %93 unwind label %100

93:                                               ; preds = %90
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i32 1
  store ptr %95, ptr %19, align 8, !tbaa !5
  %96 = load i32, ptr %20, align 4, !tbaa !9
  %97 = add nsw i32 %96, -1
  store i32 %97, ptr %20, align 4, !tbaa !9
  %98 = load i32, ptr %20, align 4, !tbaa !9
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef %98)
          to label %99 unwind label %100

99:                                               ; preds = %93
  br label %104

100:                                              ; preds = %105, %93, %90
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %17, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %115

104:                                              ; preds = %99, %86
  br label %105

105:                                              ; preds = %104, %77
  %106 = load ptr, ptr %19, align 8, !tbaa !5
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = invoke noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef %106, i64 noundef %108)
          to label %110 unwind label %100

110:                                              ; preds = %105
  %111 = load i8, ptr %21, align 1, !tbaa !11
  store i8 %111, ptr %11, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %112

112:                                              ; preds = %110
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %13, align 4, !tbaa !9
  br label %28, !llvm.loop !14

115:                                              ; preds = %100, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %160

116:                                              ; preds = %33
  %117 = load i8, ptr %12, align 1, !tbaa !12, !range !16, !noundef !17
  %118 = trunc i8 %117 to i1
  br i1 %118, label %135, label %119

119:                                              ; preds = %116
  %120 = invoke noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16) %8, i8 noundef signext 0)
          to label %121 unwind label %127

121:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @_ZN4juce11MidiMessage10endOfTrackEv(ptr dead_on_unwind writable sret(%"class.juce::MidiMessage") align 8 %22) #6
  %122 = call noundef ptr @_ZNK4juce11MidiMessage10getRawDataEv(ptr noundef nonnull align 8 dereferenceable(20) %22) #6
  %123 = call noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %22) #6
  %124 = sext i32 %123 to i64
  %125 = invoke noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72) %8, ptr noundef %122, i64 noundef %124)
          to label %126 unwind label %131

126:                                              ; preds = %121
  call void @_ZN4juce11MidiMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %135

127:                                              ; preds = %154, %144, %135, %119
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %17, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %18, align 4
  br label %160

131:                                              ; preds = %121
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %17, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %18, align 4
  call void @_ZN4juce11MidiMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %160

135:                                              ; preds = %126, %116
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call noundef i32 @_ZN4juce9ByteOrder12bigEndianIntEPKv(ptr noundef @.str.81) #6
  %138 = load ptr, ptr %136, align 8, !tbaa !18
  %139 = getelementptr inbounds ptr, ptr %138, i64 11
  %140 = load ptr, ptr %139, align 8
  %141 = invoke noundef zeroext i1 %140(ptr noundef nonnull align 8 dereferenceable(16) %136, i32 noundef %137)
          to label %142 unwind label %127

142:                                              ; preds = %135
  br i1 %141, label %144, label %143

143:                                              ; preds = %142
  store i1 false, ptr %4, align 1
  store i32 1, ptr %23, align 4
  br label %158

144:                                              ; preds = %142
  %145 = load ptr, ptr %6, align 8, !tbaa !5
  %146 = call noundef i64 @_ZNK4juce18MemoryOutputStream11getDataSizeEv(ptr noundef nonnull align 8 dereferenceable(72) %8) #6
  %147 = trunc i64 %146 to i32
  %148 = load ptr, ptr %145, align 8, !tbaa !18
  %149 = getelementptr inbounds ptr, ptr %148, i64 11
  %150 = load ptr, ptr %149, align 8
  %151 = invoke noundef zeroext i1 %150(ptr noundef nonnull align 8 dereferenceable(16) %145, i32 noundef %147)
          to label %152 unwind label %127

152:                                              ; preds = %144
  br i1 %151, label %154, label %153

153:                                              ; preds = %152
  store i1 false, ptr %4, align 1
  store i32 1, ptr %23, align 4
  br label %158

154:                                              ; preds = %152
  %155 = load ptr, ptr %6, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jucelsERNS_12OutputStreamERKNS_18MemoryOutputStreamE(ptr noundef nonnull align 8 dereferenceable(16) %155, ptr noundef nonnull align 8 dereferenceable(72) %8)
          to label %157 unwind label %127

157:                                              ; preds = %154
  store i1 true, ptr %4, align 1
  store i32 1, ptr %23, align 4
  br label %158

158:                                              ; preds = %157, %153, %143
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #6
  %159 = load i1, ptr %4, align 1
  ret i1 %159

160:                                              ; preds = %131, %127, %115
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %8) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #6
  br label %161

161:                                              ; preds = %160
  %162 = load ptr, ptr %17, align 8
  %163 = load i32, ptr %18, align 4
  %164 = insertvalue { ptr, i32 } poison, ptr %162, 0
  %165 = insertvalue { ptr, i32 } %164, i32 %163, 1
  resume { ptr, i32 } %165
}

declare void @_ZN4juce18MemoryOutputStreamC1Em(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #3

declare noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) unnamed_addr #4

declare noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce11MidiMessage10endOfTrackEv(ptr dead_on_unwind noalias writable sret(%"class.juce::MidiMessage") align 8) #1 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jucelsERNS_12OutputStreamERKNS_18MemoryOutputStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: nounwind
declare void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

declare void @_ZN4juce11MidiMessageD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { 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 #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 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"bool", !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, 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::MemoryOutputStream" = type { %"class.juce::OutputStream", ptr, %"class.juce::MemoryBlock", ptr, i64, i64, i64 }
%"class.juce::OutputStream" = type { ptr, %"class.juce::String" }
%"class.juce::String" = type { %"class.juce::CharPointer_UTF8" }
%"class.juce::CharPointer_UTF8" = type { ptr }
%"class.juce::MemoryBlock" = type { %"class.juce::HeapBlock.29", i64 }
%"class.juce::HeapBlock.29" = type { ptr }
%"class.juce::MidiMessage" = type <{ %"union.juce::MidiMessage::PackedData", double, i32, [4 x i8] }>
%"union.juce::MidiMessage::PackedData" = type { ptr }

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

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

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: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce9ByteOrder12bigEndianIntEPKv(ptr noundef) local_unnamed_addr #2 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK4juce11MidiMessage12getTimeStampEv(ptr noundef nonnull align 8 dereferenceable(20)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4juce8MidiFile10writeTrackERNS_12OutputStreamEi(ptr noundef nonnull align 8 dereferenceable(26) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.juce::MemoryOutputStream", align 8
  %5 = alloca %"class.juce::MidiMessage", align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #6
  call void @_ZN4juce18MemoryOutputStreamC1Em(ptr noundef nonnull align 8 dereferenceable(72) %4, i64 noundef 256)
  %6 = call noundef ptr @_ZNK4juce10OwnedArrayINS_19MidiMessageSequenceENS_20DummyCriticalSectionEE12getUncheckedEi(ptr noundef nonnull align 8 dereferenceable(20) %0, i32 noundef %2) #6
  %7 = call noundef i32 @_ZNK4juce19MidiMessageSequence12getNumEventsEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %3
  %9 = call noundef ptr @_ZNK4juce19MidiMessageSequence15getEventPointerEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0) #6
  %10 = call noundef zeroext i1 @_ZNK4juce11MidiMessage21isEndOfTrackMetaEventEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  %11 = call noundef double @_ZNK4juce11MidiMessage12getTimeStampEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  %12 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %11) #6
  %13 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %12)
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %13)
          to label %14 unwind label %.loopexit.split-lp

14:                                               ; preds = %.lr.ph.preheader
  %15 = call noundef ptr @_ZNK4juce11MidiMessage10getRawDataEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  %16 = call noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  %17 = load i8, ptr %15, align 1, !tbaa !5
  %18 = icmp eq i8 %17, -16
  br i1 %18, label %19, label %24

19:                                               ; preds = %14
  %20 = invoke noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef signext -16)
          to label %21 unwind label %.loopexit.split-lp65

21:                                               ; preds = %19
  %22 = getelementptr inbounds i8, ptr %15, i64 1
  %23 = add nsw i32 %16, -1
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %23)
          to label %24 unwind label %.loopexit.split-lp65

24:                                               ; preds = %21, %14
  %.041.peel = phi ptr [ %22, %21 ], [ %15, %14 ]
  %.040.peel = phi i32 [ %23, %21 ], [ %16, %14 ]
  %25 = sext i32 %.040.peel to i64
  %26 = invoke noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull %.041.peel, i64 noundef %25)
          to label %27 unwind label %.loopexit.split-lp65

27:                                               ; preds = %24
  %28 = call noundef i32 @_ZNK4juce19MidiMessageSequence12getNumEventsEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %29 = icmp sgt i32 %28, 1
  br i1 %29, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %57, %27
  %spec.select.lcssa62 = phi i1 [ %10, %27 ], [ %spec.select, %57 ]
  br i1 %spec.select.lcssa62, label %72, label %.critedge

.lr.ph:                                           ; preds = %27, %57
  %.04560 = phi i32 [ %33, %57 ], [ %12, %27 ]
  %.04659 = phi i8 [ %39, %57 ], [ %17, %27 ]
  %.04758 = phi i1 [ %spec.select, %57 ], [ %10, %27 ]
  %.04956 = phi i32 [ %58, %57 ], [ 1, %27 ]
  %30 = call noundef ptr @_ZNK4juce19MidiMessageSequence15getEventPointerEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef %.04956) #6
  %31 = call noundef zeroext i1 @_ZNK4juce11MidiMessage21isEndOfTrackMetaEventEv(ptr noundef nonnull align 8 dereferenceable(20) %30) #6
  %spec.select = select i1 %31, i1 true, i1 %.04758
  %32 = call noundef double @_ZNK4juce11MidiMessage12getTimeStampEv(ptr noundef nonnull align 8 dereferenceable(20) %30) #6
  %33 = call noundef i32 @_ZN4juce10roundToIntIdEEiT_(double noundef %32) #6
  %34 = sub nsw i32 %33, %.04560
  %35 = call noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef 0, i32 noundef %34)
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %35)
          to label %36 unwind label %.loopexit

36:                                               ; preds = %.lr.ph
  %37 = call noundef ptr @_ZNK4juce11MidiMessage10getRawDataEv(ptr noundef nonnull align 8 dereferenceable(20) %30) #6
  %38 = call noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %30) #6
  %39 = load i8, ptr %37, align 1, !tbaa !5
  %40 = icmp eq i8 %39, %.04659
  br i1 %40, label %41, label %47

41:                                               ; preds = %36
  %42 = icmp ult i8 %.04659, -16
  %43 = icmp sgt i32 %38, 1
  %or.cond = and i1 %43, %42
  br i1 %or.cond, label %44, label %47

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %37, i64 1
  %46 = add nsw i32 %38, -1
  br label %54

.loopexit:                                        ; preds = %.lr.ph
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %90

.loopexit.split-lp:                               ; preds = %.lr.ph.preheader
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %90

47:                                               ; preds = %41, %36
  %48 = icmp eq i8 %39, -16
  br i1 %48, label %49, label %54

49:                                               ; preds = %47
  %50 = invoke noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef signext -16)
          to label %51 unwind label %.loopexit64

51:                                               ; preds = %49
  %52 = getelementptr inbounds i8, ptr %37, i64 1
  %53 = add nsw i32 %38, -1
  invoke void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef %53)
          to label %54 unwind label %.loopexit64

.loopexit64:                                      ; preds = %49, %51, %54
  %lpad.loopexit66 = landingpad { ptr, i32 }
          cleanup
  br label %90

.loopexit.split-lp65:                             ; preds = %19, %21, %24
  %lpad.loopexit.split-lp67 = landingpad { ptr, i32 }
          cleanup
  br label %90

54:                                               ; preds = %47, %51, %44
  %.041 = phi ptr [ %45, %44 ], [ %52, %51 ], [ %37, %47 ]
  %.040 = phi i32 [ %46, %44 ], [ %53, %51 ], [ %38, %47 ]
  %55 = sext i32 %.040 to i64
  %56 = invoke noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef nonnull %.041, i64 noundef %55)
          to label %57 unwind label %.loopexit64

57:                                               ; preds = %54
  %58 = add nuw nsw i32 %.04956, 1
  %59 = call noundef i32 @_ZNK4juce19MidiMessageSequence12getNumEventsEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %.lr.ph, label %._crit_edge, !llvm.loop !8

.critedge:                                        ; preds = %3, %._crit_edge
  %61 = invoke noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef signext 0)
          to label %62 unwind label %68

62:                                               ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZN4juce11MidiMessage10endOfTrackEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::MidiMessage") align 8 %5) #6
  %63 = call noundef ptr @_ZNK4juce11MidiMessage10getRawDataEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  %64 = call noundef i32 @_ZNK4juce11MidiMessage14getRawDataSizeEv(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  %65 = sext i32 %64 to i64
  %66 = invoke noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72) %4, ptr noundef %63, i64 noundef %65)
          to label %67 unwind label %70

67:                                               ; preds = %62
  call void @_ZN4juce11MidiMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %72

68:                                               ; preds = %87, %79, %72, %.critedge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %90

70:                                               ; preds = %62
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN4juce11MidiMessageD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %90

72:                                               ; preds = %67, %._crit_edge
  %73 = call noundef i32 @_ZN4juce9ByteOrder12bigEndianIntEPKv(ptr noundef nonnull @.str.81) #6
  %74 = load ptr, ptr %1, align 8, !tbaa !11
  %75 = getelementptr inbounds i8, ptr %74, i64 88
  %76 = load ptr, ptr %75, align 8
  %77 = invoke noundef zeroext i1 %76(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %73)
          to label %78 unwind label %68

78:                                               ; preds = %72
  br i1 %77, label %79, label %89

79:                                               ; preds = %78
  %80 = call noundef i64 @_ZNK4juce18MemoryOutputStream11getDataSizeEv(ptr noundef nonnull align 8 dereferenceable(72) %4) #6
  %81 = trunc i64 %80 to i32
  %82 = load ptr, ptr %1, align 8, !tbaa !11
  %83 = getelementptr inbounds i8, ptr %82, i64 88
  %84 = load ptr, ptr %83, align 8
  %85 = invoke noundef zeroext i1 %84(ptr noundef nonnull align 8 dereferenceable(16) %1, i32 noundef %81)
          to label %86 unwind label %68

86:                                               ; preds = %79
  br i1 %85, label %87, label %89

87:                                               ; preds = %86
  %88 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jucelsERNS_12OutputStreamERKNS_18MemoryOutputStreamE(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(72) %4)
          to label %89 unwind label %68

89:                                               ; preds = %87, %86, %78
  %.0 = phi i1 [ false, %78 ], [ false, %86 ], [ true, %87 ]
  call void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  ret i1 %.0

90:                                               ; preds = %.loopexit64, %.loopexit.split-lp65, %.loopexit, %.loopexit.split-lp, %70, %68
  %.pn.pn = phi { ptr, i32 } [ %69, %68 ], [ %71, %70 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit66, %.loopexit64 ], [ %lpad.loopexit.split-lp67, %.loopexit.split-lp65 ]
  call void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn
}

declare void @_ZN4juce18MemoryOutputStreamC1Em(ptr noundef nonnull align 8 dereferenceable(72), i64 noundef) unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4juce4jmaxIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN4juce15MidiFileHelpersL22writeVariableLengthIntERNS_12OutputStreamEj(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN4juce12OutputStream9writeByteEc(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef signext) unnamed_addr #4

declare noundef zeroext i1 @_ZN4juce18MemoryOutputStream5writeEPKvm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce11MidiMessage10endOfTrackEv(ptr dead_on_unwind noalias writable sret(%"class.juce::MidiMessage") align 8) local_unnamed_addr #1 align 2

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZN4jucelsERNS_12OutputStreamERKNS_18MemoryOutputStreamE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN4juce18MemoryOutputStreamD1Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5

declare void @_ZN4juce11MidiMessageD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 = { 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 #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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = distinct !{!8, !9, !10}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!"llvm.loop.peeled.count", i32 1}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !7, i64 0}


; Effective O3 passes: AggressiveInstCombinePass,BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass