diff --git a/libsolidity/codegen/CompilerUtils.cpp b/libsolidity/codegen/CompilerUtils.cpp index ad461d2da..f3ded3e32 100644 --- a/libsolidity/codegen/CompilerUtils.cpp +++ b/libsolidity/codegen/CompilerUtils.cpp @@ -32,6 +32,8 @@ #include #include +#include + using namespace std; using namespace solidity; using namespace solidity::evmasm; @@ -1357,10 +1359,24 @@ void CompilerUtils::moveIntoStack(unsigned _stackDepth, unsigned _itemSize) { if (_stackDepth <= _itemSize) for (unsigned i = 0; i < _stackDepth; ++i) + { + if (i > 1) + { + std::cout << "Down: " << i << std::endl; + solAssert(false, "down"); + } rotateStackDown(_stackDepth + _itemSize); + } else for (unsigned i = 0; i < _itemSize; ++i) + { + if (i > 1) + { + std::cout << "Up: " << i << std::endl; + solAssert(false, "up"); + } rotateStackUp(_stackDepth + _itemSize); + } } void CompilerUtils::rotateStackUp(unsigned _items)