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

make continuation context constructor print properly

parent 8be97ae8
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ From lrust.lang Require Import notation. ...@@ -4,7 +4,7 @@ From lrust.lang Require Import notation.
From lrust.lifetime Require Import definitions. From lrust.lifetime Require Import definitions.
From lrust.typing Require Import type lft_contexts type_context. From lrust.typing Require Import type lft_contexts type_context.
Section cont_context. Section cont_context_def.
Context `{typeG Σ}. Context `{typeG Σ}.
Definition cont_postcondition : iProp Σ := False%I. Definition cont_postcondition : iProp Σ := False%I.
...@@ -13,6 +13,11 @@ Section cont_context. ...@@ -13,6 +13,11 @@ Section cont_context.
CctxElt { cctxe_k : val; cctxe_L : llctx; CctxElt { cctxe_k : val; cctxe_L : llctx;
cctxe_n : nat; cctxe_T : vec val cctxe_n tctx }. cctxe_n : nat; cctxe_T : vec val cctxe_n tctx }.
Definition cctx := list cctx_elt. Definition cctx := list cctx_elt.
End cont_context_def.
Add Printing Constructor cctx_elt.
Section cont_context.
Context `{typeG Σ}.
Definition cctx_elt_interp (tid : thread_id) (x : cctx_elt) : iProp Σ := Definition cctx_elt_interp (tid : thread_id) (x : cctx_elt) : iProp Σ :=
let 'CctxElt k L n T := x in let 'CctxElt k L n T := x in
......
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