fix(library/tactic/inversion_tactic): incorrect use of optimization

This commit is contained in:
Leonardo de Moura 2015-04-20 16:21:44 -07:00
parent 107763a506
commit 431eade894

View file

@ -182,8 +182,8 @@ class inversion_tac {
for (unsigned i = fidx; i < args.size(); i++) { for (unsigned i = fidx; i < args.size(); i++) {
if (!is_local(args[i])) if (!is_local(args[i]))
return false; // the indices must be local constants return false; // the indices must be local constants
for (unsigned j = fidx; j < i; j++) { for (unsigned j = 0; j < i; j++) {
if (mlocal_name(args[j]) == mlocal_name(args[i])) if (is_local(args[j]) && mlocal_name(args[j]) == mlocal_name(args[i]))
return false; // the indices must be distinct local constants return false; // the indices must be distinct local constants
} }
} }