Skip to content

Commit b6cd3e1

Browse files
committed
Test case for current behaviour.
1 parent 5afa2ad commit b6cd3e1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)