let free_vars m xs p = List.fold_left (fun p x -> let v_x = F.Xindex.get_ind x in L.subst m.x_alloc (free m.alloc v_x) p ) p xs