[SMTChecker] Initialize all number types with 0

This commit is contained in:
Leonardo Alt 2019-07-25 15:15:18 +02:00
parent 4f7fec6911
commit cd5a5b3686

View File

@ -258,7 +258,7 @@ void setSymbolicZeroValue(SymbolicVariable const& _variable, EncodingContext& _c
void setSymbolicZeroValue(Expression _expr, solidity::TypePointer const& _type, EncodingContext& _context)
{
solAssert(_type, "");
if (isInteger(_type->category()))
if (isNumber(_type->category()))
_context.addAssertion(_expr == 0);
else if (isBool(_type->category()))
_context.addAssertion(_expr == Expression(false));