aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SSAVariable.h
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/SSAVariable.h
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/SSAVariable.h')
-rw-r--r--libsolidity/formal/SSAVariable.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/libsolidity/formal/SSAVariable.h b/libsolidity/formal/SSAVariable.h
index f8317b79..d357740d 100644
--- a/libsolidity/formal/SSAVariable.h
+++ b/libsolidity/formal/SSAVariable.h
@@ -34,19 +34,19 @@ public:
void resetIndex();
/// This function returns the current index of this SSA variable.
- int index() const { return m_currentSequenceCounter; }
- int& index() { return m_currentSequenceCounter; }
+ int index() const { return m_currentIndex; }
+ int& index() { return m_currentIndex; }
int operator++()
{
- return m_currentSequenceCounter = (*m_nextFreeSequenceCounter)++;
+ return m_currentIndex = (*m_nextFreeIndex)++;
}
private:
- int m_currentSequenceCounter;
- /// The next free sequence counter is a shared pointer because we want
+ int m_currentIndex;
+ /// The next free index is a shared pointer because we want
/// the copy and the copied to share it.
- std::shared_ptr<int> m_nextFreeSequenceCounter;
+ std::shared_ptr<int> m_nextFreeIndex;
};
}