Skip to content

Commit e7f0e73

Browse files
author
Mohammad Rezaei
committed
tests auto-updated
1 parent d32144c commit e7f0e73

172 files changed

Lines changed: 903 additions & 905 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

test/cmdlineTests/ir_subobject_order/output

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ object "C_33" {
3030
if callvalue() { revert(0, 0) }
3131
let _2 := datasize("A_13")
3232
let _3 := add(_1, _2)
33-
if or(gt(_3, sub(shl(64, 1), 1)), lt(_3, _1))
33+
if or(gt(_3, shr(192, not(0))), lt(_3, _1))
3434
{
3535
mstore(0, shl(224, 0x4e487b71))
3636
mstore(4, 0x41)
@@ -44,11 +44,11 @@ object "C_33" {
4444
returndatacopy(pos, 0, returndatasize())
4545
revert(pos, returndatasize())
4646
}
47-
sstore(0, or(and(sload(0), not(sub(shl(160, 1), 1))), and(expr_address, sub(shl(160, 1), 1))))
47+
sstore(0, or(and(sload(0), not(shr(96, not(0)))), and(expr_address, shr(96, not(0)))))
4848
let _4 := mload(64)
4949
let _5 := datasize("B_7")
5050
let _6 := add(_4, _5)
51-
if or(gt(_6, sub(shl(64, 1), 1)), lt(_6, _4))
51+
if or(gt(_6, shr(192, not(0))), lt(_6, _4))
5252
{
5353
mstore(0, shl(224, 0x4e487b71))
5454
mstore(4, 0x41)
@@ -62,7 +62,7 @@ object "C_33" {
6262
returndatacopy(pos_1, 0, returndatasize())
6363
revert(pos_1, returndatasize())
6464
}
65-
sstore(0x01, or(and(sload(0x01), not(sub(shl(160, 1), 1))), and(expr_address_1, sub(shl(160, 1), 1))))
65+
sstore(0x01, or(and(sload(0x01), not(shr(96, not(0)))), and(expr_address_1, shr(96, not(0)))))
6666
let _7 := mload(64)
6767
let _8 := datasize("C_33_deployed")
6868
codecopy(_7, dataoffset("C_33_deployed"), _8)

test/cmdlineTests/optimizer_BlockDeDuplicator/output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ EVM assembly:
77
0x00
88
dup1
99
sload
10-
not(sub(shl(0x40, 0x01), 0x01))
10+
not(shr(0xc0, not(0x00)))
1111
and
1212
/* "input.sol":201:206 fun_x */
1313
or(tag_0_7, shl(0x20, tag_2))
14-
sub(shl(0x40, 0x01), 0x01)
14+
shr(0xc0, not(0x00))
1515
/* "input.sol":179:210 function() r = true ? fun_x : f */
1616
and
1717
or

test/cmdlineTests/optimizer_inliner_dynamic_reference_constructor/output

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ tag_1:
1717
/* "input.sol":93:98 x = f */
1818
dup1
1919
sload
20-
not(sub(shl(0x40, 0x01), 0x01))
20+
not(shr(0xc0, not(0x00)))
2121
and
2222
/* "input.sol":97:98 f */
2323
or(tag_0_12, shl(0x20, tag_4))
24-
sub(shl(0x40, 0x01), 0x01)
24+
shr(0xc0, not(0x00))
2525
/* "input.sol":93:98 x = f */
2626
and
2727
or

test/cmdlineTests/standard_debug_info_in_evm_asm_via_ir_location/output.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
dup4
2121
add
2222
swap2
23-
sub(shl(0x40, 0x01), 0x01)
23+
shr(0xc0, not(0x00))
2424
dup4
2525
gt
2626
dup5
@@ -104,7 +104,7 @@ sub_0: assembly {
104104
jumpi(tag_26, callvalue)
105105
jumpi(tag_26, slt(add(not(0x03), calldatasize), 0x00))
106106
sload(0x00)
107-
sub(shl(0xff, 0x01), 0x01)
107+
shr(0x01, not(0x00))
108108
dup2
109109
eq
110110
tag_14
@@ -350,7 +350,7 @@ sub_0: assembly {
350350
dup4
351351
add
352352
swap2
353-
sub(shl(0x40, 0x01), 0x01)
353+
shr(0xc0, not(0x00))
354354
dup4
355355
gt
356356
dup5
@@ -450,7 +450,7 @@ sub_0: assembly {
450450
jumpi(tag_26, callvalue)
451451
jumpi(tag_26, slt(add(not(0x03), calldatasize), 0x00))
452452
sload(0x00)
453-
sub(shl(0xff, 0x01), 0x01)
453+
shr(0x01, not(0x00))
454454
dup2
455455
eq
456456
tag_14

test/cmdlineTests/standard_debug_info_in_yul_location/output.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ object \"C_54\" {
619619
let programSize := datasize(\"C_54\")
620620
let argSize := sub(codesize(), programSize)
621621
let newFreePtr := add(_1, and(add(argSize, 31), not(31)))
622-
if or(gt(newFreePtr, sub(shl(64, 1), 1)), lt(newFreePtr, _1))
622+
if or(gt(newFreePtr, shr(192, not(0))), lt(newFreePtr, _1))
623623
{
624624
mstore(/** @src -1:-1:-1 */ 0, /** @src 0:79:510 \"contract C...\" */ shl(224, 0x4e487b71))
625625
mstore(4, 0x41)
@@ -684,7 +684,7 @@ object \"C_54\" {
684684
if callvalue() { revert(0, 0) }
685685
if slt(add(calldatasize(), not(3)), 0) { revert(0, 0) }
686686
let _3 := sload(0)
687-
if eq(_3, sub(shl(255, 1), 1))
687+
if eq(_3, shr(1, not(0)))
688688
{
689689
mstore(0, shl(224, 0x4e487b71))
690690
mstore(4, 0x11)
@@ -1455,7 +1455,7 @@ object \"D_72\" {
14551455
let programSize := datasize(\"D_72\")
14561456
let argSize := sub(codesize(), programSize)
14571457
let newFreePtr := add(_1, and(add(argSize, 31), not(31)))
1458-
if or(gt(newFreePtr, sub(shl(64, 1), 1)), lt(newFreePtr, _1))
1458+
if or(gt(newFreePtr, shr(192, not(0))), lt(newFreePtr, _1))
14591459
{
14601460
mstore(/** @src -1:-1:-1 */ 0, /** @src 1:91:181 \"contract D is C(3)...\" */ shl(224, 0x4e487b71))
14611461
mstore(4, 0x41)
@@ -1527,7 +1527,7 @@ object \"D_72\" {
15271527
if callvalue() { revert(0, 0) }
15281528
if slt(add(calldatasize(), not(3)), 0) { revert(0, 0) }
15291529
let _3 := sload(0)
1530-
if eq(_3, sub(shl(255, 1), 1))
1530+
if eq(_3, shr(1, not(0)))
15311531
{
15321532
mstore(0, shl(224, 0x4e487b71))
15331533
mstore(4, 0x11)

0 commit comments

Comments
 (0)