Show
Ignore:
Timestamp:
05.01.2009 15:46:06 (11 months ago)
Author:
csliam
Message:

Large commit - improved static analysis of cspcasl and translation of cspcasl to isabelle

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CspCASL/Trans_Consts.hs

    r10619 r11215  
    1919 
    2020import CASL.AS_Basic_CASL 
     21import CspCASL.AS_CspCASL_Process (PROCESS_NAME) 
    2122import Isabelle.IsaConsts 
    2223import Isabelle.IsaSign 
     24import Isabelle.Translate(showIsaTypeT) 
    2325 
     26-- Name for the PreAlphabet 
     27preAlphabetS :: String 
     28preAlphabetS = "PreAlphabet" 
     29 
     30-- Type for the PreAlphabet 
     31preAlphabetType :: Typ 
     32preAlphabetType = Type {typeId = preAlphabetS, 
     33                        typeSort = [], 
     34                        typeArgs =[]} 
     35 
     36-- Name for the Alphabet 
    2437alphabetS :: String 
    2538alphabetS = "Alphabet" 
    2639 
     40-- Type for the Alphabet 
     41alphabetType :: Typ 
     42alphabetType = Type {typeId = alphabetS, 
     43                     typeSort = [], 
     44                     typeArgs =[]} 
     45 
     46-- Name for IsabelleHOL quot type 
     47quotS :: String 
     48quotS = "quot" 
     49 
     50-- Type for preAlphabet quot 
     51preAlphabetQuotType :: Typ 
     52preAlphabetQuotType = Type {typeId = quotS, 
     53                            typeSort = [], 
     54                            typeArgs =[preAlphabetType]} 
     55 
     56-- Name for the datatype of process names 
     57procNameS :: String 
     58procNameS = "ProcName" 
     59 
     60-- Type for the datatype of process names 
     61procNameType :: Typ 
     62procNameType = Type {typeId = procNameS, 
     63                     typeSort = [], 
     64                     typeArgs =[]} 
     65 
     66-- name for CspProvers ('pn, 'a) proc type 
     67procS :: String 
     68procS = "proc" 
     69 
     70-- Type for (ProcName,Alpahbet) proc 
     71cCProverProcType :: Typ 
     72cCProverProcType = Type {typeId = procS, 
     73                         typeSort = [], 
     74                         typeArgs =[procNameType, alphabetType]} 
     75 
     76-- Name for the function for mapping process names to real processes 
     77procMapS :: String 
     78procMapS = "ProcMap" 
     79 
     80-- Type for the function for mapping process names to real processes 
     81procMapType :: Typ 
     82procMapType = mkFunType procNameType cCProverProcType 
     83 
    2784barExtS :: String 
    2885barExtS = "_Bar" 
     86 
     87baseSign :: BaseSig 
     88baseSign = Main_thy 
    2989 
    3090classS :: String 
     
    3696-- Convert a SORT to a string 
    3797convertSort2String :: SORT -> String 
    38 convertSort2String s = show s 
     98convertSort2String s = showIsaTypeT s baseSign 
     99 
     100convertProcessName2String :: PROCESS_NAME -> String 
     101convertProcessName2String pn = (show pn)