aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/formal/SymbolicBoolVariable.cpp
diff options
context:
space:
mode:
authorLeonardo Alt <leo@ethereum.org>2018-10-12 21:44:46 +0800
committerLeonardo Alt <leo@ethereum.org>2018-10-15 20:20:54 +0800
commit4a4620ac955d3c61b4778dfab3a9e05a91e4fc33 (patch)
tree32ee6fc579e12562cca7fa66558514f42d4ceccd /libsolidity/formal/SymbolicBoolVariable.cpp
parent0778fb2dfca49bd84d202f78e31730c4e930749f (diff)
downloaddexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar.gz
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar.bz2
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar.lz
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar.xz
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.tar.zst
dexon-solidity-4a4620ac955d3c61b4778dfab3a9e05a91e4fc33.zip
Refactor SSAVariable such that it only uses Type and not Declaration
Diffstat (limited to 'libsolidity/formal/SymbolicBoolVariable.cpp')
-rw-r--r--libsolidity/formal/SymbolicBoolVariable.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/libsolidity/formal/SymbolicBoolVariable.cpp b/libsolidity/formal/SymbolicBoolVariable.cpp
index 5cf22d7d..5e5aec8f 100644
--- a/libsolidity/formal/SymbolicBoolVariable.cpp
+++ b/libsolidity/formal/SymbolicBoolVariable.cpp
@@ -24,12 +24,13 @@ using namespace dev;
using namespace dev::solidity;
SymbolicBoolVariable::SymbolicBoolVariable(
- Declaration const& _decl,
+ Type const& _type,
+ string const& _uniqueName,
smt::SolverInterface&_interface
):
- SymbolicVariable(_decl, _interface)
+ SymbolicVariable(_type, _uniqueName, _interface)
{
- solAssert(m_declaration.type()->category() == Type::Category::Bool, "");
+ solAssert(_type.category() == Type::Category::Bool, "");
}
smt::Expression SymbolicBoolVariable::valueAtSequence(int _seq) const