Inline each function separately.

This commit is contained in:
chriseth
2018-10-16 17:32:21 +02:00
parent a435a14e13
commit 2ab6430303
4 changed files with 29 additions and 69 deletions
@@ -14,10 +14,7 @@
// let g_b := f_x
// let g_c := _1
// let g_y
// let g_f_a_1 := g_b
// let g_f_x_1
// g_f_x_1 := add(g_f_a_1, g_f_a_1)
// g_y := mul(mload(g_c), g_f_x_1)
// g_y := mul(mload(g_c), f(g_b))
// let y_1 := g_y
// }
// function f(a) -> x
@@ -27,23 +27,11 @@
// {
// {
// {
// let f_x_1 := 100
// mstore(0, f_x_1)
// let f_h_t
// f_h_t := 2
// mstore(7, f_h_t)
// let f__5 := 10
// let f_g_x_1 := f__5
// let f_g_f_x := 1
// let
// mstore()
// let f_g_f_ := h()
// let
// mstore()
// let
// g(f__5)
// mstore(1, f_g_f_x)
// mstore(1, f_x_1)
// let f_x := 100
// mstore(0, f_x)
// mstore(7, h())
// g(10)
// mstore(1, f_x)
// }
// }
// function f(x)
@@ -52,30 +40,20 @@
// let h_t
// h_t := 2
// mstore(7, h_t)
// let _5 := 10
// let g_x_1 := _5
// let g_f_x := 1
// let
// mstore()
// let g_f_ := h()
// let
// mstore()
// let
// g(_5)
// mstore(1, g_f_x)
// let g_x_1 := 10
// f(1)
// mstore(1, x)
// }
// function g(x_1)
// {
// let f_x := 1
// let
// mstore()
// let f_ := h()
// let
// mstore()
// let
// g(_5)
// mstore(1, f_x)
// let f_x_1 := 1
// mstore(0, f_x_1)
// let f_h_t
// f_h_t := 2
// mstore(7, f_h_t)
// let f_g_x_1 := 10
// f(1)
// mstore(1, f_x_1)
// }
// function h() -> t
// {