mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7142 from ethereum/smt_init_numbers
[SMTChecker] Initialize all number types with 0
This commit is contained in:
commit
0197a200cd
@ -258,7 +258,7 @@ void setSymbolicZeroValue(SymbolicVariable const& _variable, EncodingContext& _c
|
|||||||
void setSymbolicZeroValue(Expression _expr, solidity::TypePointer const& _type, EncodingContext& _context)
|
void setSymbolicZeroValue(Expression _expr, solidity::TypePointer const& _type, EncodingContext& _context)
|
||||||
{
|
{
|
||||||
solAssert(_type, "");
|
solAssert(_type, "");
|
||||||
if (isInteger(_type->category()))
|
if (isNumber(_type->category()))
|
||||||
_context.addAssertion(_expr == 0);
|
_context.addAssertion(_expr == 0);
|
||||||
else if (isBool(_type->category()))
|
else if (isBool(_type->category()))
|
||||||
_context.addAssertion(_expr == Expression(false));
|
_context.addAssertion(_expr == Expression(false));
|
||||||
|
Loading…
Reference in New Issue
Block a user