MCPcopy Create free account
hub / github.com/argotorg/solidity / check

Method check

libsolidity/codegen/ContractCompiler.cpp:78–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 explicit StackHeightChecker(CompilerContext const& _context):
77 m_context(_context), stackHeight(m_context.stackHeight()) {}
78 void check()
79 {
80 solAssert(
81 m_context.stackHeight() == stackHeight,
82 std::string("I sense a disturbance in the stack: ") + std::to_string(m_context.stackHeight()) + " vs " + std::to_string(stackHeight)
83 );
84 }
85private:
86 CompilerContext const& m_context;
87 unsigned stackHeight;

Callers 1

visitMethod · 0.45

Calls 2

to_stringFunction · 0.50
stackHeightMethod · 0.45

Tested by

no test coverage detected