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

; 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::CodeDocument::Position" = type <{ ptr, i32, i32, i32, i8, [3 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juce18CharacterFunctions12isWhitespaceEw(i32 noundef signext) #1

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind noalias writable sret(%"class.juce::CodeDocument::Position") align 8, ptr noundef nonnull align 8 dereferenceable(21), i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext) #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4juce12CodeDocument19findWordBreakBeforeERKNS0_8PositionE(ptr dead_on_unwind noalias writable sret(%"class.juce::CodeDocument::Position") align 8 %0, ptr noundef nonnull align 8 dereferenceable(232) %1, ptr noundef nonnull align 8 dereferenceable(21) %2) #4 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i1, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i32, align 4
  %12 = alloca %"class.juce::CodeDocument::Position", align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.juce::CodeDocument::Position", align 8
  %16 = alloca %"class.juce::CodeDocument::Position", align 8
  %17 = alloca i1, align 1
  %18 = alloca i1, align 1
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %19 = load ptr, ptr %5, align 8
  store i1 false, ptr %7, align 1
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  call void @_ZN4juce12CodeDocument8PositionC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(21) %0, ptr noundef nonnull align 8 dereferenceable(21) %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 256, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !11
  br label %21

21:                                               ; preds = %47, %3
  %22 = load i32, ptr %9, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 256
  br i1 %23, label %24, label %48

24:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind writable sret(%"class.juce::CodeDocument::Position") align 8 %12, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %25 unwind label %84

25:                                               ; preds = %24
  %26 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %12)
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %12) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  store i32 %26, ptr %11, align 4, !tbaa !13
  %27 = load i32, ptr %11, align 4, !tbaa !13
  %28 = icmp eq i32 %27, 13
  br i1 %28, label %32, label %29

29:                                               ; preds = %25
  %30 = load i32, ptr %11, align 4, !tbaa !13
  %31 = icmp eq i32 %30, 10
  br i1 %31, label %32, label %37

32:                                               ; preds = %29, %25
  store i8 1, ptr %10, align 1, !tbaa !11
  %33 = load i32, ptr %9, align 4, !tbaa !9
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store i32 3, ptr %13, align 4
  br label %45

36:                                               ; preds = %32
  br label %37

37:                                               ; preds = %36, %29
  %38 = load i32, ptr %11, align 4, !tbaa !13
  %39 = call noundef zeroext i1 @_ZN4juce18CharacterFunctions12isWhitespaceEw(i32 noundef signext %38) #5
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 3, ptr %13, align 4
  br label %45

41:                                               ; preds = %37
  invoke void @_ZN4juce12CodeDocument8Position6moveByEi(ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %42 unwind label %84

42:                                               ; preds = %41
  %43 = load i32, ptr %9, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %9, align 4, !tbaa !9
  store i32 0, ptr %13, align 4
  br label %45

45:                                               ; preds = %42, %40, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %46 = load i32, ptr %13, align 4
  switch i32 %46, label %87 [
    i32 0, label %47
    i32 3, label %48
  ]

47:                                               ; preds = %45
  br label %21, !llvm.loop !15

48:                                               ; preds = %45, %21
  %49 = load i32, ptr %9, align 4, !tbaa !9
  %50 = icmp slt i32 %49, 256
  br i1 %50, label %51, label %80

51:                                               ; preds = %48
  %52 = load i8, ptr %10, align 1, !tbaa !11, !range !17, !noundef !18
  %53 = trunc i8 %52 to i1
  br i1 %53, label %80, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind writable sret(%"class.juce::CodeDocument::Position") align 8 %15, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %55 unwind label %84

55:                                               ; preds = %54
  %56 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %15)
  %57 = call noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext %56) #5
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %15) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #5
  store i32 %57, ptr %14, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %76, %55
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = icmp slt i32 %59, 256
  store i1 false, ptr %17, align 1
  store i1 false, ptr %18, align 1
  br i1 %60, label %61, label %67

61:                                               ; preds = %58
  %62 = load i32, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #5
  store i1 true, ptr %17, align 1
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind writable sret(%"class.juce::CodeDocument::Position") align 8 %16, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %63 unwind label %84

63:                                               ; preds = %61
  store i1 true, ptr %18, align 1
  %64 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %16)
  %65 = call noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext %64) #5
  %66 = icmp eq i32 %62, %65
  br label %67

67:                                               ; preds = %63, %58
  %68 = phi i1 [ false, %58 ], [ %66, %63 ]
  %69 = load i1, ptr %18, align 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %16) #5
  br label %71

71:                                               ; preds = %70, %67
  %72 = load i1, ptr %17, align 1
  br i1 %72, label %73, label %74

73:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #5
  br label %74

74:                                               ; preds = %73, %71
  br i1 %68, label %75, label %79

75:                                               ; preds = %74
  invoke void @_ZN4juce12CodeDocument8Position6moveByEi(ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %76 unwind label %84

76:                                               ; preds = %75
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !9
  br label %58, !llvm.loop !19

79:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %80

80:                                               ; preds = %79, %51, %48
  store i1 true, ptr %7, align 1
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %81 = load i1, ptr %7, align 1
  br i1 %81, label %83, label %82

82:                                               ; preds = %80
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %0) #5
  br label %83

83:                                               ; preds = %82, %80
  ret void

84:                                               ; preds = %75, %61, %54, %41, %24
  %85 = landingpad { ptr, i32 }
          catch ptr null
  %86 = extractvalue { ptr, i32 } %85, 0
  call void @__clang_call_terminate(ptr %86) #6
  unreachable

87:                                               ; preds = %45
  unreachable
}

declare void @_ZN4juce12CodeDocument8PositionC1ERKS1_(ptr, ptr)

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr)

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 = { noinline noreturn nounwind uwtable "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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"wchar_t", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !16}


; 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::CodeDocument::Position" = type <{ ptr, i32, i32, i32, i8, [3 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare noundef zeroext i1 @_ZN4juce18CharacterFunctions12isWhitespaceEw(i32 noundef signext) local_unnamed_addr #1

; Function Attrs: noinline noreturn nounwind uwtable
declare hidden void @__clang_call_terminate(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind noalias writable sret(%"class.juce::CodeDocument::Position") align 8, ptr noundef nonnull align 8 dereferenceable(21), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4juce12CodeDocument19findWordBreakBeforeERKNS0_8PositionE(ptr dead_on_unwind noalias writable sret(%"class.juce::CodeDocument::Position") align 8 %0, ptr nocapture noundef nonnull readnone align 8 dereferenceable(232) %1, ptr noundef nonnull align 8 dereferenceable(21) %2) local_unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
.peel.begin:
  %3 = alloca %"class.juce::CodeDocument::Position", align 8
  %4 = alloca %"class.juce::CodeDocument::Position", align 8
  %5 = alloca %"class.juce::CodeDocument::Position", align 8
  tail call void @_ZN4juce12CodeDocument8PositionC1ERKS1_(ptr noundef nonnull align 8 dereferenceable(21) %0, ptr noundef nonnull align 8 dereferenceable(21) %2) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::CodeDocument::Position") align 8 %3, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %6 unwind label %.loopexit.split-lp.loopexit.loopexit.split-lp

6:                                                ; preds = %.peel.begin
  %7 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %3)
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  %8 = call noundef zeroext i1 @_ZN4juce18CharacterFunctions12isWhitespaceEw(i32 noundef signext %7) #5
  br i1 %8, label %9, label %switch.early.test

9:                                                ; preds = %6
  invoke void @_ZN4juce12CodeDocument8Position6moveByEi(ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %.peel.next unwind label %.loopexit.split-lp.loopexit.loopexit.split-lp

.peel.next:                                       ; preds = %9, %15
  %.01941 = phi i32 [ %16, %15 ], [ 1, %9 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::CodeDocument::Position") align 8 %3, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %10 unwind label %.loopexit.split-lp.loopexit.loopexit

10:                                               ; preds = %.peel.next
  %11 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %3)
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %3) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #5
  switch i32 %11, label %12 [
    i32 13, label %.thread31
    i32 10, label %.thread31
  ]

12:                                               ; preds = %10
  %13 = call noundef zeroext i1 @_ZN4juce18CharacterFunctions12isWhitespaceEw(i32 noundef signext %11) #5
  br i1 %13, label %14, label %switch.early.test

14:                                               ; preds = %12
  invoke void @_ZN4juce12CodeDocument8Position6moveByEi(ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %15 unwind label %.loopexit.split-lp.loopexit.loopexit

15:                                               ; preds = %14
  %16 = add nuw nsw i32 %.01941, 1
  %exitcond.not = icmp eq i32 %16, 256
  br i1 %exitcond.not, label %.thread31, label %.peel.next, !llvm.loop !5

switch.early.test:                                ; preds = %12, %6
  %.01941.lcssa45 = phi i32 [ 0, %6 ], [ %.01941, %12 ]
  switch i32 %7, label %17 [
    i32 13, label %.thread31
    i32 10, label %.thread31
  ]

17:                                               ; preds = %switch.early.test
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::CodeDocument::Position") align 8 %4, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %18 unwind label %.loopexit.split-lp.loopexit.split-lp

18:                                               ; preds = %17
  %19 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %4)
  %20 = call noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext %19) #5
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %4) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  %21 = icmp ult i32 %.01941.lcssa45, 256
  br i1 %21, label %.lr.ph, label %.thread31

.lr.ph:                                           ; preds = %18, %26
  %.342 = phi i32 [ %27, %26 ], [ %.01941.lcssa45, %18 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  invoke void @_ZNK4juce12CodeDocument8Position7movedByEi(ptr dead_on_unwind nonnull writable sret(%"class.juce::CodeDocument::Position") align 8 %5, ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %.critedge unwind label %.loopexit

.critedge:                                        ; preds = %.lr.ph
  %22 = call noundef signext i32 @_ZNK4juce12CodeDocument8Position12getCharacterEv(ptr noundef nonnull align 8 dereferenceable(21) %5)
  %23 = call noundef i32 @_ZN4juce19CodeDocumentHelpersL16getCharacterTypeEw(i32 noundef signext %22) #5
  %24 = icmp eq i32 %20, %23
  call void @_ZN4juce12CodeDocument8PositionD1Ev(ptr noundef nonnull align 8 dereferenceable(21) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br i1 %24, label %25, label %.thread31

25:                                               ; preds = %.critedge
  invoke void @_ZN4juce12CodeDocument8Position6moveByEi(ptr noundef nonnull align 8 dereferenceable(21) %0, i32 noundef -1)
          to label %26 unwind label %.loopexit

26:                                               ; preds = %25
  %27 = add nuw nsw i32 %.342, 1
  %exitcond50.not = icmp eq i32 %27, 256
  br i1 %exitcond50.not, label %.thread31, label %.lr.ph, !llvm.loop !7

.thread31:                                        ; preds = %10, %10, %15, %.critedge, %26, %switch.early.test, %switch.early.test, %18
  ret void

.loopexit:                                        ; preds = %.lr.ph, %25
  %lpad.loopexit = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.loopexit:             ; preds = %.peel.next, %14
  %lpad.loopexit47 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.loopexit.split-lp:    ; preds = %.peel.begin, %9
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp.loopexit.split-lp:             ; preds = %17
  %lpad.loopexit.split-lp36 = landingpad { ptr, i32 }
          catch ptr null
  br label %.loopexit.split-lp

.loopexit.split-lp:                               ; preds = %.loopexit.split-lp.loopexit.loopexit, %.loopexit.split-lp.loopexit.loopexit.split-lp, %.loopexit.split-lp.loopexit.split-lp, %.loopexit
  %lpad.phi = phi { ptr, i32 } [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp36, %.loopexit.split-lp.loopexit.split-lp ], [ %lpad.loopexit47, %.loopexit.split-lp.loopexit.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp.loopexit.loopexit.split-lp ]
  %28 = extractvalue { ptr, i32 } %lpad.phi, 0
  call void @__clang_call_terminate(ptr %28) #6
  unreachable
}

declare void @_ZN4juce12CodeDocument8PositionC1ERKS1_(ptr, ptr) local_unnamed_addr

declare void @_ZN4juce12CodeDocument8PositionD1Ev(ptr) local_unnamed_addr

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 = { noinline noreturn nounwind uwtable "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 = { 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 #5 = { nounwind }
attributes #6 = { noreturn 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.peeled.count", i32 1}
!7 = distinct !{!7, !8}
!8 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass