From 8eada94fb89c021968edaf1c79b6f53c55b85852 Mon Sep 17 00:00:00 2001 From: Tran Quang Loc Date: Sat, 24 Aug 2024 15:57:33 +0700 Subject: [PATCH] Update cmdlineTests --- .../output.json | 4 ++++ .../standard_debug_info_in_yul_location/output.json | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test/cmdlineTests/standard_debug_info_in_evm_asm_via_ir_location/output.json b/test/cmdlineTests/standard_debug_info_in_evm_asm_via_ir_location/output.json index 4ef3c6df1873..3c48fefa6133 100644 --- a/test/cmdlineTests/standard_debug_info_in_evm_asm_via_ir_location/output.json +++ b/test/cmdlineTests/standard_debug_info_in_evm_asm_via_ir_location/output.json @@ -280,7 +280,9 @@ sub_0: assembly { immutable(\"0xe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10\") /* \"C\":120:122 41 */ dup1 + /* \"C\":96:122 int constant constVar = 41 */ 0x29 + /* \"C\":120:122 41 */ add swap1 dup2 @@ -626,7 +628,9 @@ sub_0: assembly { immutable(\"0xe4b1702d9298fee62dfeccc57d322a463ad55ca201256d01f62b45b2e1c21c10\") /* \"C\":120:122 41 */ dup1 + /* \"C\":96:122 int constant constVar = 41 */ 0x29 + /* \"C\":120:122 41 */ add swap1 dup2 diff --git a/test/cmdlineTests/standard_debug_info_in_yul_location/output.json b/test/cmdlineTests/standard_debug_info_in_yul_location/output.json index 8f0d5b5b5d6d..9c10ed2972d9 100644 --- a/test/cmdlineTests/standard_debug_info_in_yul_location/output.json +++ b/test/cmdlineTests/standard_debug_info_in_yul_location/output.json @@ -661,7 +661,7 @@ object \"C_54\" { let _1 := loadimmutable(\"8\") /// @src 0:322:341 \"constVar + immutVar\" let sum := /** @src 0:79:510 \"contract C...\" */ 0 - sum := add(/** @src 0:127:129 \"41\" */ 0x29, /** @src 0:79:510 \"contract C...\" */ _1) + sum := add(/** @src 0:96:129 \"int public constant constVar = 41\" */ 41, /** @src 0:79:510 \"contract C...\" */ _1) if and(1, slt(sum, _1)) { mstore(0, shl(224, 0x4e487b71)) @@ -740,7 +740,7 @@ object \"C_54\" { if callvalue() { revert(0, 0) } if slt(add(calldatasize(), not(3)), 0) { revert(0, 0) } let memPos_3 := mload(64) - mstore(memPos_3, /** @src 0:127:129 \"41\" */ 0x29) + mstore(memPos_3, /** @ast-id 5 @src 0:96:129 \"int public constant constVar = 41\" */ 41) /// @src 0:79:510 \"contract C...\" return(memPos_3, 32) } @@ -1504,7 +1504,7 @@ object \"D_72\" { let _1 := loadimmutable(\"8\") /// @src 0:322:341 \"constVar + immutVar\" let sum := /** @src 1:91:181 \"contract D is C(3)...\" */ 0 - sum := add(/** @src 0:127:129 \"41\" */ 0x29, /** @src 1:91:181 \"contract D is C(3)...\" */ _1) + sum := add(/** @src 0:96:129 \"int public constant constVar = 41\" */ 41, /** @src 1:91:181 \"contract D is C(3)...\" */ _1) if and(1, slt(sum, _1)) { mstore(0, shl(224, 0x4e487b71)) @@ -1583,7 +1583,7 @@ object \"D_72\" { if callvalue() { revert(0, 0) } if slt(add(calldatasize(), not(3)), 0) { revert(0, 0) } let memPos_3 := mload(64) - mstore(memPos_3, /** @src 0:127:129 \"41\" */ 0x29) + mstore(memPos_3, /** @ast-id 5 @src 0:96:129 \"int public constant constVar = 41\" */ 41) /// @src 1:91:181 \"contract D is C(3)...\" return(memPos_3, 32) }