@@ -31,9 +31,9 @@ using namespace solidity::yul::test;
31
31
namespace
32
32
{
33
33
34
- void printVariable (YulString const & _name, u256 const & _value)
34
+ void printVariable (std::string_view const _name, u256 const & _value)
35
35
{
36
- std::cout << " \t " << _name. str () << " = " << _value.str ();
36
+ std::cout << " \t " << _name << " = " << _value.str ();
37
37
38
38
if (_value != 0 )
39
39
std::cout << " (" << toCompactHexWithPrefix (_value) << " )" ;
@@ -46,17 +46,16 @@ void printVariable(YulString const& _name, u256 const& _value)
46
46
void InspectedInterpreter::run (
47
47
std::shared_ptr<Inspector> _inspector,
48
48
InterpreterState& _state,
49
- Dialect const & _dialect,
50
- Block const & _ast,
49
+ AST const & _ast,
51
50
bool _disableExternalCalls,
52
51
bool _disableMemoryTrace
53
52
)
54
53
{
55
54
Scope scope;
56
- InspectedInterpreter{_inspector, _state, _dialect , scope, _disableExternalCalls, _disableMemoryTrace}(_ast);
55
+ InspectedInterpreter{_inspector, _state, _ast. dialect () , scope, _disableExternalCalls, _disableMemoryTrace}(_ast. root () );
57
56
}
58
57
59
- Inspector::NodeAction Inspector::queryUser (langutil::DebugData const & _data, std::map<YulString , u256> const & _variables)
58
+ Inspector::NodeAction Inspector::queryUser (langutil::DebugData const & _data, std::map<YulName , u256> const & _variables)
60
59
{
61
60
if (m_stepMode == NodeAction::RunNode)
62
61
{
@@ -99,7 +98,7 @@ Inspector::NodeAction Inspector::queryUser(langutil::DebugData const& _data, std
99
98
else if (input == " variables" || input == " v" )
100
99
{
101
100
for (auto &&[yulStr, val]: _variables)
102
- printVariable (yulStr, val);
101
+ printVariable (yulStr. str () , val);
103
102
std::cout << std::endl;
104
103
}
105
104
else if (
@@ -120,7 +119,7 @@ Inspector::NodeAction Inspector::queryUser(langutil::DebugData const& _data, std
120
119
for (auto &&[yulStr, val]: _variables)
121
120
if (yulStr.str () == varname)
122
121
{
123
- printVariable (yulStr , val);
122
+ printVariable (varname , val);
124
123
found = true ;
125
124
break ;
126
125
}
0 commit comments