diff options
author | Leonardo Alt <leonardoaltt@gmail.com> | 2018-02-17 16:35:37 +0800 |
---|---|---|
committer | Leonardo Alt <leonardoaltt@gmail.com> | 2018-03-01 01:05:20 +0800 |
commit | 21c6b80fc98f6d584f240a47d4a01827768f18f3 (patch) | |
tree | bdd168818053f5d983fb57bcef9c36f2738541cb /libsolidity/formal/SMTChecker.cpp | |
parent | 3b2851ee4163bcfbca9e4e23650dfeee1a06653a (diff) | |
download | dexon-solidity-21c6b80fc98f6d584f240a47d4a01827768f18f3.tar.gz dexon-solidity-21c6b80fc98f6d584f240a47d4a01827768f18f3.tar.zst dexon-solidity-21c6b80fc98f6d584f240a47d4a01827768f18f3.zip |
Supported types listed in SSAVariable
Diffstat (limited to 'libsolidity/formal/SMTChecker.cpp')
-rw-r--r-- | libsolidity/formal/SMTChecker.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/formal/SMTChecker.cpp b/libsolidity/formal/SMTChecker.cpp index ad42c105..1da5b291 100644 --- a/libsolidity/formal/SMTChecker.cpp +++ b/libsolidity/formal/SMTChecker.cpp @@ -370,7 +370,7 @@ void SMTChecker::endVisit(Identifier const& _identifier) { // Will be translated as part of the node that requested the lvalue. } - else if (dynamic_cast<IntegerType const*>(_identifier.annotation().type.get())) + else if (SSAVariable::supportedType(_identifier.annotation().type.get())) defineExpr(_identifier, currentValue(*decl)); else if (FunctionType const* fun = dynamic_cast<FunctionType const*>(_identifier.annotation().type.get())) { @@ -728,7 +728,7 @@ void SMTChecker::mergeVariables(vector<Declaration const*> const& _variables, sm bool SMTChecker::createVariable(VariableDeclaration const& _varDecl) { - if (dynamic_cast<IntegerType const*>(_varDecl.type().get())) + if (SSAVariable::supportedType(_varDecl.type().get())) { solAssert(m_variables.count(&_varDecl) == 0, ""); m_variables.emplace(&_varDecl, SSAVariable(&_varDecl, *m_interface)); |