ModalCaslToCtl.hs revision e9458b1a7a19a63aa4c179f9ab20f4d50681c168
{- |
Module : ./Temporal/ModalCaslToCtl.hs
Copyright : (c) Klaus Hartke, Uni Bremen 2008
License : GPLv2 or higher, see LICENSE.txt
Maintainer : Christian.Maeder@dfki.de
Stability : experimental
Portability : portable
-}
module ModalCaslToCtl where
import Control.Monad as Monad
import Data.Maybe as Maybe
import ModalCasl as Casl
import Ctl
{- ----------------------------------------------------------------------------
Convert Modal CASL formulas to CTL formulas
---------------------------------------------------------------------------- -}
convert :: Casl.StateFormula a -> Maybe (Ctl.Formula a)
Casl.Pand phi psi))
Casl.Pand phi psi))
convert _ = Nothing
convert' :: Casl.PathFormula a -> Maybe (Ctl.Formula a)
convert' (State phi) = convert phi
convert' _ = Nothing
-- ----------------------------------------------------------------------------