FullInliner: Do not include calls whose arguments may have side-effects

This commit is contained in:
Kamil Śliwak
2023-07-17 16:40:43 +02:00
parent 5e1e0e7752
commit ba3f9dd2a2
4 changed files with 10 additions and 12 deletions
@@ -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) }
@@ -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)
// { }