mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
63 lines
1.3 KiB
Plaintext
63 lines
1.3 KiB
Plaintext
{
|
|
mstore(0x40, memoryguard(0))
|
|
function g() -> a, b {
|
|
a := 21
|
|
let $c := 1
|
|
b,a,$c := z()
|
|
}
|
|
function f() -> x {
|
|
let $x2
|
|
$x2 := 42
|
|
let $x3, $x4 := g()
|
|
x := mul(add($x2, $x3), h($x4))
|
|
sstore($x3, $x4)
|
|
}
|
|
function h(v) -> a {
|
|
let x, $z, y := z()
|
|
a, $z, v := z()
|
|
}
|
|
function z() -> a,b,c { let $x := 0 }
|
|
sstore(0, f())
|
|
let x, y := g()
|
|
}
|
|
// ----
|
|
// step: fakeStackLimitEvader
|
|
//
|
|
// {
|
|
// mstore(0x40, memoryguard(0xa0))
|
|
// function g() -> a, b
|
|
// {
|
|
// a := 21
|
|
// mstore(0x60, 1)
|
|
// let b_1, a_2, $c_3 := z()
|
|
// mstore(0x60, $c_3)
|
|
// a := a_2
|
|
// b := b_1
|
|
// }
|
|
// function f() -> x
|
|
// {
|
|
// mstore(0x20, 0)
|
|
// mstore(0x20, 42)
|
|
// let $x3_4, $x4_5 := g()
|
|
// mstore(0x00, $x4_5)
|
|
// mstore(0x40, $x3_4)
|
|
// x := mul(add(mload(0x20), mload(0x40)), h(mload(0x00)))
|
|
// sstore(mload(0x40), mload(0x00))
|
|
// }
|
|
// function h(v) -> a_1
|
|
// {
|
|
// let x_2_6, $z_7, y_8 := z()
|
|
// mstore(0x60, $z_7)
|
|
// let y := y_8
|
|
// let x_2 := x_2_6
|
|
// let a_1_9, $z_10, v_11 := z()
|
|
// mstore(0x60, $z_10)
|
|
// v := v_11
|
|
// a_1 := a_1_9
|
|
// }
|
|
// function z() -> a_3, b_4, c
|
|
// { mstore(0x80, 0) }
|
|
// sstore(0, f())
|
|
// let x_5, y_6 := g()
|
|
// }
|