ogma-core-1.15.0: Ogma: Helper tool to interoperate between Copilot and other languages.
Safe HaskellNone
LanguageHaskell2010

Command.Overview

Description

Produce an overview of the input files.

Synopsis

Documentation

command Source #

Arguments

:: CommandOptions

Customization options

-> IO (Maybe CommandSummary, Result ErrorCode) 

Generate overview of a spec given in an input file.

PRE: The file given is readable, contains a valid file with recognizable format, the formulas in the file do not use any identifiers that exist in Copilot, or any of prop, clock, ftp, notPreviousNot. All identifiers used are valid C99 identifiers. The template, if provided, exists and uses the variables needed by the overview application generator. The target directory is writable and there's enough disk space to copy the files over.

data CommandOptions Source #

Options used to customize the interpretation of input specifications.

data OverviewFile Source #

Information about one file in the command options.

data CommandSummary Source #

Instances

Instances details
ToJSON CommandSummary Source # 
Instance details

Defined in Command.Overview

Monoid CommandSummary Source # 
Instance details

Defined in Command.Overview

Semigroup CommandSummary Source # 
Instance details

Defined in Command.Overview

Generic CommandSummary Source # 
Instance details

Defined in Command.Overview

Associated Types

type Rep CommandSummary 
Instance details

Defined in Command.Overview

type Rep CommandSummary = D1 ('MetaData "CommandSummary" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummary" 'PrefixI 'True) (S1 ('MetaSel ('Just "commandSummaryRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandSummaryRequirements]) :*: S1 ('MetaSel ('Just "commandSummaryDiagrams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandSummaryDiagram])))
Show CommandSummary Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummary Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummary = D1 ('MetaData "CommandSummary" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummary" 'PrefixI 'True) (S1 ('MetaSel ('Just "commandSummaryRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandSummaryRequirements]) :*: S1 ('MetaSel ('Just "commandSummaryDiagrams") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [CommandSummaryDiagram])))

data CommandSummaryRequirements Source #

Requirement data for inclusion in the summary.

Instances

Instances details
ToJSON CommandSummaryRequirements Source # 
Instance details

Defined in Command.Overview

Generic CommandSummaryRequirements Source # 
Instance details

Defined in Command.Overview

Associated Types

type Rep CommandSummaryRequirements 
Instance details

Defined in Command.Overview

type Rep CommandSummaryRequirements = D1 ('MetaData "CommandSummaryRequirements" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummaryRequirements" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commandRequirementsFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "commandExternalVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandInternalVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "commandRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandRequirementsTrue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "commandRequirementsFalse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandRequirementsConsistent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))
Show CommandSummaryRequirements Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummaryRequirements Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummaryRequirements = D1 ('MetaData "CommandSummaryRequirements" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummaryRequirements" 'PrefixI 'True) ((S1 ('MetaSel ('Just "commandRequirementsFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "commandExternalVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandInternalVariables") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int))) :*: ((S1 ('MetaSel ('Just "commandRequirements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandRequirementsTrue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "commandRequirementsFalse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandRequirementsConsistent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))

data CommandSummaryDiagram Source #

Diagram Data for inclusion in the summary.

Instances

Instances details
ToJSON CommandSummaryDiagram Source # 
Instance details

Defined in Command.Overview

Generic CommandSummaryDiagram Source # 
Instance details

Defined in Command.Overview

Associated Types

type Rep CommandSummaryDiagram 
Instance details

Defined in Command.Overview

type Rep CommandSummaryDiagram = D1 ('MetaData "CommandSummaryDiagram" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummaryDiagram" 'PrefixI 'True) (S1 ('MetaSel ('Just "commandDiagramFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "commandDiagramNumStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandDiagramDeterministic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))
Show CommandSummaryDiagram Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummaryDiagram Source # 
Instance details

Defined in Command.Overview

type Rep CommandSummaryDiagram = D1 ('MetaData "CommandSummaryDiagram" "Command.Overview" "ogma-core-1.15.0-3hUeuqKaNPy9Y9bmZmPCXy" 'False) (C1 ('MetaCons "CommandSummaryDiagram" 'PrefixI 'True) (S1 ('MetaSel ('Just "commandDiagramFile") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: (S1 ('MetaSel ('Just "commandDiagramNumStates") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "commandDiagramDeterministic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

type ErrorCode = Int Source #

Encoding of reasons why the command can fail.