Skip to content

Commit

Permalink
Merge branch 'release-1.0.11'. Refs #103.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanperez-keera committed Sep 22, 2023
2 parents df5fa89 + 8ec6ddc commit d2b0f28
Show file tree
Hide file tree
Showing 21 changed files with 69 additions and 19 deletions.
4 changes: 4 additions & 0 deletions ogma-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-cli

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
4 changes: 2 additions & 2 deletions ogma-cli/ogma-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-cli
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down Expand Up @@ -141,7 +141,7 @@ executable ogma
build-depends:
base >= 4.11.0.0 && < 5
, optparse-applicative
, ogma-core >= 1.0.10 && < 1.1
, ogma-core >= 1.0.11 && < 1.1

hs-source-dirs:
src
Expand Down
5 changes: 5 additions & 0 deletions ogma-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Revision history for ogma-core

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).
* Support MTL operators with number ranges in SMV (#101).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
16 changes: 8 additions & 8 deletions ogma-core/ogma-core.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-core
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down Expand Up @@ -109,13 +109,13 @@ library
, IfElse
, mtl

, ogma-extra >= 1.0.10 && < 1.1
, ogma-language-c >= 1.0.10 && < 1.1
, ogma-language-cocospec >= 1.0.10 && < 1.1
, ogma-language-copilot >= 1.0.10 && < 1.1
, ogma-language-fret-cs >= 1.0.10 && < 1.1
, ogma-language-fret-reqs >= 1.0.10 && < 1.1
, ogma-language-smv >= 1.0.10 && < 1.1
, ogma-extra >= 1.0.11 && < 1.1
, ogma-language-c >= 1.0.11 && < 1.1
, ogma-language-cocospec >= 1.0.11 && < 1.1
, ogma-language-copilot >= 1.0.11 && < 1.1
, ogma-language-fret-cs >= 1.0.11 && < 1.1
, ogma-language-fret-reqs >= 1.0.11 && < 1.1
, ogma-language-smv >= 1.0.11 && < 1.1

hs-source-dirs:
src
Expand Down
1 change: 1 addition & 0 deletions ogma-core/src/Language/Trans/FRETReqsDB2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ fret2CopilotModule' prefs smvSpec cocoSpec = unlines $ concat sections
, "import Copilot.Library.PTLTL (since, previous,"
++ " alwaysBeen)"
, "import qualified Copilot.Library.PTLTL as PTLTL"
, "import qualified Copilot.Library.MTL as MTL"
, "import Language.Copilot (reify)"
, "import Prelude hiding ((&&), (||), (++), (<=), (>=),"
++ " (<), (>), (==), (/=), not)"
Expand Down
10 changes: 10 additions & 0 deletions ogma-core/src/Language/Trans/SMV2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ ordOp2Copilot OrdOpGE = ">="
opOne2Copilot :: OpOne -> String
opOne2Copilot (Op1Alone x) = opOneAlone2Copilot x
opOne2Copilot (Op1MTL x op v) = opOneMTL2Copilot x op v
opOne2Copilot (Op1MTLRange op mn mx) = opOneMTLRange2Copilot op mn mx

-- | Return the Copilot representation of a unary logical non-MTL FRET
-- operator.
Expand All @@ -163,6 +164,15 @@ opOneMTL2Copilot operator _comparison number =
++ " " ++ "clock" ++ " "
++ show (1 :: Int)

-- | Return the Copilot representation of a unary logical MTL FRET operator
-- that uses an explicit range.
opOneMTLRange2Copilot :: Op1Name -> Number -> Number -> String
opOneMTLRange2Copilot operator mn mx =
opOneMTL2Copilot' operator ++ " " ++ number2Copilot mn
++ " " ++ number2Copilot mx
++ " " ++ "clock" ++ " "
++ show (1 :: Int)

-- | Return the Copilot representation of a unary logical possibly MTL FRET
-- operator.
opOneMTL2Copilot' :: Op1Name -> String
Expand Down
4 changes: 4 additions & 0 deletions ogma-extra/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-extra

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-extra/ogma-extra.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-extra
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
4 changes: 4 additions & 0 deletions ogma-language-c/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-language-c

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-c/ogma-language-c.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Custom

name: ogma-language-c
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
4 changes: 4 additions & 0 deletions ogma-language-cocospec/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-language-cocospec

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-cocospec/ogma-language-cocospec.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Custom

name: ogma-language-cocospec
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
4 changes: 4 additions & 0 deletions ogma-language-copilot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-language-copilot

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-copilot/ogma-language-copilot.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-language-copilot
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
4 changes: 4 additions & 0 deletions ogma-language-fret-cs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-language-fret-cs

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-fret-cs/ogma-language-fret-cs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-language-fret-cs
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
4 changes: 4 additions & 0 deletions ogma-language-fret-reqs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for ogma-language-fret-reqs

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-fret-reqs/ogma-language-fret-reqs.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Simple

name: ogma-language-fret-reqs
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down
5 changes: 5 additions & 0 deletions ogma-language-smv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Revision history for ogma-language-smv

## [1.0.11] - 2023-09-21

* Version bump 1.0.11 (#103).
* Support MTL operators with number ranges (#101).

## [1.0.10] - 2023-07-21

* Version bump 1.0.10 (#98).
Expand Down
5 changes: 3 additions & 2 deletions ogma-language-smv/grammar/SMV.cf
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ BoolConstFalse. BoolConst ::= "FALSE";
BoolConstFTP. BoolConst ::= "FTP";
BoolConstLAST. BoolConst ::= "LAST";

Op1Alone . OpOne ::= Op1Name;
Op1MTL. OpOne ::= Op1Name "[" OrdOp Number "]";
Op1Alone . OpOne ::= Op1Name;
Op1MTL. OpOne ::= Op1Name "[" OrdOp Number "]";
Op1MTLRange. OpOne ::= Op1Name "[" Number "," Number "]";

NumberInt . Number ::= Integer;
_ . Number ::= "<b>" Number "</b>";
Expand Down
2 changes: 1 addition & 1 deletion ogma-language-smv/ogma-language-smv.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ cabal-version: 2.0
build-type: Custom

name: ogma-language-smv
version: 1.0.10
version: 1.0.11
homepage: http://nasa.gov
license: OtherLicense
license-file: LICENSE.pdf
Expand Down

0 comments on commit d2b0f28

Please sign in to comment.