Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pta2maude
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
real-time maude
pta2maude
Commits
64f2949e
Commit
64f2949e
authored
2 years ago
by
Jaime Arias
Browse files
Options
Downloads
Patches
Plain Diff
tests: update tests
parent
eaac948a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pta2maude/src/Parser.py
+31
-1
31 additions, 1 deletion
pta2maude/src/Parser.py
pta2maude/tests/examples/ex1x.maude
+4
-0
4 additions, 0 deletions
pta2maude/tests/examples/ex1x.maude
pta2maude/tests/examples/ex1xy.maude
+4
-0
4 additions, 0 deletions
pta2maude/tests/examples/ex1xy.maude
with
39 additions
and
1 deletion
pta2maude/src/Parser.py
+
31
−
1
View file @
64f2949e
...
...
@@ -669,7 +669,21 @@ class CollapsingParser(NoCollapsingParser):
return
preamble
def
_get_equations
(
self
,
clocks
,
parameters
)
->
str
:
def
_get_equations
(
self
,
clocks
:
list
[
str
],
parameters
:
list
[
str
])
->
str
:
"""
Get the equations for interpreting states
Parameters
----------
clocks : list[str]
clocks of the model
parameters : list[str]
parameters of the model
Returns
-------
str
"""
variable
=
self
.
maude
.
variables
([
"
l
"
],
"
Location
"
)
left_term
=
"
;
"
.
join
([
"
l
"
]
+
clocks
)
...
...
@@ -699,6 +713,22 @@ class CollapsingParser(NoCollapsingParser):
clocks
:
list
[
str
],
parameters
:
list
[
str
],
)
->
str
:
"""
Get reachability command for verification
Parameters
----------
initial_location : str
identifier of the initial location of the automaton
clocks : list[str]
clocks of the model
parameters : list[str]
parameters of the model
Returns
-------
str
"""
fresh_clocks
=
[
f
"
{
c
}
:
{
self
.
var_type
}
"
for
c
in
clocks
]
fresh_params
=
[
f
"
{
p
}
:
{
self
.
var_type
}
"
for
p
in
parameters
]
...
...
This diff is collapsed.
Click to expand it.
pta2maude/tests/examples/ex1x.maude
+
4
−
0
View file @
64f2949e
...
...
@@ -30,4 +30,8 @@ endm
load meta-pta .
red reachability (<replace>, ( < l0 ; x:Real > <> | ( x:Real >= 0/1 ) )) .
quit .
eof
\ No newline at end of file
This diff is collapsed.
Click to expand it.
pta2maude/tests/examples/ex1xy.maude
+
4
−
0
View file @
64f2949e
...
...
@@ -30,4 +30,8 @@ endm
load meta-pta .
red reachability (<replace>, ( < l0 ; x:Real ; y:Real > <> | ( x:Real === y:Real and x:Real >= 0/1 and y:Real >= 0/1 ) )) .
quit .
eof
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment