Command-line tests checking behavior of msize without optimizer

This commit is contained in:
Kamil Śliwak
2023-06-07 12:12:00 +02:00
parent 7ab730d410
commit 8e35e8dd8e
9 changed files with 365 additions and 0 deletions
@@ -0,0 +1 @@
--strict-assembly --debug-info none --optimize
@@ -0,0 +1,13 @@
{
function f() -> x {
x := mload(0)
}
// In pure Yul optimization in presence of msize is allowed.
// Everything in this file should get optimized out.
pop(msize())
let x := 0
let y := x
mstore(0, f())
}
@@ -0,0 +1,14 @@
======= strict_asm_msize_with_optimizer/input.yul (EVM) =======
Pretty printed source:
object "object" {
code { { } }
}
Binary representation:
00
Text representation:
stop