mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make function grouper idempotent.
This commit is contained in:
@@ -26,13 +26,11 @@
|
||||
// fullInliner
|
||||
// {
|
||||
// {
|
||||
// {
|
||||
// let f_x := 100
|
||||
// mstore(0, f_x)
|
||||
// mstore(7, h())
|
||||
// g(10)
|
||||
// mstore(1, f_x)
|
||||
// }
|
||||
// let f_x := 100
|
||||
// mstore(0, f_x)
|
||||
// mstore(7, h())
|
||||
// g(10)
|
||||
// mstore(1, f_x)
|
||||
// }
|
||||
// function f(x)
|
||||
// {
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
{
|
||||
let x := 2
|
||||
}
|
||||
function f() -> y { y := 8 }
|
||||
}
|
||||
// ----
|
||||
// functionGrouper
|
||||
// {
|
||||
// {
|
||||
// let x := 2
|
||||
// }
|
||||
// function f() -> y
|
||||
// {
|
||||
// y := 8
|
||||
// }
|
||||
// }
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
function f() -> y { y := 8 }
|
||||
{
|
||||
let x := 2
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// functionGrouper
|
||||
// {
|
||||
// {
|
||||
// {
|
||||
// let x := 2
|
||||
// }
|
||||
// }
|
||||
// function f() -> y
|
||||
// {
|
||||
// y := 8
|
||||
// }
|
||||
// }
|
||||
Reference in New Issue
Block a user