; LLVM IR from robotics-upo/Heuristic_path_planners :: include/voro++-0.4.6/src/cell.ll (ZN4voro20voronoicell_neighbor4initEdddddd)

; 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.voro::voronoicell_neighbor" = type { %"class.voro::voronoicell_base", ptr, ptr, ptr, ptr }
%"class.voro::voronoicell_base" = type { ptr, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, double, double, double, double }

; 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 @_ZN4voro16voronoicell_base9init_baseEdddddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) #1 align 2

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

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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !6, i64 160}
!12 = !{!"_ZTSN4voro20voronoicell_neighborE", !13, i64 0, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184}
!13 = !{!"_ZTSN4voro16voronoicell_baseE", !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !14, i64 112, !14, i64 116, !6, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!14 = !{!"int", !7, i64 0}
!15 = !{!14, !14, i64 0}
!16 = !{!12, !6, i64 168}


; 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 nounwind uwtable
declare dso_local void @_ZN4voro16voronoicell_base9init_baseEdddddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4voro20voronoicell_neighbor4initEdddddd(ptr noundef nonnull align 8 dereferenceable(192) %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6) local_unnamed_addr #0 align 2 {
  tail call void @_ZN4voro16voronoicell_base9init_baseEdddddd(ptr noundef nonnull align 8 dereferenceable(160) %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5, double noundef %6)
  %8 = getelementptr inbounds i8, ptr %0, i64 160
  %9 = load ptr, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 24
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %11, i64 12
  store <4 x i32> <i32 -5, i32 -3, i32 -1, i32 -5>, ptr %11, align 4, !tbaa !14
  %13 = getelementptr inbounds i8, ptr %11, i64 16
  %14 = getelementptr inbounds i8, ptr %11, i64 24
  store <4 x i32> <i32 -2, i32 -3, i32 -5, i32 -1>, ptr %13, align 4, !tbaa !14
  %15 = getelementptr inbounds i8, ptr %11, i64 32
  %16 = getelementptr inbounds i8, ptr %11, i64 36
  store <4 x i32> <i32 -4, i32 -5, i32 -4, i32 -2>, ptr %15, align 4, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %11, i64 48
  %18 = getelementptr inbounds i8, ptr %11, i64 60
  store <4 x i32> <i32 -6, i32 -1, i32 -3, i32 -6>, ptr %17, align 4, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %11, i64 64
  %20 = getelementptr inbounds i8, ptr %11, i64 72
  store <4 x i32> <i32 -3, i32 -2, i32 -6, i32 -4>, ptr %19, align 4, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %11, i64 80
  %22 = getelementptr inbounds i8, ptr %11, i64 84
  store <4 x i32> <i32 -1, i32 -6, i32 -2, i32 -4>, ptr %21, align 4, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %0, i64 168
  %24 = load ptr, ptr %23, align 8, !tbaa !15
  store ptr %11, ptr %24, align 8, !tbaa !13
  %25 = load ptr, ptr %23, align 8, !tbaa !15
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  store ptr %12, ptr %26, align 8, !tbaa !13
  %27 = load ptr, ptr %23, align 8, !tbaa !15
  %28 = getelementptr inbounds i8, ptr %27, i64 16
  store ptr %14, ptr %28, align 8, !tbaa !13
  %29 = load ptr, ptr %23, align 8, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %29, i64 24
  store ptr %16, ptr %30, align 8, !tbaa !13
  %31 = load ptr, ptr %23, align 8, !tbaa !15
  %32 = getelementptr inbounds i8, ptr %31, i64 32
  store ptr %17, ptr %32, align 8, !tbaa !13
  %33 = load ptr, ptr %23, align 8, !tbaa !15
  %34 = getelementptr inbounds i8, ptr %33, i64 40
  store ptr %18, ptr %34, align 8, !tbaa !13
  %35 = load ptr, ptr %23, align 8, !tbaa !15
  %36 = getelementptr inbounds i8, ptr %35, i64 48
  store ptr %20, ptr %36, align 8, !tbaa !13
  %37 = load ptr, ptr %23, align 8, !tbaa !15
  %38 = getelementptr inbounds i8, ptr %37, i64 56
  store ptr %22, ptr %38, align 8, !tbaa !13
  ret void
}

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

!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, !11, i64 160}
!6 = !{!"_ZTSN4voro20voronoicell_neighborE", !7, i64 0, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184}
!7 = !{!"_ZTSN4voro16voronoicell_baseE", !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !8, i64 112, !8, i64 116, !11, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"double", !9, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!8, !8, i64 0}
!15 = !{!6, !11, i64 168}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,TailCallElimPass