From 1efdfc7f7847313cdd06f822587a5f95379e09a8 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Tue, 6 Apr 2021 14:58:03 +0200 Subject: [PATCH] More test updates. --- test/libyul/CompilabilityChecker.cpp | 6 +++--- .../evmCodeTransform/stackReuse/function_argument_reuse.yul | 2 +- .../stackReuse/function_with_body_embedded.yul | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/libyul/CompilabilityChecker.cpp b/test/libyul/CompilabilityChecker.cpp index 65a102742..93875dcc4 100644 --- a/test/libyul/CompilabilityChecker.cpp +++ b/test/libyul/CompilabilityChecker.cpp @@ -170,7 +170,7 @@ BOOST_AUTO_TEST_CASE(multiple_functions_used_arguments) x := add(add(add(add(add(add(add(add(add(add(add(add(x, r12), r11), r10), r9), r8), r7), r6), r5), r4), r3), r2), r1) } })"); - BOOST_CHECK_EQUAL(out, "h: 9 g: 5 f: 5 "); + BOOST_CHECK_EQUAL(out, "h: 9 g: 4 f: 5 "); } BOOST_AUTO_TEST_CASE(multiple_functions_unused_arguments) @@ -238,7 +238,7 @@ BOOST_AUTO_TEST_CASE(nested_used_arguments) x := add(add(add(add(add(add(add(add(add(add(add(add(x, r12), r11), r10), r9), r8), r7), r6), r5), r4), r3), r2), r1) } })"); - BOOST_CHECK_EQUAL(out, "h: 9 g: 5 f: 5 "); + BOOST_CHECK_EQUAL(out, "h: 9 g: 4 f: 5 "); } @@ -303,7 +303,7 @@ BOOST_AUTO_TEST_CASE(also_in_outer_block_used_arguments) sstore(s1, s2) } })"); - BOOST_CHECK_EQUAL(out, "g: 5 : 9 "); + BOOST_CHECK_EQUAL(out, "g: 4 : 9 "); } BOOST_AUTO_TEST_CASE(also_in_outer_block_unused_arguments) diff --git a/test/libyul/evmCodeTransform/stackReuse/function_argument_reuse.yul b/test/libyul/evmCodeTransform/stackReuse/function_argument_reuse.yul index 13048c020..e7b0c80fe 100644 --- a/test/libyul/evmCodeTransform/stackReuse/function_argument_reuse.yul +++ b/test/libyul/evmCodeTransform/stackReuse/function_argument_reuse.yul @@ -20,9 +20,9 @@ // SWAP1 // POP // JUMPDEST -// SWAP3 // SWAP2 // POP // POP +// SWAP1 // JUMP // JUMPDEST diff --git a/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul b/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul index 60f287734..3155a359a 100644 --- a/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul +++ b/test/libyul/evmCodeTransform/stackReuse/function_with_body_embedded.yul @@ -23,10 +23,10 @@ // SWAP1 // POP // JUMPDEST -// SWAP3 // SWAP2 // POP // POP +// SWAP1 // JUMP // JUMPDEST // PUSH1 0x7