solidity/test/libyul/yulOptimizerTests/rematerialiser/do_not_move_out_of_scope.yul

21 lines
271 B
Plaintext

// Cannot replace `let b := x` by `let b := a` since a is out of scope.
{
let x
{
let a := sload(0)
x := a
}
let b := x
}
// ----
// step: rematerialiser
//
// {
// let x
// {
// let a := sload(0)
// x := a
// }
// let b := x
// }