resolvedVars = vars.clone();
for (int i = 0; i < vars.length; ++i)
if (!forbidden.isEmpty() && resolvedVars[i].getIndices().size() != 0) {
if (resolvedVars[i].getIndices().size() != resolvedVars[i].getIndices().getFree().size())
resolvedVars[i] = (SimpleTensor) renameDummy(resolvedVars[i], forbidden.toArray());
forbidden.addAll(getIndicesNames(resolvedVars[i].getIndices()));
}
tensor = renameDummy(tensor, TensorUtils.getAllIndicesNamesT(resolvedVars).toArray(), forbidden);
tensor = renameIndicesOfFieldsArguments(tensor, forbidden);
}