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

more printing tests for prop-level notations

parent c3c5c164
No related branches found
No related tags found
No related merge requests found
1 subgoal 1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
P, Q : iProp Σ
============================
P ={⊤}=∗ Q
1 subgoal
Σ : gFunctors Σ : gFunctors
heapG0 : heapG Σ heapG0 : heapG Σ
fun1, fun2, fun3 : expr fun1, fun2, fun3 : expr
...@@ -10,3 +17,14 @@ ...@@ -10,3 +17,14 @@
let: "val3" := fun3 "val2" in if: "val1" = "val2" then "val" else "val3" let: "val3" := fun3 "val2" in if: "val1" = "val2" then "val" else "val3"
{{ _, True }} {{ _, True }}
1 subgoal
Σ : gFunctors
heapG0 : heapG Σ
fun1, fun2, fun3 : expr
============================
{{{ True }}}
let: "val1" := fun1 #() in
let: "val2" := fun2 "val1" in
let: "val3" := fun3 "val2" in if: "val1" = "val2" then "val" else "val3"
{{{ (x y : val) (z : Z), RET (x, y, #z); True }}}
...@@ -8,6 +8,10 @@ Set Default Proof Using "Type". ...@@ -8,6 +8,10 @@ Set Default Proof Using "Type".
Section printing_tests. Section printing_tests.
Context `{!heapG Σ}. Context `{!heapG Σ}.
Lemma vs_print (P Q : iProp Σ) :
P ={}=∗ Q.
Proof. Show. Abort.
Lemma wp_print_long_expr (fun1 fun2 fun3 : expr) : Lemma wp_print_long_expr (fun1 fun2 fun3 : expr) :
True -∗ WP let: "val1" := fun1 #() in True -∗ WP let: "val1" := fun1 #() in
let: "val2" := fun2 "val1" in let: "val2" := fun2 "val1" in
...@@ -17,4 +21,13 @@ Section printing_tests. ...@@ -17,4 +21,13 @@ Section printing_tests.
iIntros "_". Show. iIntros "_". Show.
Abort. Abort.
Lemma texan_triple_long_expr (fun1 fun2 fun3 : expr) :
{{{ True }}}
let: "val1" := fun1 #() in
let: "val2" := fun2 "val1" in
let: "val3" := fun3 "val2" in
if: "val1" = "val2" then "val" else "val3"
{{{ (x y : val) (z : Z), RET (x, y, #z); True }}}.
Proof. Show. Abort.
End printing_tests. End printing_tests.
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