Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
peregrine
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
i7
peregrine
Commits
a6f74eb6
Commit
a6f74eb6
authored
Jul 16, 2014
by
Philipp Meyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made output compatible with sara
parent
1ec6cad1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/Main.hs
src/Main.hs
+2
-1
src/Printer/SARA.hs
src/Printer/SARA.hs
+2
-1
No files found.
src/Main.hs
View file @
a6f74eb6
...
...
@@ -222,7 +222,8 @@ transformNet (net, props) TerminationByReachability =
(
transitions
net
)
prop
=
Property
"termination by reachability"
Safety
$
foldl
(
:&:
)
(
Atom
(
LinIneq
(
Var
"'sigma"
)
Ge
(
Const
1
)))
(
map
(
\
p
->
Atom
(
LinIneq
(
Var
(
prime
p
))
Ge
(
Var
p
)))
(
map
(
\
p
->
Atom
(
LinIneq
(
Var
(
prime
p
)
:-:
Var
p
)
Ge
(
Const
0
)))
(
places
net
))
-- TODO: map existing liveness properties
in
(
makePetriNetWithTrans
(
name
net
)
ps
ts
is
,
prop
:
props
)
...
...
src/Printer/SARA.hs
View file @
a6f74eb6
...
...
@@ -41,7 +41,8 @@ printProperty :: String -> PetriNet -> Property -> String
printProperty
filename
net
(
Property
propname
Safety
f
)
=
"PROBLEM "
++
validateId
propname
++
":
\n
"
++
"GOAL REACHABILITY;
\n
"
++
"FILE "
++
filename
++
" TYPE LOLA;
\n
"
++
"FILE "
++
reverse
(
takeWhile
(
/=
'/'
)
(
reverse
filename
))
++
" TYPE LOLA;
\n
"
++
"INITIAL "
++
intercalate
","
(
map
(
\
(
p
,
i
)
->
p
++
":"
++
show
i
)
(
initials
net
))
++
";
\n
"
++
"FINAL COVER;
\n
"
++
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment