; LLVM IR from Sonryle/JoePhys :: testbed/src/GUIManager.ll (Z15AddArrowDiagramPff)

; 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"

%struct.SceneManager = type <{ ptr, i32, [4 x i8] }>
%struct.Palette = type { [16 x %struct.colour] }
%struct.colour = type { float, float, float, float }
%struct.Settings = type <{ i32, i32, i32, i32, i8, [3 x i8], float, float, i8, [3 x i8], %struct.vec2, i8, i8, i8, i8, i8, [3 x i8], float, float, float, float, i32, i32, i32, float, i8, [3 x i8] }>
%struct.vec2 = type { float, float }
%struct.WindowManager = type <{ %struct.vec2, i32, i32, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImVec2 = type { float, float }
%struct.Scene = type <{ ptr, %struct.SceneColours, ptr, ptr, i32, [4 x i8] }>
%struct.SceneColours = type { i32, i32, i32, i32, i32, i32 }

@scene_manager = external global %struct.SceneManager, align 8
@palette = external global %struct.Palette, align 4
@settings = external global %struct.Settings, align 4
@.str.31 = external hidden unnamed_addr constant [16 x i8], align 1
@window_mgr = external global %struct.WindowManager, align 8
@.str.32 = external hidden unnamed_addr constant [13 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

; 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 void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15AddArrowDiagramPff(ptr noundef %0, float noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca %struct.ImVec2, align 4
  %7 = alloca %struct.ImVec2, align 4
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca ptr, align 8
  %10 = alloca %struct.ImVec2, align 4
  %11 = alloca %struct.colour, align 4
  %12 = alloca %struct.colour, align 4
  %13 = alloca %struct.vec2, align 4
  %14 = alloca %struct.vec2, align 4
  %15 = alloca %struct.vec2, align 4
  %16 = alloca [32 x i8], align 16
  %17 = alloca %struct.ImVec2, align 4
  %18 = alloca %struct.vec2, align 4
  %19 = alloca %struct.vec2, align 4
  %20 = alloca %struct.vec2, align 4
  %21 = alloca %struct.vec2, align 4
  %22 = alloca %struct.vec2, align 4
  %23 = alloca %struct.vec2, align 4
  %24 = alloca %struct.vec2, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store float %1, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store float 5.000000e+01, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %25 = call <2 x float> @_ZN5ImGui18GetCursorScreenPosEv()
  store <2 x float> %25, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  %26 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 0
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = load float, ptr %5, align 4, !tbaa !9
  %29 = fadd float %27, %28
  %30 = fadd float %29, 1.500000e+01
  %31 = getelementptr inbounds %struct.ImVec2, ptr %6, i32 0, i32 1
  %32 = load float, ptr %31, align 4, !tbaa !13
  %33 = load float, ptr %5, align 4, !tbaa !9
  %34 = fadd float %32, %33
  %35 = fadd float %34, 1.500000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %30, float noundef %35)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds float, ptr %36, i64 0
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = load float, ptr %4, align 4, !tbaa !9
  %40 = fdiv float %38, %39
  %41 = load float, ptr %5, align 4, !tbaa !9
  %42 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 0
  %43 = load float, ptr %42, align 4, !tbaa !11
  %44 = call float @llvm.fmuladd.f32(float %40, float %41, float %43)
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds float, ptr %45, i64 1
  %47 = load float, ptr %46, align 4, !tbaa !9
  %48 = load float, ptr %4, align 4, !tbaa !9
  %49 = fdiv float %47, %48
  %50 = load float, ptr %5, align 4, !tbaa !9
  %51 = fneg float %50
  %52 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 1
  %53 = load float, ptr %52, align 4, !tbaa !13
  %54 = call float @llvm.fmuladd.f32(float %49, float %51, float %53)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %44, float noundef %54)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %55 = call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  store ptr %55, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #9
  %56 = load float, ptr %5, align 4, !tbaa !9
  %57 = call float @llvm.fmuladd.f32(float %56, float 2.000000e+00, float 1.500000e+01)
  %58 = load float, ptr %5, align 4, !tbaa !9
  %59 = call float @llvm.fmuladd.f32(float %58, float 2.000000e+00, float 3.000000e+01)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %10, float noundef %57, float noundef %59)
  %60 = call noundef zeroext i1 @_ZN5ImGui15InvisibleButtonEPKcRK6ImVec2i(ptr noundef @.str.31, ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 getelementptr inbounds ([16 x %struct.colour], ptr @palette, i64 0, i64 8), i64 16, i1 false), !tbaa.struct !14
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load float, ptr %5, align 4, !tbaa !9
  %63 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 3
  %64 = load float, ptr %63, align 4, !tbaa !15
  %65 = fmul float %64, 2.550000e+02
  %66 = fptoui float %65 to i32
  %67 = shl i32 %66, 24
  %68 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 2
  %69 = load float, ptr %68, align 4, !tbaa !17
  %70 = fmul float %69, 2.550000e+02
  %71 = fptoui float %70 to i32
  %72 = shl i32 %71, 16
  %73 = or i32 %67, %72
  %74 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 1
  %75 = load float, ptr %74, align 4, !tbaa !18
  %76 = fmul float %75, 2.550000e+02
  %77 = fptoui float %76 to i32
  %78 = shl i32 %77, 8
  %79 = or i32 %73, %78
  %80 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 0
  %81 = load float, ptr %80, align 4, !tbaa !19
  %82 = fmul float %81, 2.550000e+02
  %83 = fptoui float %82 to i32
  %84 = shl i32 %83, 0
  %85 = or i32 %79, %84
  call void @_ZN10ImDrawList9AddCircleERK6ImVec2fjif(ptr noundef nonnull align 8 dereferenceable(216) %61, ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef %62, i32 noundef %85, i32 noundef 64, float noundef 2.000000e+00)
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 3
  %88 = load float, ptr %87, align 4, !tbaa !15
  %89 = fmul float %88, 2.550000e+02
  %90 = fptoui float %89 to i32
  %91 = shl i32 %90, 24
  %92 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 2
  %93 = load float, ptr %92, align 4, !tbaa !17
  %94 = fmul float %93, 2.550000e+02
  %95 = fptoui float %94 to i32
  %96 = shl i32 %95, 16
  %97 = or i32 %91, %96
  %98 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !18
  %100 = fmul float %99, 2.550000e+02
  %101 = fptoui float %100 to i32
  %102 = shl i32 %101, 8
  %103 = or i32 %97, %102
  %104 = getelementptr inbounds %struct.colour, ptr %11, i32 0, i32 0
  %105 = load float, ptr %104, align 4, !tbaa !19
  %106 = fmul float %105, 2.550000e+02
  %107 = fptoui float %106 to i32
  %108 = shl i32 %107, 0
  %109 = or i32 %103, %108
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216) %86, ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 3.000000e+00, i32 noundef %109, i32 noundef 0)
  %110 = load i8, ptr getelementptr inbounds (%struct.Settings, ptr @settings, i32 0, i32 11), align 4, !tbaa !20, !range !25, !noundef !26
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %198

112:                                              ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #9
  %113 = load ptr, ptr @scene_manager, align 8, !tbaa !27
  %114 = getelementptr inbounds %struct.Scene, ptr %113, i32 0, i32 1
  %115 = getelementptr inbounds %struct.SceneColours, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %115, align 8, !tbaa !29
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [16 x %struct.colour], ptr @palette, i64 0, i64 %117
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %118, i64 16, i1 false), !tbaa.struct !14
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 3
  %121 = load float, ptr %120, align 4, !tbaa !15
  %122 = fmul float %121, 2.550000e+02
  %123 = fptoui float %122 to i32
  %124 = shl i32 %123, 24
  %125 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 2
  %126 = load float, ptr %125, align 4, !tbaa !17
  %127 = fmul float %126, 2.550000e+02
  %128 = fptoui float %127 to i32
  %129 = shl i32 %128, 16
  %130 = or i32 %124, %129
  %131 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 1
  %132 = load float, ptr %131, align 4, !tbaa !18
  %133 = fmul float %132, 2.550000e+02
  %134 = fptoui float %133 to i32
  %135 = shl i32 %134, 8
  %136 = or i32 %130, %135
  %137 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 0
  %138 = load float, ptr %137, align 4, !tbaa !19
  %139 = fmul float %138, 2.550000e+02
  %140 = fptoui float %139 to i32
  %141 = shl i32 %140, 0
  %142 = or i32 %136, %141
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(216) %119, ptr noundef nonnull align 4 dereferenceable(8) %7, ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef %142, float noundef 2.000000e+00)
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 3
  %145 = load float, ptr %144, align 4, !tbaa !15
  %146 = fmul float %145, 2.550000e+02
  %147 = fptoui float %146 to i32
  %148 = shl i32 %147, 24
  %149 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 2
  %150 = load float, ptr %149, align 4, !tbaa !17
  %151 = fmul float %150, 2.550000e+02
  %152 = fptoui float %151 to i32
  %153 = shl i32 %152, 16
  %154 = or i32 %148, %153
  %155 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 1
  %156 = load float, ptr %155, align 4, !tbaa !18
  %157 = fmul float %156, 2.550000e+02
  %158 = fptoui float %157 to i32
  %159 = shl i32 %158, 8
  %160 = or i32 %154, %159
  %161 = getelementptr inbounds %struct.colour, ptr %12, i32 0, i32 0
  %162 = load float, ptr %161, align 4, !tbaa !19
  %163 = fmul float %162, 2.550000e+02
  %164 = fptoui float %163 to i32
  %165 = shl i32 %164, 0
  %166 = or i32 %160, %165
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216) %143, ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef 5.000000e+00, i32 noundef %166, i32 noundef 0)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 8 @window_mgr, i64 8, i1 false), !tbaa.struct !32
  %167 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 0
  %168 = load float, ptr %167, align 4, !tbaa !11
  %169 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 1
  %170 = load float, ptr %169, align 4, !tbaa !13
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %15, float noundef %168, float noundef %170)
  %171 = load <2 x float>, ptr %14, align 4
  %172 = load <2 x float>, ptr %15, align 4
  %173 = call <2 x float> @_Zmi4vec2S_(<2 x float> %171, <2 x float> %172)
  store <2 x float> %173, ptr %13, align 4
  %174 = load <2 x float>, ptr %13, align 4
  %175 = call noundef float @_Z6length4vec2(<2 x float> %174)
  %176 = load float, ptr %5, align 4, !tbaa !9
  %177 = fcmp ole float %175, %176
  br i1 %177, label %178, label %197

178:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #9
  %179 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds float, ptr %180, i64 0
  %182 = load float, ptr %181, align 4, !tbaa !9
  %183 = fpext float %182 to double
  %184 = load ptr, ptr %3, align 8, !tbaa !5
  %185 = getelementptr inbounds float, ptr %184, i64 1
  %186 = load float, ptr %185, align 4, !tbaa !9
  %187 = fpext float %186 to double
  %188 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %179, i64 noundef 32, ptr noundef @.str.32, double noundef %183, double noundef %187) #9
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  %190 = getelementptr inbounds %struct.ImVec2, ptr %8, i32 0, i32 0
  %191 = load float, ptr %190, align 4, !tbaa !11
  %192 = fadd float %191, 5.000000e+00
  %193 = getelementptr inbounds %struct.ImVec2, ptr %8, i32 0, i32 1
  %194 = load float, ptr %193, align 4, !tbaa !13
  %195 = fsub float %194, 1.000000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %17, float noundef %192, float noundef %195)
  %196 = getelementptr inbounds [32 x i8], ptr %16, i64 0, i64 0
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(216) %189, ptr noundef nonnull align 4 dereferenceable(8) %17, i32 noundef -1, ptr noundef %196, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #9
  br label %197

197:                                              ; preds = %178, %112
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #9
  br label %198

198:                                              ; preds = %197, %2
  %199 = call noundef zeroext i1 @_ZN5ImGui12IsItemActiveEv()
  br i1 %199, label %200, label %233

200:                                              ; preds = %198
  %201 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %201, label %202, label %233

202:                                              ; preds = %200
  store i8 1, ptr getelementptr inbounds (%struct.Settings, ptr @settings, i32 0, i32 11), align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 8 @window_mgr, i64 8, i1 false), !tbaa.struct !32
  %203 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 0
  %204 = load float, ptr %203, align 4, !tbaa !11
  %205 = getelementptr inbounds %struct.ImVec2, ptr %7, i32 0, i32 1
  %206 = load float, ptr %205, align 4, !tbaa !13
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef %204, float noundef %206)
  %207 = load <2 x float>, ptr %20, align 4
  %208 = load <2 x float>, ptr %21, align 4
  %209 = call <2 x float> @_Zmi4vec2S_(<2 x float> %207, <2 x float> %208)
  store <2 x float> %209, ptr %19, align 4
  %210 = load float, ptr %5, align 4, !tbaa !9
  %211 = load <2 x float>, ptr %19, align 4
  %212 = call <2 x float> @_Zdv4vec2f(<2 x float> %211, float noundef %210)
  store <2 x float> %212, ptr %18, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !32
  %213 = load <2 x float>, ptr %22, align 4
  %214 = call noundef float @_Z6length4vec2(<2 x float> %213)
  %215 = fcmp ogt float %214, 1.000000e+00
  br i1 %215, label %216, label %219

216:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 %18, i64 8, i1 false), !tbaa.struct !32
  %217 = load <2 x float>, ptr %24, align 4
  %218 = call <2 x float> @_Z9normalize4vec2(<2 x float> %217)
  store <2 x float> %218, ptr %23, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %23, i64 8, i1 false), !tbaa.struct !32
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #9
  br label %219

219:                                              ; preds = %216, %202
  %220 = getelementptr inbounds %struct.vec2, ptr %18, i32 0, i32 0
  %221 = load float, ptr %220, align 4, !tbaa !33
  %222 = load float, ptr %4, align 4, !tbaa !9
  %223 = fmul float %221, %222
  %224 = load ptr, ptr %3, align 8, !tbaa !5
  %225 = getelementptr inbounds float, ptr %224, i64 0
  store float %223, ptr %225, align 4, !tbaa !9
  %226 = getelementptr inbounds %struct.vec2, ptr %18, i32 0, i32 1
  %227 = load float, ptr %226, align 4, !tbaa !34
  %228 = fneg float %227
  %229 = load float, ptr %4, align 4, !tbaa !9
  %230 = fmul float %228, %229
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds float, ptr %231, i64 1
  store float %230, ptr %232, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %233

233:                                              ; preds = %219, %200, %198
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  ret void
}

declare <2 x float> @_ZN5ImGui18GetCursorScreenPosEv() #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() #4

declare noundef zeroext i1 @_ZN5ImGui15InvisibleButtonEPKcRK6ImVec2i(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) #4

declare void @_ZN10ImDrawList9AddCircleERK6ImVec2fjif(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef, float noundef) #4

declare void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef) #4

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z6length4vec2(<2 x float>) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4vec2S_(<2 x float>, <2 x float>) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #8

declare void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef) #4

declare noundef zeroext i1 @_ZN5ImGui12IsItemActiveEv() #4

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zdv4vec2f(<2 x float>, float noundef) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z9normalize4vec2(<2 x float>) #7

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #8 = { 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 #9 = { 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 = !{!"float", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTS6ImVec2", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 4}
!14 = !{i64 0, i64 4, !9, i64 4, i64 4, !9, i64 8, i64 4, !9, i64 12, i64 4, !9}
!15 = !{!16, !10, i64 12}
!16 = !{!"_ZTS6colour", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12}
!17 = !{!16, !10, i64 8}
!18 = !{!16, !10, i64 4}
!19 = !{!16, !10, i64 0}
!20 = !{!21, !23, i64 40}
!21 = !{!"_ZTS8Settings", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12, !23, i64 16, !10, i64 20, !10, i64 24, !23, i64 28, !24, i64 32, !23, i64 40, !23, i64 41, !23, i64 42, !23, i64 43, !23, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !22, i64 64, !22, i64 68, !22, i64 72, !10, i64 76, !23, i64 80}
!22 = !{!"int", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!"_ZTS4vec2", !10, i64 0, !10, i64 4}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !6, i64 0}
!28 = !{!"_ZTS12SceneManager", !6, i64 0, !22, i64 8}
!29 = !{!30, !22, i64 16}
!30 = !{!"_ZTS5Scene", !31, i64 8, !6, i64 32, !6, i64 40, !22, i64 48}
!31 = !{!"_ZTS12SceneColours", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12, !22, i64 16, !22, i64 20}
!32 = !{i64 0, i64 4, !9, i64 4, i64 4, !9}
!33 = !{!24, !10, i64 0}
!34 = !{!24, !10, i64 4}


; 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"

%struct.SceneManager = type <{ ptr, i32, [4 x i8] }>
%struct.Palette = type { [16 x %struct.colour] }
%struct.colour = type { float, float, float, float }
%struct.Settings = type <{ i32, i32, i32, i32, i8, [3 x i8], float, float, i8, [3 x i8], %struct.vec2, i8, i8, i8, i8, i8, [3 x i8], float, float, float, float, i32, i32, i32, float, i8, [3 x i8] }>
%struct.vec2 = type { float, float }
%struct.WindowManager = type <{ %struct.vec2, i32, i32, ptr, ptr, ptr, i8, i8, i8, i8, [4 x i8] }>
%struct.ImVec2 = type { float, float }

@scene_manager = external local_unnamed_addr global %struct.SceneManager, align 8
@palette = external local_unnamed_addr global %struct.Palette, align 4
@settings = external local_unnamed_addr global %struct.Settings, align 4
@.str.31 = external hidden unnamed_addr constant [16 x i8], align 1
@window_mgr = external local_unnamed_addr global %struct.WindowManager, align 8
@.str.32 = external hidden unnamed_addr constant [13 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

; 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 void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15AddArrowDiagramPff(ptr nocapture noundef %0, float noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.ImVec2, align 4
  %4 = alloca %struct.ImVec2, align 4
  %5 = alloca %struct.ImVec2, align 4
  %6 = alloca %struct.vec2, align 8
  %7 = alloca [32 x i8], align 16
  %8 = alloca %struct.ImVec2, align 4
  %9 = alloca %struct.vec2, align 8
  %10 = tail call <2 x float> @_ZN5ImGui18GetCursorScreenPosEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  %.sroa.027.0.vec.extract = extractelement <2 x float> %10, i64 0
  %11 = fadd float %.sroa.027.0.vec.extract, 5.000000e+01
  %12 = fadd float %11, 1.500000e+01
  %.sroa.027.4.vec.extract = extractelement <2 x float> %10, i64 1
  %13 = fadd float %.sroa.027.4.vec.extract, 5.000000e+01
  %14 = fadd float %13, 1.500000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef %12, float noundef %14)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  %15 = load float, ptr %0, align 4, !tbaa !5
  %16 = fdiv float %15, %1
  %17 = load float, ptr %3, align 4, !tbaa !9
  %18 = call float @llvm.fmuladd.f32(float %16, float 5.000000e+01, float %17)
  %19 = getelementptr inbounds i8, ptr %0, i64 4
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = fdiv float %20, %1
  %22 = getelementptr inbounds i8, ptr %3, i64 4
  %23 = load float, ptr %22, align 4, !tbaa !11
  %24 = call float @llvm.fmuladd.f32(float %21, float -5.000000e+01, float %23)
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef %18, float noundef %24)
  %25 = call noundef ptr @_ZN5ImGui17GetWindowDrawListEv()
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %5, float noundef 1.150000e+02, float noundef 1.300000e+02)
  %26 = call noundef zeroext i1 @_ZN5ImGui15InvisibleButtonEPKcRK6ImVec2i(ptr noundef nonnull @.str.31, ptr noundef nonnull align 4 dereferenceable(8) %5, i32 noundef 1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  %.sroa.015.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @palette, i64 128), align 4, !tbaa !5
  %.sroa.517.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @palette, i64 132), align 4, !tbaa !5
  %.sroa.719.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @palette, i64 136), align 4, !tbaa !5
  %.sroa.921.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @palette, i64 140), align 4, !tbaa !5
  %27 = fmul float %.sroa.921.0.copyload, 2.550000e+02
  %28 = fptoui float %27 to i32
  %29 = shl i32 %28, 24
  %30 = fmul float %.sroa.719.0.copyload, 2.550000e+02
  %31 = fptoui float %30 to i32
  %32 = shl i32 %31, 16
  %33 = fmul float %.sroa.517.0.copyload, 2.550000e+02
  %34 = fptoui float %33 to i32
  %35 = shl i32 %34, 8
  %36 = fmul float %.sroa.015.0.copyload, 2.550000e+02
  %37 = fptoui float %36 to i32
  %38 = or i32 %35, %37
  %39 = or i32 %38, %32
  %40 = or i32 %39, %29
  call void @_ZN10ImDrawList9AddCircleERK6ImVec2fjif(ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 5.000000e+01, i32 noundef %40, i32 noundef 64, float noundef 2.000000e+00)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 3.000000e+00, i32 noundef %40, i32 noundef 0)
  %41 = load i8, ptr getelementptr inbounds (i8, ptr @settings, i64 40), align 4, !tbaa !12, !range !17, !noundef !18
  %42 = trunc nuw i8 %41 to i1
  br i1 %42, label %43, label %80

43:                                               ; preds = %2
  %44 = load ptr, ptr @scene_manager, align 8, !tbaa !19
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %46 = load i32, ptr %45, align 8, !tbaa !22
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [16 x %struct.colour], ptr @palette, i64 0, i64 %47
  %.sroa.010.0.copyload = load float, ptr %48, align 4, !tbaa !5
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 4
  %.sroa.5.0.copyload = load float, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !5
  %.sroa.7.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 8
  %.sroa.7.0.copyload = load float, ptr %.sroa.7.0..sroa_idx, align 4, !tbaa !5
  %.sroa.9.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 12
  %.sroa.9.0.copyload = load float, ptr %.sroa.9.0..sroa_idx, align 4, !tbaa !5
  %49 = fmul float %.sroa.9.0.copyload, 2.550000e+02
  %50 = fptoui float %49 to i32
  %51 = shl i32 %50, 24
  %52 = fmul float %.sroa.7.0.copyload, 2.550000e+02
  %53 = fptoui float %52 to i32
  %54 = shl i32 %53, 16
  %55 = fmul float %.sroa.5.0.copyload, 2.550000e+02
  %56 = fptoui float %55 to i32
  %57 = shl i32 %56, 8
  %58 = fmul float %.sroa.010.0.copyload, 2.550000e+02
  %59 = fptoui float %58 to i32
  %60 = or i32 %57, %59
  %61 = or i32 %60, %54
  %62 = or i32 %61, %51
  call void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(8) %4, i32 noundef %62, float noundef 2.000000e+00)
  call void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 5.000000e+00, i32 noundef %62, i32 noundef 0)
  %.sroa.08.0.copyload = load <2 x float>, ptr @window_mgr, align 8
  %63 = load float, ptr %3, align 4, !tbaa !9
  %64 = load float, ptr %22, align 4, !tbaa !11
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef %63, float noundef %64)
  %65 = load <2 x float>, ptr %6, align 8
  %66 = call <2 x float> @_Zmi4vec2S_(<2 x float> %.sroa.08.0.copyload, <2 x float> %65)
  %67 = call noundef float @_Z6length4vec2(<2 x float> %66)
  %68 = fcmp ugt float %67, 5.000000e+01
  br i1 %68, label %80, label %69

69:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #8
  %70 = load float, ptr %0, align 4, !tbaa !5
  %71 = fpext float %70 to double
  %72 = load float, ptr %19, align 4, !tbaa !5
  %73 = fpext float %72 to double
  %74 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 32, ptr noundef nonnull @.str.32, double noundef %71, double noundef %73) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  %75 = load float, ptr %4, align 4, !tbaa !9
  %76 = fadd float %75, 5.000000e+00
  %77 = getelementptr inbounds i8, ptr %4, i64 4
  %78 = load float, ptr %77, align 4, !tbaa !11
  %79 = fadd float %78, -1.000000e+01
  call void @_ZN6ImVec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %76, float noundef %79)
  call void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(216) %25, ptr noundef nonnull align 4 dereferenceable(8) %8, i32 noundef -1, ptr noundef nonnull %7, ptr noundef null)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #8
  br label %80

80:                                               ; preds = %43, %69, %2
  %81 = call noundef zeroext i1 @_ZN5ImGui12IsItemActiveEv()
  br i1 %81, label %82, label %98

82:                                               ; preds = %80
  %83 = call noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef 0, float noundef -1.000000e+00)
  br i1 %83, label %84, label %98

84:                                               ; preds = %82
  store i8 1, ptr getelementptr inbounds (i8, ptr @settings, i64 40), align 4, !tbaa !12
  %.sroa.03.0.copyload = load <2 x float>, ptr @window_mgr, align 8
  %85 = load float, ptr %3, align 4, !tbaa !9
  %86 = load float, ptr %22, align 4, !tbaa !11
  call void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %9, float noundef %85, float noundef %86)
  %87 = load <2 x float>, ptr %9, align 8
  %88 = call <2 x float> @_Zmi4vec2S_(<2 x float> %.sroa.03.0.copyload, <2 x float> %87)
  %89 = call <2 x float> @_Zdv4vec2f(<2 x float> %88, float noundef 5.000000e+01)
  %90 = call noundef float @_Z6length4vec2(<2 x float> %89)
  %91 = fcmp ogt float %90, 1.000000e+00
  br i1 %91, label %92, label %94

92:                                               ; preds = %84
  %93 = call <2 x float> @_Z9normalize4vec2(<2 x float> %89)
  br label %94

94:                                               ; preds = %92, %84
  %.sroa.05.0 = phi <2 x float> [ %93, %92 ], [ %89, %84 ]
  %.sroa.05.0.vec.extract = extractelement <2 x float> %.sroa.05.0, i64 0
  %95 = fmul float %.sroa.05.0.vec.extract, %1
  store float %95, ptr %0, align 4, !tbaa !5
  %.sroa.05.4.vec.extract = extractelement <2 x float> %.sroa.05.0, i64 1
  %96 = fneg float %.sroa.05.4.vec.extract
  %97 = fmul float %96, %1
  store float %97, ptr %19, align 4, !tbaa !5
  br label %98

98:                                               ; preds = %94, %82, %80
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  ret void
}

declare <2 x float> @_ZN5ImGui18GetCursorScreenPosEv() local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare noundef ptr @_ZN5ImGui17GetWindowDrawListEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN5ImGui15InvisibleButtonEPKcRK6ImVec2i(ptr noundef, ptr noundef nonnull align 4 dereferenceable(8), i32 noundef) local_unnamed_addr #3

declare void @_ZN10ImDrawList9AddCircleERK6ImVec2fjif(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef, float noundef) local_unnamed_addr #3

declare void @_ZN10ImDrawList15AddCircleFilledERK6ImVec2fji(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), float noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @_ZN10ImDrawList7AddLineERK6ImVec2S2_jf(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_Z6length4vec2(<2 x float>) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4vec2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #1 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #7

declare void @_ZN10ImDrawList7AddTextERK6ImVec2jPKcS4_(ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(8), i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef zeroext i1 @_ZN5ImGui12IsItemActiveEv() local_unnamed_addr #3

declare noundef zeroext i1 @_ZN5ImGui15IsMouseDraggingEif(i32 noundef, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zdv4vec2f(<2 x float>, float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Z9normalize4vec2(<2 x float>) local_unnamed_addr #6

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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="64" "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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 #7 = { nofree 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 #8 = { 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, !6, i64 0}
!10 = !{!"_ZTS6ImVec2", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{!13, !15, i64 40}
!13 = !{!"_ZTS8Settings", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !15, i64 16, !6, i64 20, !6, i64 24, !15, i64 28, !16, i64 32, !15, i64 40, !15, i64 41, !15, i64 42, !15, i64 43, !15, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !6, i64 76, !15, i64 80}
!14 = !{!"int", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTS4vec2", !6, i64 0, !6, i64 4}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !21, i64 0}
!20 = !{!"_ZTS12SceneManager", !21, i64 0, !14, i64 8}
!21 = !{!"any pointer", !7, i64 0}
!22 = !{!23, !14, i64 16}
!23 = !{!"_ZTS5Scene", !24, i64 8, !21, i64 32, !21, i64 40, !14, i64 48}
!24 = !{!"_ZTS12SceneColours", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass