; LLVM IR from Discngine/fpocket :: src (voronoi)

; 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.s_vvertice = type { i32, i32, i32, i32, i32, float, float, float, float, i32, i32, [4 x i32], [4 x ptr], [3 x float], float }

; Function Attrs: nounwind uwtable
define dso_local void @copy_vertice(ptr noundef %0, ptr noundef %1, i32 noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i32 %2, ptr %6, align 4, !tbaa !9
  %7 = load ptr, ptr %4, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.s_vvertice, ptr %7, i32 0, i32 6
  %9 = load float, ptr %8, align 8, !tbaa !11
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.s_vvertice, ptr %10, i32 0, i32 6
  store float %9, ptr %11, align 8, !tbaa !11
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.s_vvertice, ptr %12, i32 0, i32 7
  %14 = load float, ptr %13, align 4, !tbaa !14
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.s_vvertice, ptr %15, i32 0, i32 7
  store float %14, ptr %16, align 4, !tbaa !14
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.s_vvertice, ptr %17, i32 0, i32 8
  %19 = load float, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.s_vvertice, ptr %20, i32 0, i32 8
  store float %19, ptr %21, align 8, !tbaa !15
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.s_vvertice, ptr %22, i32 0, i32 10
  %24 = load i32, ptr %23, align 8, !tbaa !16
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.s_vvertice, ptr %25, i32 0, i32 10
  store i32 %24, ptr %26, align 8, !tbaa !16
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.s_vvertice, ptr %27, i32 0, i32 13
  %29 = getelementptr inbounds [3 x float], ptr %28, i64 0, i64 0
  %30 = load float, ptr %29, align 8, !tbaa !17
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.s_vvertice, ptr %31, i32 0, i32 13
  %33 = getelementptr inbounds [3 x float], ptr %32, i64 0, i64 0
  store float %30, ptr %33, align 8, !tbaa !17
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.s_vvertice, ptr %34, i32 0, i32 13
  %36 = getelementptr inbounds [3 x float], ptr %35, i64 0, i64 1
  %37 = load float, ptr %36, align 4, !tbaa !17
  %38 = load ptr, ptr %5, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.s_vvertice, ptr %38, i32 0, i32 13
  %40 = getelementptr inbounds [3 x float], ptr %39, i64 0, i64 1
  store float %37, ptr %40, align 4, !tbaa !17
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.s_vvertice, ptr %41, i32 0, i32 13
  %43 = getelementptr inbounds [3 x float], ptr %42, i64 0, i64 2
  %44 = load float, ptr %43, align 8, !tbaa !17
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.s_vvertice, ptr %45, i32 0, i32 13
  %47 = getelementptr inbounds [3 x float], ptr %46, i64 0, i64 2
  store float %44, ptr %47, align 8, !tbaa !17
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.s_vvertice, ptr %49, i32 0, i32 1
  store i32 %48, ptr %50, align 4, !tbaa !18
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.s_vvertice, ptr %51, i32 0, i32 3
  store i32 -1, ptr %52, align 4, !tbaa !19
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.s_vvertice, ptr %53, i32 0, i32 5
  %55 = load float, ptr %54, align 4, !tbaa !20
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.s_vvertice, ptr %56, i32 0, i32 5
  store float %55, ptr %57, align 4, !tbaa !20
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.s_vvertice, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !21
  %61 = load ptr, ptr %5, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.s_vvertice, ptr %61, i32 0, i32 0
  store i32 %60, ptr %62, align 8, !tbaa !21
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.s_vvertice, ptr %63, i32 0, i32 2
  %65 = load i32, ptr %64, align 8, !tbaa !22
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.s_vvertice, ptr %66, i32 0, i32 2
  store i32 %65, ptr %67, align 8, !tbaa !22
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.s_vvertice, ptr %68, i32 0, i32 9
  %70 = load i32, ptr %69, align 4, !tbaa !23
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.s_vvertice, ptr %71, i32 0, i32 9
  store i32 %70, ptr %72, align 4, !tbaa !23
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.s_vvertice, ptr %73, i32 0, i32 4
  %75 = load i32, ptr %74, align 8, !tbaa !24
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.s_vvertice, ptr %76, i32 0, i32 4
  store i32 %75, ptr %77, align 8, !tbaa !24
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.s_vvertice, ptr %78, i32 0, i32 14
  %80 = load float, ptr %79, align 4, !tbaa !25
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.s_vvertice, ptr %81, i32 0, i32 14
  store float %80, ptr %82, align 4, !tbaa !25
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.s_vvertice, ptr %83, i32 0, i32 12
  %85 = getelementptr inbounds [4 x ptr], ptr %84, i64 0, i64 0
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.s_vvertice, ptr %87, i32 0, i32 12
  %89 = getelementptr inbounds [4 x ptr], ptr %88, i64 0, i64 0
  store ptr %86, ptr %89, align 8, !tbaa !5
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.s_vvertice, ptr %90, i32 0, i32 12
  %92 = getelementptr inbounds [4 x ptr], ptr %91, i64 0, i64 1
  %93 = load ptr, ptr %92, align 8, !tbaa !5
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.s_vvertice, ptr %94, i32 0, i32 12
  %96 = getelementptr inbounds [4 x ptr], ptr %95, i64 0, i64 1
  store ptr %93, ptr %96, align 8, !tbaa !5
  %97 = load ptr, ptr %4, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.s_vvertice, ptr %97, i32 0, i32 12
  %99 = getelementptr inbounds [4 x ptr], ptr %98, i64 0, i64 2
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.s_vvertice, ptr %101, i32 0, i32 12
  %103 = getelementptr inbounds [4 x ptr], ptr %102, i64 0, i64 2
  store ptr %100, ptr %103, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.s_vvertice, ptr %104, i32 0, i32 12
  %106 = getelementptr inbounds [4 x ptr], ptr %105, i64 0, i64 3
  %107 = load ptr, ptr %106, align 8, !tbaa !5
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.s_vvertice, ptr %108, i32 0, i32 12
  %110 = getelementptr inbounds [4 x ptr], ptr %109, i64 0, i64 3
  store ptr %107, ptr %110, align 8, !tbaa !5
  ret void
}

attributes #0 = { 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" }

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 24}
!12 = !{!"s_vvertice", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !10, i64 36, !10, i64 40, !7, i64 44, !7, i64 64, !7, i64 96, !13, i64 108}
!13 = !{!"float", !7, i64 0}
!14 = !{!12, !13, i64 28}
!15 = !{!12, !13, i64 32}
!16 = !{!12, !10, i64 40}
!17 = !{!13, !13, i64 0}
!18 = !{!12, !10, i64 4}
!19 = !{!12, !10, i64 12}
!20 = !{!12, !13, i64 20}
!21 = !{!12, !10, i64 0}
!22 = !{!12, !10, i64 8}
!23 = !{!12, !10, i64 36}
!24 = !{!12, !10, i64 16}
!25 = !{!12, !13, i64 108}


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

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) uwtable
define dso_local void @copy_vertice(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = getelementptr inbounds i8, ptr %1, i64 24
  %6 = load <2 x float>, ptr %4, align 8, !tbaa !5
  store <2 x float> %6, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = load float, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  store float %8, ptr %9, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %0, i64 96
  %11 = load float, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 96
  store float %11, ptr %12, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 100
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %1, i64 100
  store float %14, ptr %15, align 4, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 104
  %17 = load float, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %1, i64 104
  store float %17, ptr %18, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 %2, ptr %19, align 4, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %1, i64 12
  store i32 -1, ptr %20, align 4, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %0, i64 20
  %22 = load float, ptr %21, align 4, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %1, i64 20
  store float %22, ptr %23, align 4, !tbaa !14
  %24 = load i32, ptr %0, align 8, !tbaa !15
  store i32 %24, ptr %1, align 8, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %27 = getelementptr inbounds i8, ptr %1, i64 8
  store i32 %26, ptr %27, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %0, i64 36
  %29 = getelementptr inbounds i8, ptr %1, i64 36
  %30 = load <2 x i32>, ptr %28, align 4, !tbaa !17
  store <2 x i32> %30, ptr %29, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load i32, ptr %31, align 8, !tbaa !18
  %33 = getelementptr inbounds i8, ptr %1, i64 16
  store i32 %32, ptr %33, align 8, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %0, i64 108
  %35 = load float, ptr %34, align 4, !tbaa !19
  %36 = getelementptr inbounds i8, ptr %1, i64 108
  store float %35, ptr %36, align 4, !tbaa !19
  %37 = getelementptr inbounds i8, ptr %0, i64 64
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %1, i64 64
  store ptr %38, ptr %39, align 8, !tbaa !20
  %40 = getelementptr inbounds i8, ptr %0, i64 72
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = getelementptr inbounds i8, ptr %1, i64 72
  store ptr %41, ptr %42, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %0, i64 80
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = getelementptr inbounds i8, ptr %1, i64 80
  store ptr %44, ptr %45, align 8, !tbaa !20
  %46 = getelementptr inbounds i8, ptr %0, i64 88
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %48 = getelementptr inbounds i8, ptr %1, i64 88
  store ptr %47, ptr %48, align 8, !tbaa !20
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite) 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" }

!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/C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"s_vvertice", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !11, i64 36, !11, i64 40, !7, i64 44, !7, i64 64, !7, i64 96, !6, i64 108}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 12}
!14 = !{!10, !6, i64 20}
!15 = !{!10, !11, i64 0}
!16 = !{!10, !11, i64 8}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !11, i64 16}
!19 = !{!10, !6, i64 108}
!20 = !{!21, !21, i64 0}
!21 = !{!"any pointer", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass