diff --git a/tests/heap_lang.ref b/tests/heap_lang.ref index 1e739c0949c281b7266b3820add0550765124697..b4ac2c10a5b6822a67b8883062addc91665b61a3 100644 --- a/tests/heap_lang.ref +++ b/tests/heap_lang.ref @@ -30,6 +30,26 @@ WP let: "x" := #l in let: "y" := ref #1 in "x" <- ! "x" + #1;; ! "x" @ E [{ v, ⌜v = #2⌠}] +1 subgoal + + Σ : gFunctors + H : heapG Σ + l : loc + ============================ + "Hl1" : l ↦{1 / 2} #0 + "Hl2" : l ↦{1 / 2} #0 + --------------------------------------∗ + True + +1 subgoal + + Σ : gFunctors + H : heapG Σ + l : loc + ============================ + --------------------------------------∗ + True + 1 subgoal Σ : gFunctors diff --git a/tests/heap_lang.v b/tests/heap_lang.v index e863bf9b6c360b06f7900c6c2b36fcbc6728b5bd..dd4a53e4e7a1d1f5488298966329db92fbad2d13 100644 --- a/tests/heap_lang.v +++ b/tests/heap_lang.v @@ -123,6 +123,14 @@ Section tests. iIntros (?) "?". wp_cas as ? | ?. done. done. Qed. + Lemma wp_alloc_split : + WP Alloc #0 {{ _, True }}%I. + Proof. wp_alloc l as "[Hl1 Hl2]". Show. done. Qed. + + Lemma wp_alloc_drop : + WP Alloc #0 {{ _, True }}%I. + Proof. wp_alloc l as "_". Show. done. Qed. + End tests. Section printing_tests.