solidity/test/cmdlineTests/standard_yul_stack_opt_disabled/input.json
Kamil Śliwak 753f359157 Replace stack optimization command-line test with Standard JSON ones
- It's not possible to run optimizer with only stack optimization enabled on the CLI.
2021-07-01 16:54:09 +02:00

52 lines
916 B
JSON

{
"language": "Yul",
"sources":
{
"A":
{
"content": "{
function fun() -> a3, b3, c3, d3, e3, f3, g3, h3, i3, j3, k3, l3, m3, n3, o3, p3
{
let a := 1
let b := 1
let z3 := 1
sstore(a, b)
sstore(add(a, 1), b)
sstore(add(a, 2), b)
sstore(add(a, 3), b)
sstore(add(a, 4), b)
sstore(add(a, 5), b)
sstore(add(a, 6), b)
sstore(add(a, 7), b)
sstore(add(a, 8), b)
sstore(add(a, 9), b)
sstore(add(a, 10), b)
sstore(add(a, 11), b)
sstore(add(a, 12), b)
}
let a1, b1, c1, d1, e1, f1, g1, h1, i1, j1, k1, l1, m1, n1, o1, p1 := fun()
let a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2 := fun()
sstore(a1, a2)
}
"
}
},
"settings":
{
"optimizer": {
"enabled": false,
"details": {
"yul": true,
"yulDetails": {
"stackAllocation": false,
"optimizerSteps": "c"
}
}
},
"outputSelection":
{
"*": {"*": ["evm.assembly"]}
}
}
}