mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE with fixed point
This commit is contained in:
@@ -304,7 +304,10 @@ void BMC::endVisit(UnaryOperation const& _op)
|
||||
{
|
||||
SMTEncoder::endVisit(_op);
|
||||
|
||||
if (_op.annotation().type->category() == Type::Category::RationalNumber)
|
||||
if (
|
||||
_op.annotation().type->category() == Type::Category::RationalNumber ||
|
||||
_op.annotation().type->category() == Type::Category::FixedPoint
|
||||
)
|
||||
return;
|
||||
|
||||
switch (_op.getOperator())
|
||||
|
||||
@@ -457,6 +457,9 @@ void SMTEncoder::endVisit(UnaryOperation const& _op)
|
||||
|
||||
createExpr(_op);
|
||||
|
||||
if (_op.annotation().type->category() == Type::Category::FixedPoint)
|
||||
return;
|
||||
|
||||
switch (_op.getOperator())
|
||||
{
|
||||
case Token::Not: // !
|
||||
|
||||
Reference in New Issue
Block a user