VarVarBind: fix non-transitivity

This commit is contained in:
Théophile Bastian 2018-02-16 15:01:06 +01:00
parent 0a4d788513
commit b1e82638b2

View file

@ -27,7 +27,7 @@ let rec clean_term map_env = function
clean_value map_env value,
clean_term map_env next)
| S.LetVal (name, S.VVar subVar, next) ->
clean_term (Env.add name subVar map_env) next
clean_term (Env.add name (clean_var map_env subVar) map_env) next
| S.LetVal (name, value, next) ->
S.LetVal (name, value, clean_term map_env next)
| S.LetBlo (name, S.Con(tag, args), next) ->