Skip to content

Commit

Permalink
ogma-core: Fix comment in generated Copilot spec. Refs nasa#164.
Browse files Browse the repository at this point in the history
The Copilot spec generated by Ogma includes the following comment for a spec:

-- | Complete specification. Calls the C function void handler(); when
-- the property is violated.

That comment is inaccurate, since the name of the function executed may
not be handler.

This commit fixes the comment to say that handlers are executed when
properties are violated.
  • Loading branch information
ivanperez-keera committed Nov 21, 2024
1 parent 6325b1d commit bb793c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ogma-core/src/Language/Trans/Spec2Copilot.hs
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ spec2Copilot specName typeMaps exprTransform showExpr spec =
-- Main specification
copilotSpec :: [String]
copilotSpec = [ ""
, "-- | Complete specification. Calls the C function void "
++ " handler(); when"
, "-- the property is violated."
, "-- | Complete specification. Calls C handler functions"
++ " when"
, "-- properties are violated."
, "spec :: Spec"
, "spec = do"
]
Expand Down

0 comments on commit bb793c9

Please sign in to comment.