Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIWO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Christian Müller
NIWO
Commits
565ddafd
Commit
565ddafd
authored
Mar 07, 2019
by
Christian Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples
parent
14b736c7
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
120 additions
and
3 deletions
+120
-3
examples/examplestrategies.txt
examples/examplestrategies.txt
+31
-0
examples/tests/conference_linear_small_unsafe.spec
examples/tests/conference_linear_small_unsafe.spec
+22
-0
examples/tests/conference_stubborn_withB.spec
examples/tests/conference_stubborn_withB.spec
+1
-1
examples/tests/leaderelection.spec
examples/tests/leaderelection.spec
+16
-0
examples/tests/leaderelection_nonext.spec
examples/tests/leaderelection_nonext.spec
+16
-0
examples/tests/leaderelection_nonext_unsafe.spec
examples/tests/leaderelection_nonext_unsafe.spec
+16
-0
examples/tests/leaderelection_unsafe.spec
examples/tests/leaderelection_unsafe.spec
+16
-0
examples/tests/loopexample.spec
examples/tests/loopexample.spec
+1
-1
examples/tests/simpleChoice.spec
examples/tests/simpleChoice.spec
+1
-1
No files found.
examples/examplestrategies.txt
0 → 100644
View file @
565ddafd
Stubborn:
BSFO SOQE: strategy for B(x1,p1):
∀ xt:X,pt:P. (
(¬ Conf(xt,pt) ∨ ¬ (x1 = xt) ∨ ¬ (p1 = pt)) ∧
(¬ Conf(xt,pt) ∨ ∀ yt:X. ¬ (x1 = yt) ∨ ¬ (p1 = pt)))
Causal
BSFO SOQE: strategy for B(x1,p1):
∀ xt:X,p:P,pt:P. (
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = xt) ∨ ¬ (p1 = pt)) ∧
∀ yt:X. (
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = yt) ∨ ¬ (p = p1)) ∧
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = yt) ∨ ¬ (pt = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = xt) ∨ ¬ (pt = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = yt) ∨ ¬ (p = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = yt) ∨ ¬ (pt = p1))
)
)
Simpl BSFO SOQE: strategy for B(x1,p1):
∀ xt:X,p:P,pt:P. (
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (x1 = xt) ∨ ¬ (p1 = pt)) ∧
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (p = p1)) ∧
(Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (pt = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (pt = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (p = p1)) ∧
(¬ Conf(xt,p) ∨ ¬ Conf(xt,pt) ∨ ¬ (pt = p1))
)
examples/tests/conference_linear_small_unsafe.spec
0 → 100644
View file @
565ddafd
Workflow
forallmay x:X,p:P
True -> Conf += (x,p)
forall x:X,p:P
True -> Assign += (x,p)
forall x:X,p:P
(Assign(x,p) ∧ O(x,p)) -> Report += (x,p)
forallmay y:X,x:X,p:P
(Report(x,p) ∧ Assign(y,p)) -> Comm += (x,y,p)
Declassify
O(x:X,p:P): ¬ Conf(xt:X,p:P)
Target
Comm(xt:X, yt:X, pt:P)
Causality
a:X
examples/tests/conference_stubborn_withB.spec
View file @
565ddafd
...
...
@@ -2,7 +2,7 @@ Workflow
forallmay x:A,p:P
True → Conf += (x,p)
forall
may
x:A,p:P
forall x:A,p:P
B(x,p) → Assign += (x,p)
forall x:A,p:P
(Assign(x,p) ∧ Oracle(x,p)) → Review += (x,p)
...
...
examples/tests/leaderelection.spec
0 → 100644
View file @
565ddafd
Workflow
forall a,b
Inext(a,b) -> msg += (a,b)
loop {
forall a
msg(a,a) -> leader += (a)
forall a,b,c
(Inext(b, c) ∧ msg(a, b) ∧ Ile(b, a)) -> msg += (a,c)
}
Target
msg(a1, a2)
Causality
examples/tests/leaderelection_nonext.spec
0 → 100644
View file @
565ddafd
Workflow
forall a,b
∀d. (d = a ∨ d = b ∨ Ibtw(a,b,d)) -> msg += (a,b)
loop {
forall a
msg(a,a) -> leader += (a)
forall a,b,c
(∀d. (d = b ∨ d = c ∨ Ibtw(b,c,d)) ∧ msg(a, b) ∧ Ile(b,a)) -> msg += (a,c)
}
Target
msg(a1, a2)
Causality
examples/tests/leaderelection_nonext_unsafe.spec
0 → 100644
View file @
565ddafd
Workflow
forall a,b
∀d. (d = a ∨ d = b ∨ Ibtw(a,b,d)) -> msg += (a,b)
loop {
forall a
msg(a,a) -> leader += (a)
forall a,b,c
(∀d. (d = b ∨ d = c ∨ Ibtw(b,c,d)) ∧ msg(a, b)) -> msg += (a,c)
}
Target
msg(a1, a2)
Causality
examples/tests/leaderelection_unsafe.spec
0 → 100644
View file @
565ddafd
Workflow
forall a,b
Inext(a,b) -> msg += (a,b)
loop {
forall a
msg(a,a) -> leader += (a)
forall a,b,c
(Inext(b, c) ∧ msg(a, b)) -> msg += (a,c)
}
Target
msg(a1, a2)
Causality
examples/tests/loopexample.spec
View file @
565ddafd
Workflow
forall
may
x,s O(s) -> Q += (x,s)
forall x,s O(s) -> Q += (x,s)
loop {
forall x,y,s R(y,s) -> S += (x,y,s)
forall x,s Q(x,s) -> R += (x,s)
...
...
examples/tests/simpleChoice.spec
View file @
565ddafd
Workflow
forall
may
x,s
forall x,s
O(s) -> R += (x,s)
Target
...
...
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