Commit f4ecdfa8 authored by Ralf Jung's avatar Ralf Jung
Browse files

make list_reverse compile

parent 30a88b10
......@@ -16,13 +16,13 @@ Fixpoint is_list (hd : val) (xs : list val) : iProp :=
Definition rev : val :=
rec: "rev" "hd" "acc" :=
match: "hd" with
NONE => "acc"
match: '"hd" with
NONE => '"acc"
| SOME "l" =>
let: "tmp1" := Fst !"l" in
let: "tmp2" := Snd !"l" in
"l" <- ("tmp1", "acc");;
"rev" "tmp2" "hd"
let: "tmp1" := Fst !'"l" in
let: "tmp2" := Snd !'"l" in
'"l" <- ('"tmp1", '"acc");;
'"rev" '"tmp2" '"hd"
Global Opaque rev.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment