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

; 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_base21init_tetrahedron_baseEdddddddddddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, 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_neighbor16init_tetrahedronEdddddddddddd(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, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, double noundef %12) #1 align 2 {
  %14 = alloca ptr, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  store ptr %0, ptr %14, align 8, !tbaa !5
  store double %1, ptr %15, align 8, !tbaa !9
  store double %2, ptr %16, align 8, !tbaa !9
  store double %3, ptr %17, align 8, !tbaa !9
  store double %4, ptr %18, align 8, !tbaa !9
  store double %5, ptr %19, align 8, !tbaa !9
  store double %6, ptr %20, align 8, !tbaa !9
  store double %7, ptr %21, align 8, !tbaa !9
  store double %8, ptr %22, align 8, !tbaa !9
  store double %9, ptr %23, align 8, !tbaa !9
  store double %10, ptr %24, align 8, !tbaa !9
  store double %11, ptr %25, align 8, !tbaa !9
  store double %12, ptr %26, align 8, !tbaa !9
  %28 = load ptr, ptr %14, align 8
  %29 = load double, ptr %15, align 8, !tbaa !9
  %30 = load double, ptr %16, align 8, !tbaa !9
  %31 = load double, ptr %17, align 8, !tbaa !9
  %32 = load double, ptr %18, align 8, !tbaa !9
  %33 = load double, ptr %19, align 8, !tbaa !9
  %34 = load double, ptr %20, align 8, !tbaa !9
  %35 = load double, ptr %21, align 8, !tbaa !9
  %36 = load double, ptr %22, align 8, !tbaa !9
  %37 = load double, ptr %23, align 8, !tbaa !9
  %38 = load double, ptr %24, align 8, !tbaa !9
  %39 = load double, ptr %25, align 8, !tbaa !9
  %40 = load double, ptr %26, align 8, !tbaa !9
  call void @_ZN4voro16voronoicell_base21init_tetrahedron_baseEdddddddddddd(ptr noundef nonnull align 8 dereferenceable(160) %28, double noundef %29, double noundef %30, double noundef %31, double noundef %32, double noundef %33, double noundef %34, double noundef %35, double noundef %36, double noundef %37, double noundef %38, double noundef %39, double noundef %40)
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #2
  %41 = getelementptr inbounds %"class.voro::voronoicell_neighbor", ptr %28, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = getelementptr inbounds ptr, ptr %42, i64 3
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  store ptr %44, ptr %27, align 8, !tbaa !5
  %45 = load ptr, ptr %27, align 8, !tbaa !5
  store i32 -4, ptr %45, align 4, !tbaa !15
  %46 = load ptr, ptr %27, align 8, !tbaa !5
  %47 = getelementptr inbounds i32, ptr %46, i64 1
  store i32 -3, ptr %47, align 4, !tbaa !15
  %48 = load ptr, ptr %27, align 8, !tbaa !5
  %49 = getelementptr inbounds i32, ptr %48, i64 2
  store i32 -2, ptr %49, align 4, !tbaa !15
  %50 = load ptr, ptr %27, align 8, !tbaa !5
  %51 = getelementptr inbounds i32, ptr %50, i64 3
  store i32 -3, ptr %51, align 4, !tbaa !15
  %52 = load ptr, ptr %27, align 8, !tbaa !5
  %53 = getelementptr inbounds i32, ptr %52, i64 4
  store i32 -4, ptr %53, align 4, !tbaa !15
  %54 = load ptr, ptr %27, align 8, !tbaa !5
  %55 = getelementptr inbounds i32, ptr %54, i64 5
  store i32 -1, ptr %55, align 4, !tbaa !15
  %56 = load ptr, ptr %27, align 8, !tbaa !5
  %57 = getelementptr inbounds i32, ptr %56, i64 6
  store i32 -4, ptr %57, align 4, !tbaa !15
  %58 = load ptr, ptr %27, align 8, !tbaa !5
  %59 = getelementptr inbounds i32, ptr %58, i64 7
  store i32 -2, ptr %59, align 4, !tbaa !15
  %60 = load ptr, ptr %27, align 8, !tbaa !5
  %61 = getelementptr inbounds i32, ptr %60, i64 8
  store i32 -1, ptr %61, align 4, !tbaa !15
  %62 = load ptr, ptr %27, align 8, !tbaa !5
  %63 = getelementptr inbounds i32, ptr %62, i64 9
  store i32 -2, ptr %63, align 4, !tbaa !15
  %64 = load ptr, ptr %27, align 8, !tbaa !5
  %65 = getelementptr inbounds i32, ptr %64, i64 10
  store i32 -3, ptr %65, align 4, !tbaa !15
  %66 = load ptr, ptr %27, align 8, !tbaa !5
  %67 = getelementptr inbounds i32, ptr %66, i64 11
  store i32 -1, ptr %67, align 4, !tbaa !15
  %68 = load ptr, ptr %27, align 8, !tbaa !5
  %69 = getelementptr inbounds %"class.voro::voronoicell_neighbor", ptr %28, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !16
  store ptr %68, ptr %70, align 8, !tbaa !5
  %71 = load ptr, ptr %27, align 8, !tbaa !5
  %72 = getelementptr inbounds i32, ptr %71, i64 3
  %73 = getelementptr inbounds %"class.voro::voronoicell_neighbor", ptr %28, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !16
  %75 = getelementptr inbounds ptr, ptr %74, i64 1
  store ptr %72, ptr %75, align 8, !tbaa !5
  %76 = load ptr, ptr %27, align 8, !tbaa !5
  %77 = getelementptr inbounds i32, ptr %76, i64 6
  %78 = getelementptr inbounds %"class.voro::voronoicell_neighbor", ptr %28, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !16
  %80 = getelementptr inbounds ptr, ptr %79, i64 2
  store ptr %77, ptr %80, align 8, !tbaa !5
  %81 = load ptr, ptr %27, align 8, !tbaa !5
  %82 = getelementptr inbounds i32, ptr %81, i64 9
  %83 = getelementptr inbounds %"class.voro::voronoicell_neighbor", ptr %28, i32 0, i32 2
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = getelementptr inbounds ptr, ptr %84, i64 3
  store ptr %82, ptr %85, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #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_base21init_tetrahedron_baseEdddddddddddd(ptr noundef nonnull align 8 dereferenceable(160), double noundef, double noundef, double noundef, double noundef, double noundef, double noundef, 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_neighbor16init_tetrahedronEdddddddddddd(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, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, double noundef %12) local_unnamed_addr #0 align 2 {
  tail call void @_ZN4voro16voronoicell_base21init_tetrahedron_baseEdddddddddddd(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, double noundef %7, double noundef %8, double noundef %9, double noundef %10, double noundef %11, double noundef %12)
  %14 = getelementptr inbounds i8, ptr %0, i64 160
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %15, i64 24
  %17 = load ptr, ptr %16, align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %17, i64 12
  store <4 x i32> <i32 -4, i32 -3, i32 -2, i32 -3>, ptr %17, align 4, !tbaa !14
  %19 = getelementptr inbounds i8, ptr %17, i64 16
  %20 = getelementptr inbounds i8, ptr %17, i64 24
  store <4 x i32> <i32 -4, i32 -1, i32 -4, i32 -2>, ptr %19, align 4, !tbaa !14
  %21 = getelementptr inbounds i8, ptr %17, i64 32
  %22 = getelementptr inbounds i8, ptr %17, i64 36
  store <4 x i32> <i32 -1, i32 -2, i32 -3, i32 -1>, 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 %17, 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 %18, 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 %20, 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 %22, ptr %30, 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