{-# OPTIONS_GHC -Wno-orphans #-}
module Data.Vector.Algorithms.Quicksort.Predefined.UPairSequentialMedian3IO
( sortUPairSequentialMedian3IO
) where
import Control.Monad.ST
import Data.Int
import Data.Vector.Unboxed qualified as U
import Data.Vector.Algorithms.Quicksort.Parameterised
import Data.Vector.Algorithms.Quicksort.Predefined.Pair
import Data.Vector.Algorithms.FixedSort
import Data.Vector.Algorithms.Heapsort
{-# SPECIALIZE heapSort :: U.MVector RealWorld (TestPair Int32 Int32) -> IO () #-}
{-# SPECIALIZE bitonicSort :: Int -> U.MVector RealWorld (TestPair Int32 Int32) -> IO () #-}
{-# NOINLINE sortUPairSequentialMedian3IO #-}
sortUPairSequentialMedian3IO :: U.MVector RealWorld (TestPair Int32 Int32) -> IO ()
sortUPairSequentialMedian3IO :: MVector RealWorld (TestPair Int32 Int32) -> IO ()
sortUPairSequentialMedian3IO = forall p med x (m :: * -> *) a (v :: * -> * -> *).
(Fork2 p x m, Median med a m (PrimState m), PrimMonad m, Ord a,
MVector v a) =>
p -> med -> v (PrimState m) a -> m ()
sortInplaceFM Sequential
Sequential (forall {k} (a :: k). Median3 a
Median3 @(TestPair Int32 Int32))