copilot-verifier-0.1: examples/Copilot/Verifier/Examples/ShouldPass/Partial/ShiftLTooLarge.hs
{-# LANGUAGE NoImplicitPrelude #-}
-- | This will succeed with 'sideCondVerifierOptions', as Copilot's @BwShiftL@
-- operation should only accept second arguments as large as C's @<<@ operation does.
module Copilot.Verifier.Examples.ShouldPass.Partial.ShiftLTooLarge where
import Language.Copilot
import Copilot.Compile.C99
import Copilot.Verifier ( Verbosity, VerifierOptions(..)
, sideCondVerifierOptions, verifyWithOptions )
import Copilot.Verifier.Examples.ShouldFail.Partial.ShiftLTooLarge (spec)
verifySpec :: Verbosity -> IO ()
verifySpec verb = do
spec' <- reify spec
verifyWithOptions sideCondVerifierOptions{verbosity = verb}
mkDefaultCSettings
[]
"shiftLTooLargePass" spec'