File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
test/libyul/evmCodeTransform Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ object "main" {
2
+ code {
3
+ let a := calldataload (0 )
4
+ let b := calldataload (32 )
5
+ if calldataload (64 ) {
6
+ revert (0 ,0 )
7
+ }
8
+ sstore (b, a)
9
+ }
10
+ }
11
+ // ====
12
+ // stackOptimization: true
13
+ // ----
14
+ // /* "":51:52 */
15
+ // 0x00
16
+ // /* "":38:53 */
17
+ // calldataload
18
+ // /* "":81:83 */
19
+ // 0x20
20
+ // /* "":68:84 */
21
+ // calldataload
22
+ // /* "":106:108 */
23
+ // 0x40
24
+ // /* "":93:109 */
25
+ // calldataload
26
+ // /* "":90:139 */
27
+ // tag_1
28
+ // jumpi
29
+ // /* "":22:160 */
30
+ // tag_2:
31
+ // /* "":145:157 */
32
+ // sstore
33
+ // /* "":22:160 */
34
+ // stop
35
+ // /* "":110:139 */
36
+ // tag_1:
37
+ // /* "":121:132 */
38
+ // pop
39
+ // pop
40
+ // /* "":130:131 */
41
+ // 0x00
42
+ // /* "":121:132 */
43
+ // dup1
44
+ // revert
You can’t perform that action at this time.
0 commit comments