aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SymbolicVariable.h
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/SymbolicVariable.h
parentaa23326e06b00ecbaab032d333a15b28f5aa71d7 (diff)
downloaddexon-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.h7
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;