mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
24 lines
399 B
Plaintext
24 lines
399 B
Plaintext
{
|
|
let a := mload(0)
|
|
switch a
|
|
case 0 { a := add(a, 4) }
|
|
default { }
|
|
// should still create an SSA variable for a
|
|
mstore(0, a)
|
|
}
|
|
// ----
|
|
// step: ssaTransform
|
|
//
|
|
// {
|
|
// let a_1 := mload(0)
|
|
// let a := a_1
|
|
// switch a_1
|
|
// case 0 {
|
|
// let a_2 := add(a_1, 4)
|
|
// a := a_2
|
|
// }
|
|
// default { }
|
|
// let a_3 := a
|
|
// mstore(0, a_3)
|
|
// }
|