Commit bfb7529f authored by Andrei Paskevich's avatar Andrei Paskevich
Browse files

Revert "programs: variable substitution in program types now covers all variables"

This reverts commit f141283e.

Actually, the original code is fairly correct. Sorry for the fuzz.
parent f141283e
......@@ -236,12 +236,10 @@ end = struct
let rec subst_var ts s vs =
let ty' = ty_inst ts vs.vs_ty in
let vs' =
if ty_equal ty' vs.vs_ty then
s, vs
create_vsymbol (id_clone vs.vs_name) ty'
let vs' = create_vsymbol (id_clone vs.vs_name) ty' in
Mvs.add vs (t_var vs') s, vs'
and subst_post ts s ((v, q), ql) =
Markdown is supported
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