[SMTChecker] Fix visit to IndexAccess that has type Type

This commit is contained in:
Leonardo Alt
2019-11-29 17:20:50 +01:00
parent 27097b3eca
commit 9eda95caf9
2 changed files with 9 additions and 9 deletions
+1 -4
View File
@@ -899,11 +899,8 @@ void SMTEncoder::endVisit(IndexAccess const& _indexAccess)
return;
}
if (!_indexAccess.indexExpression())
{
solAssert(_indexAccess.annotation().type->category() == Type::Category::TypeType, "");
if (_indexAccess.annotation().type->category() == Type::Category::TypeType)
return;
}
solAssert(array, "");
defineExpr(_indexAccess, smt::Expression::select(