From 732d09cef1548e2111c47b6f5b04a54db10a9d41 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 16 Oct 2018 17:01:13 +0200 Subject: Limit size of generated names and add convenience constructors. --- .../yulOptimizerTests/fullInliner/long_names.yul | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 test/libyul/yulOptimizerTests/fullInliner/long_names.yul (limited to 'test/libyul/yulOptimizerTests/fullInliner') diff --git a/test/libyul/yulOptimizerTests/fullInliner/long_names.yul b/test/libyul/yulOptimizerTests/fullInliner/long_names.yul new file mode 100644 index 00000000..644e9126 --- /dev/null +++ b/test/libyul/yulOptimizerTests/fullInliner/long_names.yul @@ -0,0 +1,25 @@ +{ + function verylongfunctionname(verylongvariablename) -> verylongvariablename2 { + verylongvariablename2 := add(verylongvariablename, verylongvariablename) + } + // same long name + let verylongvariablename2 := 3 + mstore(0, verylongfunctionname(verylongvariablename2)) + mstore(1, verylongvariablename2) +} +// ---- +// fullInliner +// { +// { +// let verylongvariablename2_1 := 3 +// let verylongfu_verylongvariablename := verylongvariablename2_1 +// let verylongfu_verylongvariablename2 +// verylongfu_verylongvariablename2 := add(verylongfu_verylongvariablename, verylongfu_verylongvariablename) +// mstore(0, verylongfu_verylongvariablename2) +// mstore(1, verylongvariablename2_1) +// } +// function verylongfunctionname(verylongvariablename) -> verylongvariablename2 +// { +// verylongvariablename2 := add(verylongvariablename, verylongvariablename) +// } +// } -- cgit