Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
Iris
Commits
74858b88
Commit
74858b88
authored
Aug 12, 2019
by
Ralf Jung
Browse files
comment examples
parent
64f63272
Pipeline
#18949
passed with stage
in 14 minutes and 55 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/one_shot.v
View file @
74858b88
...
...
@@ -6,6 +6,9 @@ From iris.proofmode Require Import tactics.
From
iris
.
heap_lang
.
lib
Require
Import
par
.
Set
Default
Proof
Using
"Type"
.
(** This is the introductory example from the "Iris from the Ground Up" journal
paper. *)
Definition
one_shot_example
:
val
:
=
λ
:
<>,
let
:
"x"
:
=
ref
NONE
in
(
(* tryset *)
(
λ
:
"n"
,
...
...
tests/one_shot_once.v
View file @
74858b88
...
...
@@ -6,6 +6,9 @@ From iris.proofmode Require Import tactics.
From
iris
.
heap_lang
.
lib
Require
Import
par
.
Set
Default
Proof
Using
"Type"
.
(** This is the introductory example from Ralf's PhD thesis.
The difference to [one_shot] is that [set] asserts to be called only once. *)
Definition
one_shot_example
:
val
:
=
λ
:
<>,
let
:
"x"
:
=
ref
NONE
in
(
(* set *)
(
λ
:
"n"
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment