Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
spot-web-app
Commits
61824f9b
Commit
61824f9b
authored
May 12, 2019
by
Alexandre Duret-Lutz
Browse files
state if a non SSI formula can be simplified to an SSI formula
parent
ce984be8
Pipeline
#9074
passed with stage
in 1 minute and 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
client/src/LtlApp.js
View file @
61824f9b
...
...
@@ -1005,6 +1005,8 @@ class LtlStudy extends React.Component {
<
Typography
>
This
formula
is
<
b
>
stutter
-
invariant
<
/b> even if it might not loo
k
so
syntactically
.
{
"
stutter_invariant_eq
"
in
res
&&
(
<><
br
/>
Furthermore
,
it
can
be
simplified
to
the
following
<
i
>
syntactically
sutter
-
invariant
<
/i> formula:<br/
><
Ltl
f
=
{
res
[
"
stutter_invariant_eq
"
]}
/></
>
)}
<
/Typography
>
)}
{
res
[
"
stutter_invariant
"
]
===
false
&&
(
...
...
server/spotapi.py
View file @
61824f9b
...
...
@@ -216,13 +216,19 @@ mp_class_to_english = {
#
# on success:
# { mp_class: 'name',
# pathological:
T
rue, (absent if not pathological)
# pathological:
t
rue, (absent if not pathological)
# mp_hierarchy_svg: '<svg...'
# acc_word: 'word', (an example of accepting word, or null)
# rej_word: 'word', (an example of rejecting word, or null)
# stutter_invariant: False, (or True, or 'no X')
# stutter_invariant: false, (or true, or 'no X')
# stutter_invariant_eq: formula, (* see below)
# safety_liveness: 'safety' (or 'liveness', or 'both', or 'none')
# }
#
# stutter_invariant_eq is only given if stutter_invariant=true (not 'no X'),
# and simplifying the input ltlformula gives a syntactically stutter-invariant
# formula.
@
app
.
route
(
'/api/study/<path:ltlformula>'
)
@
cachecontrol
()
def
study
(
ltlformula
,
method
=
'GET'
):
...
...
@@ -259,6 +265,11 @@ def study(ltlformula, method='GET'):
ssi
=
f
.
is_syntactic_stutter_invariant
()
pos
=
spot
.
translate
(
f
,
'med'
)
# f was simplified by translate.
if
(
ssi
is
False
and
f
.
is_syntactic_stutter_invariant
()):
result
[
'stutter_invariant_eq'
]
=
str
(
f
)
neg
=
spot
.
translate
(
spot
.
formula_Not
(
f
),
'med'
)
if
ssi
:
...
...
Write
Preview
Supports
Markdown
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