mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
FullInliner: Do not include calls whose arguments may have side-effects
This commit is contained in:
+1
-6
@@ -11,12 +11,7 @@
|
||||
//
|
||||
// {
|
||||
// {
|
||||
// let ret_3 := 0
|
||||
// revert(0, 0)
|
||||
// let b_1 := ret_3
|
||||
// let ret_1_4 := 0
|
||||
// return(0, 0)
|
||||
// let a_2 := ret_1_4
|
||||
// empty(fun_return(), fun_revert())
|
||||
// }
|
||||
// function fun_revert() -> ret
|
||||
// { revert(0, 0) }
|
||||
|
||||
+2
-6
@@ -31,13 +31,9 @@
|
||||
// let c_4 := z
|
||||
// let b_5 := y
|
||||
// let a_6 := x
|
||||
// let c_7 := calldataload(333)
|
||||
// let b_8 := sload(222)
|
||||
// let a_9 := mload(111)
|
||||
// empty(mload(111), sload(222), calldataload(333))
|
||||
// let a_1 := 222
|
||||
// let c_10 := mload(333)
|
||||
// let b_11 := a_1
|
||||
// let a_12 := 111
|
||||
// empty(111, a_1, mload(333))
|
||||
// }
|
||||
// function empty(a, b, c)
|
||||
// { }
|
||||
|
||||
Reference in New Issue
Block a user