From ec39fdcb3c6b3d5eb07ea6768fb3926fe54dc47e Mon Sep 17 00:00:00 2001 From: Leonardo Alt Date: Mon, 15 Oct 2018 17:32:17 +0200 Subject: [SMTChecker] Refactoring types --- libsolidity/formal/SymbolicBoolVariable.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'libsolidity/formal/SymbolicBoolVariable.cpp') diff --git a/libsolidity/formal/SymbolicBoolVariable.cpp b/libsolidity/formal/SymbolicBoolVariable.cpp index 5e5aec8f..f65ecd37 100644 --- a/libsolidity/formal/SymbolicBoolVariable.cpp +++ b/libsolidity/formal/SymbolicBoolVariable.cpp @@ -17,8 +17,6 @@ #include -#include - using namespace std; using namespace dev; using namespace dev::solidity; @@ -38,11 +36,11 @@ smt::Expression SymbolicBoolVariable::valueAtSequence(int _seq) const return m_interface.newBool(uniqueSymbol(_seq)); } -void SymbolicBoolVariable::setZeroValue(int _seq) +void SymbolicBoolVariable::setZeroValue() { - m_interface.addAssertion(valueAtSequence(_seq) == smt::Expression(false)); + m_interface.addAssertion(current() == smt::Expression(false)); } -void SymbolicBoolVariable::setUnknownValue(int) +void SymbolicBoolVariable::setUnknownValue() { } -- cgit