2018-01-17 20:02:23 +00:00
|
|
|
/*
|
|
|
|
This file is part of solidity.
|
|
|
|
|
|
|
|
solidity is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
solidity is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <libsolidity/formal/SymbolicVariable.h>
|
|
|
|
|
|
|
|
#include <libsolidity/ast/AST.h>
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
using namespace dev;
|
|
|
|
using namespace dev::solidity;
|
|
|
|
|
2018-02-28 17:00:13 +00:00
|
|
|
SymbolicVariable::SymbolicVariable(
|
2018-03-09 15:19:03 +00:00
|
|
|
Declaration const& _decl,
|
2018-02-28 17:00:13 +00:00
|
|
|
smt::SolverInterface& _interface
|
|
|
|
):
|
|
|
|
m_declaration(_decl),
|
2018-01-17 20:02:23 +00:00
|
|
|
m_interface(_interface)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-04-05 10:20:41 +00:00
|
|
|
string SymbolicVariable::uniqueSymbol(int _seq) const
|
2018-01-17 20:02:23 +00:00
|
|
|
{
|
2018-04-05 10:20:41 +00:00
|
|
|
return m_declaration.name() + "_" + to_string(m_declaration.id()) + "_" + to_string(_seq);
|
2018-01-17 20:02:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|