mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Replace "value" by "<result>" in the SMT model
This commit is contained in:
parent
a78565e44f
commit
b6a2655513
@ -252,14 +252,14 @@ void SMTChecker::checkUnderOverflow(smt::Expression _value, IntegerType const& _
|
||||
_value < SymbolicIntVariable::minValue(_type),
|
||||
_location,
|
||||
"Underflow (resulting value less than " + formatNumber(_type.minValue()) + ")",
|
||||
"value",
|
||||
"<result>",
|
||||
&_value
|
||||
);
|
||||
checkCondition(
|
||||
_value > SymbolicIntVariable::maxValue(_type),
|
||||
_location,
|
||||
"Overflow (resulting value larger than " + formatNumber(_type.maxValue()) + ")",
|
||||
"value",
|
||||
"<result>",
|
||||
&_value
|
||||
);
|
||||
}
|
||||
@ -437,7 +437,7 @@ void SMTChecker::arithmeticOperation(BinaryOperation const& _op)
|
||||
|
||||
if (_op.getOperator() == Token::Div)
|
||||
{
|
||||
checkCondition(right == 0, _op.location(), "Division by zero", "value", &right);
|
||||
checkCondition(right == 0, _op.location(), "Division by zero", "<result>", &right);
|
||||
m_interface->addAssertion(right != 0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user