; LLVM IR from modlfo/AudioEngine :: AudioEngine/JuceLibraryCode (juce_gui_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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12TabBarButton13getActiveAreaEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(404)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320)) #0 align 2

declare void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) #5

declare void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) #5

declare void @_ZNK4juce4Path28createPathWithRoundedCornersEf(ptr dead_on_unwind writable sret(%"class.juce::Path") align 8, ptr noundef nonnull align 8 dereferenceable(41), float noundef) #5

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(41) ptr @_ZN4juce4PathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) #3

declare void @_ZN4juce4Path12closeSubPathEv(ptr noundef nonnull align 8 dereferenceable(41)) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V220createTabButtonShapeERNS_12TabBarButtonERNS_4PathEbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(404) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i8, align 1
  %10 = alloca i8, align 1
  %11 = alloca %"class.juce::Rectangle", align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca %"class.juce::Path", align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  %21 = zext i1 %3 to i8
  store i8 %21, ptr %9, align 1, !tbaa !9
  %22 = zext i1 %4 to i8
  store i8 %22, ptr %10, align 1, !tbaa !9
  %23 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK4juce12TabBarButton13getActiveAreaEv(ptr dead_on_unwind writable sret(%"class.juce::Rectangle") align 4 %11, ptr noundef nonnull align 8 dereferenceable(404) %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %25 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %26 = sitofp i32 %25 to float
  store float %26, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %27 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  %28 = sitofp i32 %27 to float
  store float %28, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %29 = load float, ptr %12, align 4, !tbaa !11
  store float %29, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %30 = load float, ptr %13, align 4, !tbaa !11
  store float %30, ptr %15, align 4, !tbaa !11
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %31)
          to label %33 unwind label %36

33:                                               ; preds = %5
  %34 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %32) #6
  br i1 %34, label %35, label %40

35:                                               ; preds = %33
  call void @_ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %14, ptr noundef nonnull align 4 dereferenceable(4) %15) #6
  br label %40

36:                                               ; preds = %5
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %16, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %17, align 4
  br label %170

40:                                               ; preds = %35, %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %41 = load float, ptr %15, align 4, !tbaa !11
  %42 = fptosi float %41 to i32
  %43 = load ptr, ptr %23, align 8, !tbaa !13
  %44 = getelementptr inbounds ptr, ptr %43, i64 94
  %45 = load ptr, ptr %44, align 8
  %46 = invoke noundef i32 %45(ptr noundef nonnull align 8 dereferenceable(304) %23, i32 noundef %42)
          to label %47 unwind label %53

47:                                               ; preds = %40
  %48 = sitofp i32 %46 to float
  store float %48, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store float 4.000000e+00, ptr %19, align 4, !tbaa !11
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = invoke noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %49)
          to label %51 unwind label %57

51:                                               ; preds = %47
  %52 = call noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320) %50) #6
  switch i32 %52, label %131 [
    i32 2, label %61
    i32 3, label %87
    i32 1, label %109
  ]

53:                                               ; preds = %40
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %16, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %17, align 4
  br label %169

57:                                               ; preds = %157, %152, %146, %142, %137, %134, %131, %128, %124, %121, %115, %111, %109, %106, %102, %99, %93, %89, %87, %82, %76, %72, %67, %64, %61, %47
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %16, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %17, align 4
  br label %168

61:                                               ; preds = %51
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  %63 = load float, ptr %12, align 4, !tbaa !11
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %62, float noundef %63, float noundef 0.000000e+00)
          to label %64 unwind label %57

64:                                               ; preds = %61
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = load float, ptr %18, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %65, float noundef 0.000000e+00, float noundef %66)
          to label %67 unwind label %57

67:                                               ; preds = %64
  %68 = load ptr, ptr %8, align 8, !tbaa !5
  %69 = load float, ptr %13, align 4, !tbaa !11
  %70 = load float, ptr %18, align 4, !tbaa !11
  %71 = fsub float %69, %70
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %68, float noundef 0.000000e+00, float noundef %71)
          to label %72 unwind label %57

72:                                               ; preds = %67
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = load float, ptr %12, align 4, !tbaa !11
  %75 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %73, float noundef %74, float noundef %75)
          to label %76 unwind label %57

76:                                               ; preds = %72
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load float, ptr %12, align 4, !tbaa !11
  %79 = fadd float %78, 4.000000e+00
  %80 = load float, ptr %13, align 4, !tbaa !11
  %81 = fadd float %80, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %77, float noundef %79, float noundef %81)
          to label %82 unwind label %57

82:                                               ; preds = %76
  %83 = load ptr, ptr %8, align 8, !tbaa !5
  %84 = load float, ptr %12, align 4, !tbaa !11
  %85 = fadd float %84, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %83, float noundef %85, float noundef -4.000000e+00)
          to label %86 unwind label %57

86:                                               ; preds = %82
  br label %157

87:                                               ; preds = %51
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %88, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %89 unwind label %57

89:                                               ; preds = %87
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load float, ptr %12, align 4, !tbaa !11
  %92 = load float, ptr %18, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %90, float noundef %91, float noundef %92)
          to label %93 unwind label %57

93:                                               ; preds = %89
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  %95 = load float, ptr %12, align 4, !tbaa !11
  %96 = load float, ptr %13, align 4, !tbaa !11
  %97 = load float, ptr %18, align 4, !tbaa !11
  %98 = fsub float %96, %97
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %94, float noundef %95, float noundef %98)
          to label %99 unwind label %57

99:                                               ; preds = %93
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %100, float noundef 0.000000e+00, float noundef %101)
          to label %102 unwind label %57

102:                                              ; preds = %99
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load float, ptr %13, align 4, !tbaa !11
  %105 = fadd float %104, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %103, float noundef -4.000000e+00, float noundef %105)
          to label %106 unwind label %57

106:                                              ; preds = %102
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %107, float noundef -4.000000e+00, float noundef -4.000000e+00)
          to label %108 unwind label %57

108:                                              ; preds = %106
  br label %157

109:                                              ; preds = %51
  %110 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %110, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %111 unwind label %57

111:                                              ; preds = %109
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load float, ptr %18, align 4, !tbaa !11
  %114 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %112, float noundef %113, float noundef %114)
          to label %115 unwind label %57

115:                                              ; preds = %111
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load float, ptr %12, align 4, !tbaa !11
  %118 = load float, ptr %18, align 4, !tbaa !11
  %119 = fsub float %117, %118
  %120 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %116, float noundef %119, float noundef %120)
          to label %121 unwind label %57

121:                                              ; preds = %115
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = load float, ptr %12, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %122, float noundef %123, float noundef 0.000000e+00)
          to label %124 unwind label %57

124:                                              ; preds = %121
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = load float, ptr %12, align 4, !tbaa !11
  %127 = fadd float %126, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %125, float noundef %127, float noundef -4.000000e+00)
          to label %128 unwind label %57

128:                                              ; preds = %124
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %129, float noundef -4.000000e+00, float noundef -4.000000e+00)
          to label %130 unwind label %57

130:                                              ; preds = %128
  br label %157

131:                                              ; preds = %51
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %132, float noundef 0.000000e+00, float noundef %133)
          to label %134 unwind label %57

134:                                              ; preds = %131
  %135 = load ptr, ptr %8, align 8, !tbaa !5
  %136 = load float, ptr %18, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %135, float noundef %136, float noundef 0.000000e+00)
          to label %137 unwind label %57

137:                                              ; preds = %134
  %138 = load ptr, ptr %8, align 8, !tbaa !5
  %139 = load float, ptr %12, align 4, !tbaa !11
  %140 = load float, ptr %18, align 4, !tbaa !11
  %141 = fsub float %139, %140
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %138, float noundef %141, float noundef 0.000000e+00)
          to label %142 unwind label %57

142:                                              ; preds = %137
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load float, ptr %12, align 4, !tbaa !11
  %145 = load float, ptr %13, align 4, !tbaa !11
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %143, float noundef %144, float noundef %145)
          to label %146 unwind label %57

146:                                              ; preds = %142
  %147 = load ptr, ptr %8, align 8, !tbaa !5
  %148 = load float, ptr %12, align 4, !tbaa !11
  %149 = fadd float %148, 4.000000e+00
  %150 = load float, ptr %13, align 4, !tbaa !11
  %151 = fadd float %150, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %147, float noundef %149, float noundef %151)
          to label %152 unwind label %57

152:                                              ; preds = %146
  %153 = load ptr, ptr %8, align 8, !tbaa !5
  %154 = load float, ptr %13, align 4, !tbaa !11
  %155 = fadd float %154, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %153, float noundef -4.000000e+00, float noundef %155)
          to label %156 unwind label %57

156:                                              ; preds = %152
  br label %157

157:                                              ; preds = %156, %130, %108, %86
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZN4juce4Path12closeSubPathEv(ptr noundef nonnull align 8 dereferenceable(41) %158)
          to label %159 unwind label %57

159:                                              ; preds = %157
  call void @llvm.lifetime.start.p0(i64 48, ptr %20) #6
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK4juce4Path28createPathWithRoundedCornersEf(ptr dead_on_unwind writable sret(%"class.juce::Path") align 8 %20, ptr noundef nonnull align 8 dereferenceable(41) %160, float noundef 3.000000e+00)
          to label %161 unwind label %164

161:                                              ; preds = %159
  %162 = load ptr, ptr %8, align 8, !tbaa !5
  %163 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN4juce4PathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(41) %162, ptr noundef nonnull align 8 dereferenceable(41) %20) #6
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %20) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  ret void

164:                                              ; preds = %159
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %16, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %20) #6
  br label %168

168:                                              ; preds = %164, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %169

169:                                              ; preds = %168, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %170

170:                                              ; preds = %169, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr %16, align 8
  %173 = load i32, ptr %17, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"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::Rectangle" = type { %"class.juce::Point", i32, i32 }
%"class.juce::Point" = type { i32, i32 }
%"class.juce::Path" = type <{ %"class.juce::ArrayAllocationBase.123", i64, %"struct.juce::Path::PathBounds", i8, [7 x i8] }>
%"class.juce::ArrayAllocationBase.123" = type <{ %"class.juce::HeapBlock.124", i32, [4 x i8] }>
%"class.juce::HeapBlock.124" = type { ptr }
%"struct.juce::Path::PathBounds" = type { float, float, float, float }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #0 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: nounwind
declare void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41)) unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK4juce12TabBarButton13getActiveAreaEv(ptr dead_on_unwind noalias writable sret(%"class.juce::Rectangle") align 4, ptr noundef nonnull align 8 dereferenceable(404)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320)) local_unnamed_addr #0 align 2

declare void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) local_unnamed_addr #5

declare void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41), float noundef, float noundef) local_unnamed_addr #5

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

; Function Attrs: nounwind
declare noundef nonnull align 8 dereferenceable(41) ptr @_ZN4juce4PathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(41), ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #3

declare void @_ZN4juce4Path12closeSubPathEv(ptr noundef nonnull align 8 dereferenceable(41)) local_unnamed_addr #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4juce14LookAndFeel_V220createTabButtonShapeERNS_12TabBarButtonERNS_4PathEbb(ptr noundef nonnull align 8 dereferenceable(304) %0, ptr noundef nonnull align 8 dereferenceable(404) %1, ptr noundef nonnull align 8 dereferenceable(41) %2, i1 noundef zeroext %3, i1 noundef zeroext %4) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.juce::Rectangle", align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"class.juce::Path", align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZNK4juce12TabBarButton13getActiveAreaEv(ptr dead_on_unwind nonnull writable sret(%"class.juce::Rectangle") align 4 %6, ptr noundef nonnull align 8 dereferenceable(404) %1)
  %10 = call noundef i32 @_ZNK4juce9RectangleIiE8getWidthEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %11 = sitofp i32 %10 to float
  %12 = call noundef i32 @_ZNK4juce9RectangleIiE9getHeightEv(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  %13 = sitofp i32 %12 to float
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store float %11, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  store float %13, ptr %8, align 4, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %1)
  %15 = call noundef zeroext i1 @_ZNK4juce15TabbedButtonBar10isVerticalEv(ptr noundef nonnull align 8 dereferenceable(320) %14) #6
  br i1 %15, label %16, label %17

16:                                               ; preds = %5
  call void @_ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %8) #6
  %.pre = load float, ptr %8, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %16, %5
  %18 = phi float [ %.pre, %16 ], [ %13, %5 ]
  %19 = fptosi float %18 to i32
  %20 = load ptr, ptr %0, align 8, !tbaa !9
  %21 = getelementptr inbounds i8, ptr %20, i64 752
  %22 = load ptr, ptr %21, align 8
  %23 = invoke noundef i32 %22(ptr noundef nonnull align 8 dereferenceable(304) %0, i32 noundef %19)
          to label %24 unwind label %28

24:                                               ; preds = %17
  %25 = sitofp i32 %23 to float
  %26 = call noundef nonnull align 8 dereferenceable(320) ptr @_ZNK4juce12TabBarButton18getTabbedButtonBarEv(ptr noundef nonnull align 8 dereferenceable(404) %1)
  %27 = call noundef i32 @_ZNK4juce15TabbedButtonBar14getOrientationEv(ptr noundef nonnull align 8 dereferenceable(320) %26) #6
  switch i32 %27, label %56 [
    i32 2, label %32
    i32 3, label %40
    i32 1, label %47
  ]

28:                                               ; preds = %17
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %72

30:                                               ; preds = %.invoke70, %.invoke, %66, %61, %60, %58, %57, %56, %51, %49, %48, %47, %44, %42, %41, %40, %37, %36, %34, %33, %32
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %72

32:                                               ; preds = %24
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef 0.000000e+00)
          to label %33 unwind label %30

33:                                               ; preds = %32
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef %25)
          to label %34 unwind label %30

34:                                               ; preds = %33
  %35 = fsub float %13, %25
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef %35)
          to label %36 unwind label %30

36:                                               ; preds = %34
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef %13)
          to label %37 unwind label %30

37:                                               ; preds = %36
  %38 = fadd float %11, 4.000000e+00
  %39 = fadd float %13, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %38, float noundef %39)
          to label %.invoke unwind label %30

40:                                               ; preds = %24
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %41 unwind label %30

41:                                               ; preds = %40
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef %25)
          to label %42 unwind label %30

42:                                               ; preds = %41
  %43 = fsub float %13, %25
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef %43)
          to label %44 unwind label %30

44:                                               ; preds = %42
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef %13)
          to label %45 unwind label %30

45:                                               ; preds = %44
  %46 = fadd float %13, 4.000000e+00
  br label %.invoke70

47:                                               ; preds = %24
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %48 unwind label %30

48:                                               ; preds = %47
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %25, float noundef %13)
          to label %49 unwind label %30

49:                                               ; preds = %48
  %50 = fsub float %11, %25
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %50, float noundef %13)
          to label %51 unwind label %30

51:                                               ; preds = %49
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef 0.000000e+00)
          to label %52 unwind label %30

52:                                               ; preds = %51
  %53 = fadd float %11, 4.000000e+00
  br label %.invoke70

.invoke70:                                        ; preds = %45, %52
  %54 = phi float [ %53, %52 ], [ -4.000000e+00, %45 ]
  %55 = phi float [ -4.000000e+00, %52 ], [ %46, %45 ]
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %54, float noundef %55)
          to label %.invoke unwind label %30

56:                                               ; preds = %24
  invoke void @_ZN4juce4Path15startNewSubPathEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 0.000000e+00, float noundef %13)
          to label %57 unwind label %30

57:                                               ; preds = %56
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %25, float noundef 0.000000e+00)
          to label %58 unwind label %30

58:                                               ; preds = %57
  %59 = fsub float %11, %25
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %59, float noundef 0.000000e+00)
          to label %60 unwind label %30

60:                                               ; preds = %58
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %11, float noundef %13)
          to label %61 unwind label %30

61:                                               ; preds = %60
  %62 = fadd float %11, 4.000000e+00
  %63 = fadd float %13, 4.000000e+00
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %62, float noundef %63)
          to label %.invoke unwind label %30

.invoke:                                          ; preds = %.invoke70, %61, %37
  %64 = phi float [ %38, %37 ], [ -4.000000e+00, %61 ], [ -4.000000e+00, %.invoke70 ]
  %65 = phi float [ -4.000000e+00, %37 ], [ %63, %61 ], [ -4.000000e+00, %.invoke70 ]
  invoke void @_ZN4juce4Path6lineToEff(ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef %64, float noundef %65)
          to label %66 unwind label %30

66:                                               ; preds = %.invoke
  invoke void @_ZN4juce4Path12closeSubPathEv(ptr noundef nonnull align 8 dereferenceable(41) %2)
          to label %67 unwind label %30

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #6
  invoke void @_ZNK4juce4Path28createPathWithRoundedCornersEf(ptr dead_on_unwind nonnull writable sret(%"class.juce::Path") align 8 %9, ptr noundef nonnull align 8 dereferenceable(41) %2, float noundef 3.000000e+00)
          to label %68 unwind label %70

68:                                               ; preds = %67
  %69 = call noundef nonnull align 8 dereferenceable(41) ptr @_ZN4juce4PathaSEOS0_(ptr noundef nonnull align 8 dereferenceable(41) %2, ptr noundef nonnull align 8 dereferenceable(41) %9) #6
  call void @_ZN4juce4PathD1Ev(ptr noundef nonnull align 8 dereferenceable(41) %9) #6
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  ret void

70:                                               ; preds = %67
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #6
  br label %72

72:                                               ; preds = %30, %70, %28
  %.pn.pn = phi { ptr, i32 } [ %29, %28 ], [ %71, %70 ], [ %31, %30 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN4juce9RectangleIiED2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIfENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}


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