This module supports the configuration of the analysis system and provides access to some values in Config file.
It also provides an operation to get the port number of the analysis server (which is implicitly started if necessary).
Author: Michael Hanus
Version: February 2025
systemBanner
:: String The banner of the CASS system. |
baseDir
:: String The base directory of the analysis tool containing all programs and documentations. |
docDir
:: String The directory containing the documentations of the various analyses. |
executableName
:: String The name of the main executable. |
getServerAddress
:: IO String The address of the server when it is connected from the worker clients. |
waitTime
:: Int timeout for network message passing: -1 is wait time infinity |
curryInfoRequest2CASS
:: [(String,String)] The requests and analysis names currently support by CurryInfo. |
defaultCConfig
:: CConfig The default configuration has no properties and is quiet. |
debugLevel
:: CConfig -> DLevel Returns the debug level from the current configuration. |
setDebugLevel
:: Int -> CConfig -> CConfig Returns the debug level from the current configuration. |
useCurryInfo
:: CConfig -> Bool Returns the curryinfo flag from the current configuration. |
useCurryInfoWeb
:: CConfig -> Bool Returns the curryinfo web flag from the current configuration. |
fixpointMethod
:: CConfig -> String Returns the fixpoint computation method from Config file |
withPrelude
:: CConfig -> Bool Gets the option to analyze also the prelude from Config file |
getDefaultPath
:: CConfig -> IO String Gets the default load path from the property file (added at the end of CURRYPATH). |
numberOfWorkers
:: CConfig -> Int number of worker threads running at the same time |
storeServerPortNumber
:: Int -> IO () Stores the current server port number together with the pid of the server process. |
removeServerPortNumber
:: IO () Removes the currently stored server port number. |
Configuration info used during execution of CASS. It contains the properties from the RC file, the current debug level, and the options passed to CASS.
Constructors:
The banner of the CASS system. |
The base directory of the analysis tool containing all programs and documentations. It is used to copy the configuration file, to the find executables of the server and the workers, and to find the documentation of the various analyses.
|
The directory containing the documentations of the various analyses. |
The name of the main executable. Used to start workers in
|
The address of the server when it is connected from the worker clients. |
timeout for network message passing: -1 is wait time infinity |
The requests and analysis names currently support by CurryInfo.
Taken from
|
The default configuration has no properties and is quiet. |
Returns the debug level from the current configuration.
|
Returns the debug level from the current configuration.
|
Returns the curryinfo flag from the current configuration. |
Returns the curryinfo web flag from the current configuration. |
Returns the fixpoint computation method from Config file |
Gets the option to analyze also the prelude from Config file |
Gets the default load path from the property file (added at the end of CURRYPATH). |
number of worker threads running at the same time |
Stores the current server port number together with the pid of the server process. |
Removes the currently stored server port number. |