summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Campbell2019-06-21 14:44:29 +0100
committerBrian Campbell2019-06-21 14:44:29 +0100
commite8697cb036720cdf75687f0c442c49dd48913bcb (patch)
treef7297c2e8b16f13271266accb18b73a0569cfd26 /src
parent7a5f75524c59bf885d7c31ed1ae8a7cfe725d5dc (diff)
Coq: add missing property derivation casts for effectful expressions
These don't appear much, but are now showing up in the sail-arm model due to an innocent change elsewhere.
Diffstat (limited to 'src')
-rw-r--r--src/pretty_print_coq.ml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pretty_print_coq.ml b/src/pretty_print_coq.ml
index 3083fc29..1fea72ea 100644
--- a/src/pretty_print_coq.ml
+++ b/src/pretty_print_coq.ml
@@ -1961,6 +1961,10 @@ let doc_exp, doc_let =
if effects then
match cast_ex, outer_ex with
| ExGeneral, ExNone -> string "projT1_m" ^/^ parens epp
+ | ExGeneral, ExGeneral ->
+ if alpha_equivalent env cast_typ outer_typ
+ then epp
+ else string "derive_m" ^/^ parens epp
| _ -> epp
else match cast_ex with
| ExGeneral -> string "projT1" ^/^ parens epp