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

Method program

libevmasm/Ethdebug.cpp:132–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130} // anonymous namespace
131
132Json ethdebug::program(std::string_view _name, unsigned _sourceID, Assembly const& _assembly, LinkerObject const& _linkerObject)
133{
134 return schema::Program{
135 .compilation = std::nullopt,
136 .contract = {
137 .name = std::string{_name},
138 .definition = {
139 .source = {
140 .id = {_sourceID},
141 .type = std::nullopt
142 },
143 .range = std::nullopt
144 }
145 },
146 .environment = _assembly.isCreation() ? schema::Program::Environment::CREATE : schema::Program::Environment::CALL,
147 .context = std::nullopt,
148 .instructions = programInstructions(_assembly, _linkerObject, _sourceID)
149 };
150}
151
152Json ethdebug::resources(std::vector<std::string> const& _sources, std::string const& _version)
153{

Callers 2

FitnessMetrics.cppFile · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 2

programInstructionsFunction · 0.85
isCreationMethod · 0.80

Tested by

no test coverage detected