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

Function interpret

test/tools/yulrun.cpp:80–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void interpret(std::string const& _source, bool _inspect, bool _disableExternalCalls)
81{
82 std::shared_ptr<AST const> ast;
83 std::shared_ptr<AsmAnalysisInfo> analysisInfo;
84 tie(ast, analysisInfo) = parse(_source);
85 if (!ast || !analysisInfo)
86 return;
87
88 InterpreterState state;
89 state.maxTraceSize = 10000;
90 try
91 {
92 if (_inspect)
93 InspectedInterpreter::run(std::make_shared<Inspector>(_source, state), state, *ast, _disableExternalCalls, /*disableMemoryTracing=*/false);
94 else
95 Interpreter::run(state, *ast, _disableExternalCalls, /*disableMemoryTracing=*/false);
96 }
97 catch (InterpreterTerminatedGeneric const&)
98 {
99 }
100
101 state.dumpTraceAndState(std::cout, /*disableMemoryTracing=*/false);
102}
103
104}
105

Callers 4

mainFunction · 0.85
LLVMFuzzerTestOneInputFunction · 0.85
DEFINE_PROTO_FUZZERFunction · 0.85
runMethod · 0.85

Calls 2

dumpTraceAndStateMethod · 0.80
parseFunction · 0.70

Tested by 1

runMethod · 0.68