diff options
author | chriseth <chris@ethereum.org> | 2018-10-15 22:49:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-15 22:49:47 +0800 |
commit | 238494752192a2c834eb8913b244671afb48d693 (patch) | |
tree | d3e60cd464a03b98df9141386df9877bf418d577 /libsolidity/formal/SSAVariable.cpp | |
parent | 771de0c5adfe284c3824265999c1b9c07d66d0a1 (diff) | |
parent | 4a4620ac955d3c61b4778dfab3a9e05a91e4fc33 (diff) | |
download | dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar.gz dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar.bz2 dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar.lz dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar.xz dexon-solidity-238494752192a2c834eb8913b244671afb48d693.tar.zst dexon-solidity-238494752192a2c834eb8913b244671afb48d693.zip |
Merge pull request #5209 from ethereum/smt_ssa_refactor
[SMTChecker] Refactor SSAVariable such that it only uses Type and not Declaration
Diffstat (limited to 'libsolidity/formal/SSAVariable.cpp')
-rw-r--r-- | libsolidity/formal/SSAVariable.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libsolidity/formal/SSAVariable.cpp b/libsolidity/formal/SSAVariable.cpp index 4fc2dd45..ceeea49a 100644 --- a/libsolidity/formal/SSAVariable.cpp +++ b/libsolidity/formal/SSAVariable.cpp @@ -27,16 +27,17 @@ using namespace dev; using namespace dev::solidity; SSAVariable::SSAVariable( - Declaration const& _decl, + Type const& _type, + string const& _uniqueName, smt::SolverInterface& _interface ) { resetIndex(); - if (isInteger(_decl.type()->category())) - m_symbolicVar = make_shared<SymbolicIntVariable>(_decl, _interface); - else if (isBool(_decl.type()->category())) - m_symbolicVar = make_shared<SymbolicBoolVariable>(_decl, _interface); + if (isInteger(_type.category())) + m_symbolicVar = make_shared<SymbolicIntVariable>(_type, _uniqueName, _interface); + else if (isBool(_type.category())) + m_symbolicVar = make_shared<SymbolicBoolVariable>(_type, _uniqueName, _interface); else { solAssert(false, ""); |