diff options
author | chriseth <chris@ethereum.org> | 2018-10-11 23:14:59 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-12 00:41:26 +0800 |
commit | 9cd577abe9d6a04147160ec2b14988dc5b4f5a28 (patch) | |
tree | 533ea1b7b6037daab2780bbd79e4a091aabb44df /test/libjulia/yulOptimizerTests/fullInliner/simple.yul | |
parent | 83ab8e7f7897d87e90e534e3272e916f714a9727 (diff) | |
download | dexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.tar.gz dexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.tar.zst dexon-solidity-9cd577abe9d6a04147160ec2b14988dc5b4f5a28.zip |
Move tests for full inliner.
Diffstat (limited to 'test/libjulia/yulOptimizerTests/fullInliner/simple.yul')
-rw-r--r-- | test/libjulia/yulOptimizerTests/fullInliner/simple.yul | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/libjulia/yulOptimizerTests/fullInliner/simple.yul b/test/libjulia/yulOptimizerTests/fullInliner/simple.yul new file mode 100644 index 00000000..dd1a4e0a --- /dev/null +++ b/test/libjulia/yulOptimizerTests/fullInliner/simple.yul @@ -0,0 +1,26 @@ +{ + function f(a) -> x { + let r := mul(a, a) + x := add(r, r) + } + let y := add(f(sload(mload(2))), mload(7)) +} +// ---- +// fullInliner +// { +// { +// let _1 := mload(7) +// let f_a := sload(mload(2)) +// let f_x +// { +// let f_r := mul(f_a, f_a) +// f_x := add(f_r, f_r) +// } +// let y := add(f_x, _1) +// } +// function f(a) -> x +// { +// let r := mul(a, a) +// x := add(r, r) +// } +// } |