Commit f141283e authored by Jean-Christophe Filliâtre's avatar Jean-Christophe Filliâtre
Browse files

programs: variable substitution in program types now covers all variables

parent 167000e1
......@@ -236,10 +236,12 @@ 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
vs
else
let vs' = create_vsymbol (id_clone vs.vs_name) ty' in
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