mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #6702 from ethereum/smt_fix_asgn_unsupported_type
[SMTChecker] Fix unsupported type assignment
This commit is contained in:
@@ -377,10 +377,15 @@ void SMTChecker::endVisit(Assignment const& _assignment)
|
||||
"Assertion checker does not yet implement this assignment operator."
|
||||
);
|
||||
else if (!isSupportedType(_assignment.annotation().type->category()))
|
||||
{
|
||||
m_errorReporter.warning(
|
||||
_assignment.location(),
|
||||
"Assertion checker does not yet implement type " + _assignment.annotation().type->toString()
|
||||
);
|
||||
// Give it a new index anyway to keep the SSA scheme sound.
|
||||
if (auto varDecl = identifierToVariable(_assignment.leftHandSide()))
|
||||
newValue(*varDecl);
|
||||
}
|
||||
else
|
||||
{
|
||||
vector<smt::Expression> rightArguments;
|
||||
|
||||
Reference in New Issue
Block a user