sbv-10.0: SBVBenchSuite/BenchSuite/Uninterpreted/Sort.hs
-----------------------------------------------------------------------------
-- |
-- Module : BenchSuite.Uninterpreted.Sort
-- Copyright : (c) Jeffrey Young
-- Levent Erkok
-- License : BSD3
-- Maintainer: erkokl@gmail.com
-- Stability : experimental
--
-- Bench suite for Documentation.SBV.Examples.Uninterpreted.Sort
-----------------------------------------------------------------------------
{-# OPTIONS_GHC -Wall -Werror #-}
module BenchSuite.Uninterpreted.Sort(benchmarks) where
import Documentation.SBV.Examples.Uninterpreted.Sort
import Data.SBV
import BenchSuite.Bench.Bench
benchmarks :: Runner
benchmarks = rGroup
[ run "t1" _t1 `using` runner satWith
, run "t2" _t2 `using` runner satWith
]
where _t1 = do x <- free "x"
return $ f x ./= x
_t2 = do constrain $ \(Forall x) (Forall y) -> x .== (y :: SQ)
x <- free "x"
return $ f x ./= x