diff options
author | Leonardo Alt <leonardoaltt@gmail.com> | 2018-04-05 18:20:41 +0800 |
---|---|---|
committer | Leonardo Alt <leonardoaltt@gmail.com> | 2018-04-05 18:48:58 +0800 |
commit | 8d087d1889826271a78ce537b8d1a2ceb11574dd (patch) | |
tree | 456d80737dc8a6e1b2b0152363733dbd2107f29a /libsolidity/formal/SymbolicIntVariable.cpp | |
parent | 36d6c27e6826f173b491a7a536a3755609edaa29 (diff) | |
download | dexon-solidity-8d087d1889826271a78ce537b8d1a2ceb11574dd.tar.gz dexon-solidity-8d087d1889826271a78ce537b8d1a2ceb11574dd.tar.zst dexon-solidity-8d087d1889826271a78ce537b8d1a2ceb11574dd.zip |
[SMTChecker] Removing usage of UFs to access SSA indices
Diffstat (limited to 'libsolidity/formal/SymbolicIntVariable.cpp')
-rw-r--r-- | libsolidity/formal/SymbolicIntVariable.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsolidity/formal/SymbolicIntVariable.cpp b/libsolidity/formal/SymbolicIntVariable.cpp index eb7b1c17..5e71fdcc 100644 --- a/libsolidity/formal/SymbolicIntVariable.cpp +++ b/libsolidity/formal/SymbolicIntVariable.cpp @@ -30,7 +30,11 @@ SymbolicIntVariable::SymbolicIntVariable( SymbolicVariable(_decl, _interface) { solAssert(m_declaration.type()->category() == Type::Category::Integer, ""); - m_expression = make_shared<smt::Expression>(m_interface.newFunction(uniqueSymbol(), smt::Sort::Int, smt::Sort::Int)); +} + +smt::Expression SymbolicIntVariable::valueAtSequence(int _seq) const +{ + return m_interface.newInteger(uniqueSymbol(_seq)); } void SymbolicIntVariable::setZeroValue(int _seq) |