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

Function programInstructions

libevmasm/Ethdebug.cpp:119–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119std::vector<schema::program::Instruction> programInstructions(Assembly const& _assembly, LinkerObject const& _linkerObject, unsigned const _sourceID)
120{
121 auto const numCodeSections = _assembly.codeSections().size();
122 solAssert(numCodeSections == _linkerObject.codeSectionLocations.size());
123
124 std::vector<schema::program::Instruction> instructionInfo;
125 for (size_t codeSectionIndex = 0; codeSectionIndex < numCodeSections; ++codeSectionIndex)
126 instructionInfo += codeSectionInstructions(_assembly, _linkerObject, _sourceID, codeSectionIndex);
127 return instructionInfo;
128}
129
130} // anonymous namespace
131

Callers 1

programMethod · 0.85

Calls 2

codeSectionInstructionsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected