diff options
author | chriseth <chris@ethereum.org> | 2018-04-05 22:07:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-05 22:07:07 +0800 |
commit | 4c50ed39d76c4bd96ed73f40077da2c3f6d13c35 (patch) | |
tree | 2187b2bb3f638d50708397f226b276a53c769bc7 /libsolidity/formal/SymbolicVariable.h | |
parent | 95b0589f7739ebfd0c1c9cde8a07332cba039296 (diff) | |
parent | 8d087d1889826271a78ce537b8d1a2ceb11574dd (diff) | |
download | dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar.gz dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar.bz2 dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar.lz dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar.xz dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.tar.zst dexon-solidity-4c50ed39d76c4bd96ed73f40077da2c3f6d13c35.zip |
Merge pull request #3829 from ethereum/smt_remove_uf
[SMTChecker] Remove usage of UFs to access SSA vars
Diffstat (limited to 'libsolidity/formal/SymbolicVariable.h')
-rw-r--r-- | libsolidity/formal/SymbolicVariable.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libsolidity/formal/SymbolicVariable.h b/libsolidity/formal/SymbolicVariable.h index 75eb9fa5..e4e4ea8d 100644 --- a/libsolidity/formal/SymbolicVariable.h +++ b/libsolidity/formal/SymbolicVariable.h @@ -46,7 +46,7 @@ public: return valueAtSequence(_seq); } - std::string uniqueSymbol() const; + std::string uniqueSymbol(int _seq) const; /// Sets the var to the default value of its type. virtual void setZeroValue(int _seq) = 0; @@ -55,13 +55,9 @@ public: virtual void setUnknownValue(int _seq) = 0; protected: - smt::Expression valueAtSequence(int _seq) const - { - return (*m_expression)(_seq); - } + virtual smt::Expression valueAtSequence(int _seq) const = 0; Declaration const& m_declaration; - std::shared_ptr<smt::Expression> m_expression = nullptr; smt::SolverInterface& m_interface; }; |