Skip to content
Snippets Groups Projects
Commit 74858b88 authored by Ralf Jung's avatar Ralf Jung
Browse files

comment examples

parent 64f63272
No related branches found
No related tags found
No related merge requests found
......@@ -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",
......
......@@ -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",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment