solidity/test/libyul/yulOptimizerTests/expressionSimplifier/including_function_calls.yul

14 lines
188 B
Plaintext
Raw Normal View History

2018-10-11 16:35:13 +00:00
{
function f() -> a {}
let b := add(7, sub(f(), 7))
2020-08-03 20:42:39 +00:00
sstore(0, b)
2018-10-11 16:35:13 +00:00
}
// ----
// step: expressionSimplifier
//
2018-10-11 16:35:13 +00:00
// {
// sstore(0, f())
2018-10-11 16:35:13 +00:00
// function f() -> a
// { }
2018-10-11 16:35:13 +00:00
// }