; LLVM IR from mvr/jiggle :: src (Area)

; 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.jgVector2 = type { float, float }
%struct.jgArea = type { ptr, %struct.jgAABB, %struct.jgVector2, ptr, i8, %struct.jgVector2, %struct.jgVector2, float, i8, float, float, i8 }
%struct.jgAABB = type { %struct.jgVector2, %struct.jgVector2, i8 }
%struct.jgList = type { ptr, i32, i32 }
%struct.jgParticle = type { float, %struct.jgVector2, %struct.jgVector2, %struct.jgVector2, %struct.jgVector2, %struct.jgVector2, float, float, i8, i8, ptr }

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @jgListGet(ptr noundef, i32 noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Add(<2 x float>, <2 x float>) #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) #3

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Subtract(<2 x float>, <2 x float>) #2

; Function Attrs: nounwind uwtable
define dso_local void @jgAreaMatchShape(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %struct.jgVector2, align 4
  %6 = alloca %struct.jgVector2, align 4
  %7 = alloca %struct.jgVector2, align 4
  %8 = alloca %struct.jgVector2, align 4
  %9 = alloca float, align 4
  %10 = alloca %struct.jgVector2, align 4
  %11 = alloca %struct.jgVector2, align 4
  %12 = alloca float, align 4
  %13 = alloca %struct.jgVector2, align 4
  %14 = alloca %struct.jgVector2, align 4
  %15 = alloca %struct.jgVector2, align 4
  %16 = alloca float, align 4
  %17 = alloca %struct.jgVector2, align 4
  %18 = alloca %struct.jgVector2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.jgArea, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = call ptr @jgListGet(ptr noundef %21, i32 noundef 0)
  store ptr %22, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !15
  br label %23

23:                                               ; preds = %105, %1
  %24 = load i32, ptr %4, align 4, !tbaa !15
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.jgArea, ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !9
  %28 = getelementptr inbounds %struct.jgList, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !17
  %30 = icmp slt i32 %24, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %113

32:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.jgArea, ptr %33, i32 0, i32 3
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = load i32, ptr %4, align 4, !tbaa !15
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds %struct.jgVector2, ptr %35, i64 %37
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %38, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.jgArea, ptr %39, i32 0, i32 7
  %41 = load float, ptr %40, align 4, !tbaa !22
  %42 = load <2 x float>, ptr %5, align 4
  %43 = call <2 x float> @jgVector2Rotate(<2 x float> %42, float noundef %41)
  store <2 x float> %43, ptr %6, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %6, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.jgArea, ptr %44, i32 0, i32 5
  %46 = load <2 x float>, ptr %5, align 4
  %47 = load <2 x float>, ptr %45, align 4
  %48 = call <2 x float> @jgVector2Add(<2 x float> %46, <2 x float> %47)
  store <2 x float> %48, ptr %7, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.jgParticle, ptr %49, i32 0, i32 1
  %51 = load <2 x float>, ptr %50, align 4
  %52 = load <2 x float>, ptr %5, align 4
  %53 = call <2 x float> @jgVector2Subtract(<2 x float> %51, <2 x float> %52)
  store <2 x float> %53, ptr %8, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %54 = load <2 x float>, ptr %8, align 4
  %55 = call float @jgVector2Length(<2 x float> %54)
  %56 = fneg float %55
  store float %56, ptr %9, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %57 = load <2 x float>, ptr %8, align 4
  %58 = call <2 x float> @jgVector2Normalize(<2 x float> %57)
  store <2 x float> %58, ptr %10, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 %10, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %59 = load ptr, ptr %3, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.jgParticle, ptr %59, i32 0, i32 3
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.jgArea, ptr %61, i32 0, i32 6
  %63 = load <2 x float>, ptr %60, align 4
  %64 = load <2 x float>, ptr %62, align 4
  %65 = call <2 x float> @jgVector2Subtract(<2 x float> %63, <2 x float> %64)
  store <2 x float> %65, ptr %11, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %66 = load <2 x float>, ptr %11, align 4
  %67 = load <2 x float>, ptr %8, align 4
  %68 = call float @jgVector2Dot(<2 x float> %66, <2 x float> %67)
  store float %68, ptr %12, align 4, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %69 = load float, ptr %9, align 4, !tbaa !21
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.jgArea, ptr %70, i32 0, i32 9
  %72 = load float, ptr %71, align 4, !tbaa !23
  %73 = load float, ptr %12, align 4, !tbaa !21
  %74 = load ptr, ptr %2, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.jgArea, ptr %74, i32 0, i32 10
  %76 = load float, ptr %75, align 8, !tbaa !24
  %77 = fmul float %73, %76
  %78 = fneg float %77
  %79 = call float @llvm.fmuladd.f32(float %69, float %72, float %78)
  %80 = load <2 x float>, ptr %8, align 4
  %81 = call <2 x float> @jgVector2Multiply(<2 x float> %80, float noundef %79)
  store <2 x float> %81, ptr %13, align 4
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.jgParticle, ptr %82, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.jgParticle, ptr %84, i32 0, i32 4
  %86 = load <2 x float>, ptr %85, align 4
  %87 = load <2 x float>, ptr %13, align 4
  %88 = call <2 x float> @jgVector2Add(<2 x float> %86, <2 x float> %87)
  store <2 x float> %88, ptr %14, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %83, ptr align 4 %14, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #6
  %89 = load <2 x float>, ptr %8, align 4
  %90 = call <2 x float> @jgVector2Perpendicular(<2 x float> %89)
  store <2 x float> %90, ptr %15, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %91 = load <2 x float>, ptr %11, align 4
  %92 = load <2 x float>, ptr %15, align 4
  %93 = call float @jgVector2Dot(<2 x float> %91, <2 x float> %92)
  store float %93, ptr %16, align 4, !tbaa !21
  %94 = load ptr, ptr %3, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.jgParticle, ptr %94, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.jgParticle, ptr %96, i32 0, i32 4
  %98 = load float, ptr %16, align 4, !tbaa !21
  %99 = fmul float %98, 5.000000e+00
  %100 = load <2 x float>, ptr %15, align 4
  %101 = call <2 x float> @jgVector2Multiply(<2 x float> %100, float noundef %99)
  store <2 x float> %101, ptr %18, align 4
  %102 = load <2 x float>, ptr %97, align 4
  %103 = load <2 x float>, ptr %18, align 4
  %104 = call <2 x float> @jgVector2Subtract(<2 x float> %102, <2 x float> %103)
  store <2 x float> %104, ptr %17, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %17, i64 8, i1 false), !tbaa.struct !20
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %105

105:                                              ; preds = %32
  %106 = load i32, ptr %4, align 4, !tbaa !15
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %4, align 4, !tbaa !15
  %108 = load ptr, ptr %2, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.jgArea, ptr %108, i32 0, i32 0
  %110 = load ptr, ptr %109, align 8, !tbaa !9
  %111 = load i32, ptr %4, align 4, !tbaa !15
  %112 = call ptr @jgListGet(ptr noundef %110, i32 noundef %111)
  store ptr %112, ptr %3, align 8, !tbaa !5
  br label %23, !llvm.loop !25

113:                                              ; preds = %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Rotate(<2 x float>, float noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @jgVector2Length(<2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Normalize(<2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @jgVector2Dot(<2 x float>, <2 x float>) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Multiply(<2 x float>, float noundef) #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Perpendicular(<2 x float>) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"jgArea", !6, i64 0, !11, i64 8, !12, i64 28, !6, i64 40, !14, i64 48, !12, i64 52, !12, i64 60, !13, i64 68, !14, i64 72, !13, i64 76, !13, i64 80, !14, i64 84}
!11 = !{!"jgAABB", !12, i64 0, !12, i64 8, !14, i64 16}
!12 = !{!"jgVector2", !13, i64 0, !13, i64 4}
!13 = !{!"float", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!18, !16, i64 8}
!18 = !{!"jgList", !6, i64 0, !16, i64 8, !16, i64 12}
!19 = !{!10, !6, i64 40}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !21}
!21 = !{!13, !13, i64 0}
!22 = !{!10, !13, i64 68}
!23 = !{!10, !13, i64 76}
!24 = !{!10, !13, i64 80}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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

%struct.jgVector2 = type { float, float }

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @jgListGet(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Add(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Subtract(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @jgAreaMatchShape(ptr nocapture noundef readonly %0) local_unnamed_addr #2 {
  %2 = load ptr, ptr %0, align 8, !tbaa !5
  %3 = tail call ptr @jgListGet(ptr noundef %2, i32 noundef 0)
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 8
  %6 = load i32, ptr %5, align 8, !tbaa !14
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 40
  %9 = getelementptr inbounds i8, ptr %0, i64 68
  %10 = getelementptr inbounds i8, ptr %0, i64 52
  %11 = getelementptr inbounds i8, ptr %0, i64 60
  %12 = getelementptr inbounds i8, ptr %0, i64 76
  %13 = getelementptr inbounds i8, ptr %0, i64 80
  br label %14

._crit_edge:                                      ; preds = %14, %1
  ret void

14:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %14 ]
  %.041 = phi ptr [ %3, %.lr.ph ], [ %49, %14 ]
  %15 = load ptr, ptr %8, align 8, !tbaa !17
  %16 = getelementptr inbounds %struct.jgVector2, ptr %15, i64 %indvars.iv
  %.sroa.018.0.copyload = load <2 x float>, ptr %16, align 4
  %17 = load float, ptr %9, align 4, !tbaa !18
  %18 = tail call <2 x float> @jgVector2Rotate(<2 x float> %.sroa.018.0.copyload, float noundef %17)
  %19 = load <2 x float>, ptr %10, align 4
  %20 = tail call <2 x float> @jgVector2Add(<2 x float> %18, <2 x float> %19)
  %21 = getelementptr inbounds i8, ptr %.041, i64 4
  %22 = load <2 x float>, ptr %21, align 4
  %23 = tail call <2 x float> @jgVector2Subtract(<2 x float> %22, <2 x float> %20)
  %24 = tail call float @jgVector2Length(<2 x float> %23)
  %25 = fneg float %24
  %26 = tail call <2 x float> @jgVector2Normalize(<2 x float> %23)
  %27 = getelementptr inbounds i8, ptr %.041, i64 20
  %28 = load <2 x float>, ptr %27, align 4
  %29 = load <2 x float>, ptr %11, align 4
  %30 = tail call <2 x float> @jgVector2Subtract(<2 x float> %28, <2 x float> %29)
  %31 = tail call float @jgVector2Dot(<2 x float> %30, <2 x float> %26)
  %32 = load float, ptr %12, align 4, !tbaa !19
  %33 = load float, ptr %13, align 8, !tbaa !20
  %34 = fneg float %31
  %35 = fmul float %33, %34
  %36 = tail call float @llvm.fmuladd.f32(float %25, float %32, float %35)
  %37 = tail call <2 x float> @jgVector2Multiply(<2 x float> %26, float noundef %36)
  %38 = getelementptr inbounds i8, ptr %.041, i64 28
  %39 = load <2 x float>, ptr %38, align 4
  %40 = tail call <2 x float> @jgVector2Add(<2 x float> %39, <2 x float> %37)
  store <2 x float> %40, ptr %38, align 4
  %41 = tail call <2 x float> @jgVector2Perpendicular(<2 x float> %26)
  %42 = tail call float @jgVector2Dot(<2 x float> %30, <2 x float> %41)
  %43 = fmul float %42, 5.000000e+00
  %44 = tail call <2 x float> @jgVector2Multiply(<2 x float> %41, float noundef %43)
  %45 = load <2 x float>, ptr %38, align 4
  %46 = tail call <2 x float> @jgVector2Subtract(<2 x float> %45, <2 x float> %44)
  store <2 x float> %46, ptr %38, align 4
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = load ptr, ptr %0, align 8, !tbaa !5
  %48 = trunc nuw nsw i64 %indvars.iv.next to i32
  %49 = tail call ptr @jgListGet(ptr noundef %47, i32 noundef %48)
  %50 = load ptr, ptr %0, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 8
  %52 = load i32, ptr %51, align 8, !tbaa !14
  %53 = sext i32 %52 to i64
  %54 = icmp slt i64 %indvars.iv.next, %53
  br i1 %54, label %14, label %._crit_edge, !llvm.loop !21
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Rotate(<2 x float>, float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @jgVector2Length(<2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Normalize(<2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @jgVector2Dot(<2 x float>, <2 x float>) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Multiply(<2 x float>, float noundef) local_unnamed_addr #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden <2 x float> @jgVector2Perpendicular(<2 x float>) local_unnamed_addr #1

attributes #0 = { inlinehint 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 = { inlinehint 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 #2 = { 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 #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !7, i64 0}
!6 = !{!"jgArea", !7, i64 0, !10, i64 8, !11, i64 28, !7, i64 40, !13, i64 48, !11, i64 52, !11, i64 60, !12, i64 68, !13, i64 72, !12, i64 76, !12, i64 80, !13, i64 84}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"jgAABB", !11, i64 0, !11, i64 8, !13, i64 16}
!11 = !{!"jgVector2", !12, i64 0, !12, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!15, !16, i64 8}
!15 = !{!"jgList", !7, i64 0, !16, i64 8, !16, i64 12}
!16 = !{!"int", !8, i64 0}
!17 = !{!6, !7, i64 40}
!18 = !{!6, !12, i64 68}
!19 = !{!6, !12, i64 76}
!20 = !{!6, !12, i64 80}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass