Add trace for unreachable in Yul Ewasm translation tests

This commit is contained in:
Alex Beregszaszi
2019-12-15 13:28:38 +00:00
parent 1c01c69eab
commit 2a808e4f32
25 changed files with 27 additions and 0 deletions
@@ -79,7 +79,10 @@ u256 EWasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
else if (_fun == "drop"_yulstring)
return {};
else if (_fun == "unreachable"_yulstring)
{
logTrace(eth::Instruction::INVALID, {});
throw ExplicitlyTerminated();
}
else if (_fun == "i64.add"_yulstring)
return arg[0] + arg[1];
else if (_fun == "i64.sub"_yulstring)