mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Yul interpreter: Smaller execution timeout for tests and additional test cases
This commit is contained in:
@@ -87,8 +87,8 @@ bool YulInterpreterTest::parse(ostream& _stream, string const& _linePrefix, bool
|
||||
string YulInterpreterTest::interpret()
|
||||
{
|
||||
InterpreterState state;
|
||||
state.maxTraceSize = 10000;
|
||||
state.maxSteps = 10000;
|
||||
state.maxTraceSize = 10;
|
||||
state.maxSteps = 150;
|
||||
try
|
||||
{
|
||||
Interpreter::run(state, EVMDialect::strictAssemblyForEVMObjects(langutil::EVMVersion{}), *m_ast);
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
function f() {
|
||||
f()
|
||||
}
|
||||
f()
|
||||
}
|
||||
// ----
|
||||
// Trace:
|
||||
// Interpreter execution step limit reached.
|
||||
// Memory dump:
|
||||
// Storage dump:
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
function f() {
|
||||
log0(0x0, 0x0)
|
||||
f()
|
||||
}
|
||||
f()
|
||||
}
|
||||
// ----
|
||||
// Trace:
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// LOG0(0, 0)
|
||||
// Trace size limit reached.
|
||||
// Memory dump:
|
||||
// Storage dump:
|
||||
Reference in New Issue
Block a user