Add trace for unreachable in Yul Ewasm translation tests

This commit is contained in:
Alex Beregszaszi committed 2019-12-15 13:28:38 +00:00
1 parent 1c01c69eab
commit 2a808e4f32
25 files changed
+27

No files matched your search

@@ -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)