diff options
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, ""); |