aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SMTChecker.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-10-17 21:56:44 +0800
committerLeonardo Alt <leo@ethereum.org>2018-10-17 21:58:13 +0800
commitafe83cc28b2b0f31a00911ed0b540e1beb038736 (patch)
tree77b65a99a105338802f58fc4f43789eced1b91cf /libsolidity/formal/SMTChecker.cpp
parentaa23326e06b00ecbaab032d333a15b28f5aa71d7 (diff)
downloaddexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.gz
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.bz2
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.lz
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.xz
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.zst
dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.zip
Refactor SymbolicAddressVariable and SymbolicVariable allocation
Diffstat (limited to 'libsolidity/formal/SMTChecker.cpp')
-rw-r--r--libsolidity/formal/SMTChecker.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp
index 8787d25a..671c2049 100644
--- a/libsolidity/formal/SMTChecker.cpp
+++ b/libsolidity/formal/SMTChecker.cpp
@@ -257,14 +257,14 @@ void SMTChecker::endVisit(TupleExpression const& _tuple)
void SMTChecker::checkUnderOverflow(smt::Expression _value, IntegerType const& _type, SourceLocation const& _location)
{
checkCondition(
- _value < SymbolicIntVariable::minValue(_type),
+ _value < minValue(_type),
_location,
"Underflow (resulting value less than " + formatNumber(_type.minValue()) + ")",
"<result>",
&_value
);
checkCondition(
- _value > SymbolicIntVariable::maxValue(_type),
+ _value > maxValue(_type),
_location,
"Overflow (resulting value larger than " + formatNumber(_type.maxValue()) + ")",
"<result>",
@@ -570,7 +570,7 @@ void SMTChecker::compareOperation(BinaryOperation const& _op)
smt::Expression right(expr(_op.rightExpression()));
Token::Value op = _op.getOperator();
shared_ptr<smt::Expression> value;
- if (isInteger(_op.annotation().commonType->category()))
+ if (isNumber(_op.annotation().commonType->category()))
{
value = make_shared<smt::Expression>(
op == Token::Equal ? (left == right) :