-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properties with number ranges are not supported #101
Comments
Change Manager: Confirmed that the issue exists. |
Technical Lead: Confirmed that the issue should be addressed. |
Technical Lead: Issue scheduled for Ogma 1.0.11. Fix assigned to: @ivanperez-keera. |
…a#101. The current parser for the SMV language does not support MTL operators with number ranges as arguments to MTL operators. The only syntax currently supported is using <MTLOperator>[<ComparisonOperator><Number>], where is a numeric comparison operator like <=, <, and so on. This limitation makes some of the component specifications produced from FRET not parseable with Ogma. This commit extends the grammar to support MTL operators with number ranges. The prior syntax is also supported and kept as is.
The current translation module for SMV into Copilot does not support MTL operators with number ranges, only those with comparison operators and a numeric limit. A prior commit has extended the grammar to support MTL operators with number ranges. This commit extends the translation module from SMV to Copilot.
… Refs nasa#101. The translation of FRET Requirement DBs to Copilot may produce specs that use operators from the MTL module. However, that module is not being imported. This commit modifies the translator from FRET Requirement DBs to Copilot so that the MTL module is imported qualified.
Implementor: Solution implemented, review requested. |
Change Manager: Verified that:
|
Change Manager: Implementation ready to be merged. |
Description
The current parser for the SMV language does not support MTL operators with number ranges as arguments to MTL operators. The only syntax currently supported is using
<MTLOperator>[<ComparisonOperator><Number>]
, where is a numeric comparison operator like<=
,<
, and so on.This limitation makes some of the component specifications produced from FRET not parseable with Ogma.
Type
Additional context
None.
Requester
Method to check presence of bug
Compiling a property that contains a number range in the
ptLTL
field currently fails:using as files:`
Expected result
Parsing files that include ranges with MTL operators compiles and produces correct Copilot code.
Desired result
Parsing files that include ranges with MTL operators compiles and produces correct Copilot code.
Proposed solution
Modify SMV grammar to support number ranges as arguments to MTL operators.
Modify translation from SMV to Copilot to produce the equivalent number range in Copilot's MTL implementation.
Further notes
None.
The text was updated successfully, but these errors were encountered: