diff options
author | Leonardo Alt <leo@ethereum.org> | 2018-10-17 21:56:44 +0800 |
---|---|---|
committer | Leonardo Alt <leo@ethereum.org> | 2018-10-17 21:58:13 +0800 |
commit | afe83cc28b2b0f31a00911ed0b540e1beb038736 (patch) | |
tree | 77b65a99a105338802f58fc4f43789eced1b91cf /libsolidity/formal/SymbolicVariable.h | |
parent | aa23326e06b00ecbaab032d333a15b28f5aa71d7 (diff) | |
download | dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.gz dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.tar.zst dexon-solidity-afe83cc28b2b0f31a00911ed0b540e1beb038736.zip |
Refactor SymbolicAddressVariable and SymbolicVariable allocation
Diffstat (limited to 'libsolidity/formal/SymbolicVariable.h')
-rw-r--r-- | libsolidity/formal/SymbolicVariable.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/formal/SymbolicVariable.h b/libsolidity/formal/SymbolicVariable.h index 215c9ac1..417e1f92 100644 --- a/libsolidity/formal/SymbolicVariable.h +++ b/libsolidity/formal/SymbolicVariable.h @@ -62,10 +62,11 @@ public: int& index() { return m_ssa->index(); } /// Sets the var to the default value of its type. + /// Inherited types must implement. virtual void setZeroValue() = 0; - /// The unknown value is the full range of valid values, - /// and that's sub-type dependent. - virtual void setUnknownValue() = 0; + /// The unknown value is the full range of valid values. + /// It is sub-type dependent, but not mandatory. + virtual void setUnknownValue() {} protected: std::string uniqueSymbol(int _index) const; |