From 4a4620ac955d3c61b4778dfab3a9e05a91e4fc33 Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Fri, 12 Oct 2018 15:44:46 +0200 Subject: Refactor SSAVariable such that it only uses Type and not Declaration --- libsolidity/formal/SymbolicBoolVariable.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libsolidity/formal/SymbolicBoolVariable.cpp') 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 -- cgit v1.2.3