diff options
author | gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-08-09 12:41:20 +0000 |
---|---|---|
committer | gareuselesinge <gareuselesinge@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2013-08-09 12:41:20 +0000 |
commit | e16d10ed9f5ae8922b9e2b6838baef4c6d75d492 (patch) | |
tree | 4b501c11a6547da6814d574c13f796414655f7d1 /checker/values.ml | |
parent | 5053ccc561dd1416a788b5e000049b7e51826a7e (diff) |
checker validation fixed w.r.t. Futures
still not working, it complains about the universe constraint
set...
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@16691 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'checker/values.ml')
-rw-r--r-- | checker/values.ml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/checker/values.ml b/checker/values.ml index eb18bf34b..f8244e06d 100644 --- a/checker/values.ml +++ b/checker/values.ml @@ -13,7 +13,7 @@ To ensure this file is up-to-date, 'make' now compares the md5 of cic.mli with a copy we maintain here: -MD5 1e607e046b15faeee5912eda83dbb1ba checker/cic.mli +MD5 43e0b61e2a549058ae0a59bbadbb9d61 checker/cic.mli *) @@ -64,6 +64,14 @@ let v_map vk vd = [|[|m; Annot("key",vk); Annot("data",vd); m; Annot("bal",Int)|]|]) in m +(* lib/future *) +let v_computation f = + Annot ("Future.computation", + v_ref + (v_sum "computation" 2 + [| [| Fail "Closure" |]; + [| f ; v_sum "option" 1 [| [| Fail "Val(_,Some _)" |] |] |]; + [| Fail "Exn" |] |])) (** kernel/names *) @@ -186,7 +194,7 @@ let v_cst_type = let v_cst_def = v_sum "constant_def" 0 - [|[|Opt Int|]; [|v_cstr_subst|]; [|v_lazy_constr|]|] + [|[|Opt Int|]; [|v_cstr_subst|]; [|v_computation v_lazy_constr|]|] let v_cb = v_tuple "constant_body" [|v_section_ctxt; |