aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SymbolicIntVariable.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-10-17 17:32:01 +0800
committerLeonardo Alt <leo@ethereum.org>2018-10-17 21:58:13 +0800
commitaa23326e06b00ecbaab032d333a15b28f5aa71d7 (patch)
tree96e3753d623689a5ca48afd83f2dc5a89467234f /libsolidity/formal/SymbolicIntVariable.cpp
parentec39fdcb3c6b3d5eb07ea6768fb3926fe54dc47e (diff)
downloaddexon-solidity-aa23326e06b00ecbaab032d333a15b28f5aa71d7.tar.gz
dexon-solidity-aa23326e06b00ecbaab032d333a15b28f5aa71d7.tar.zst
dexon-solidity-aa23326e06b00ecbaab032d333a15b28f5aa71d7.zip
Consistent renaming of 'counters' and 'sequence' to 'index'
Diffstat (limited to 'libsolidity/formal/SymbolicIntVariable.cpp')
-rw-r--r--libsolidity/formal/SymbolicIntVariable.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libsolidity/formal/SymbolicIntVariable.cpp b/libsolidity/formal/SymbolicIntVariable.cpp
index 877495bd..d75275c6 100644
--- a/libsolidity/formal/SymbolicIntVariable.cpp
+++ b/libsolidity/formal/SymbolicIntVariable.cpp
@@ -35,14 +35,14 @@ SymbolicIntVariable::SymbolicIntVariable(
);
}
-smt::Expression SymbolicIntVariable::valueAtSequence(int _seq) const
+smt::Expression SymbolicIntVariable::valueAtIndex(int _index) const
{
- return m_interface.newInteger(uniqueSymbol(_seq));
+ return m_interface.newInteger(uniqueSymbol(_index));
}
void SymbolicIntVariable::setZeroValue()
{
- m_interface.addAssertion(current() == 0);
+ m_interface.addAssertion(currentValue() == 0);
}
void SymbolicIntVariable::setUnknownValue()
@@ -51,15 +51,15 @@ void SymbolicIntVariable::setUnknownValue()
{
auto intType = dynamic_cast<IntegerType const*>(&m_type);
solAssert(intType, "");
- m_interface.addAssertion(current() >= minValue(*intType));
- m_interface.addAssertion(current() <= maxValue(*intType));
+ m_interface.addAssertion(currentValue() >= minValue(*intType));
+ m_interface.addAssertion(currentValue() <= maxValue(*intType));
}
else
{
solAssert(m_type.category() == Type::Category::Address, "");
IntegerType addrType{160};
- m_interface.addAssertion(current() >= minValue(addrType));
- m_interface.addAssertion(current() <= maxValue(addrType));
+ m_interface.addAssertion(currentValue() >= minValue(addrType));
+ m_interface.addAssertion(currentValue() <= maxValue(addrType));
}
}