-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add via SSA CFG in CLI and Standard Json Interface #16503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I see that we're not disallowing |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| --metadata --experimental --via-ssa-cfg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| // SPDX-License-Identifier: GPL-3.0 | ||
| pragma solidity *; | ||
|
|
||
| contract C {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
|
|
||
| ======= input.sol:C ======= | ||
| Metadata: | ||
| {"compiler":{"version": "<VERSION REMOVED>"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"input.sol":"C"},"evmVersion":"osaka","experimental":true,"libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":false,"runs":200},"remappings":[],"viaIR":true,"viaSSACFG":true},"sources":{"input.sol":{"keccak256":"0x5cf617b1707a484e3c4bd59643013dec76ab7d75900b46855214729ae3e0ceb0","license":"GPL-3.0","urls":["bzz-raw://ac418a02dfadf87234150d3568f33269e3f49460345cb39300e017a6d755eff2","dweb:/ipfs/QmQq3owBu25x2WV46HB1WyKzJpxiAPecU7eMKqtXCF7eeS"]}},"version":1} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "language": "Solidity", | ||
| "sources": { | ||
| "A.sol": { | ||
| "content": "contract A {}" | ||
| } | ||
| }, | ||
| "settings": { | ||
| "experimental": true, | ||
| "viaSSACFG": true, | ||
| "outputSelection": { | ||
| "*": {"*": ["evm.bytecode.ethdebug"]} | ||
| } | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "errors": [ | ||
| { | ||
| "component": "general", | ||
| "formattedMessage": "SSA CFG codegen does not yet support ethdebug.", | ||
| "message": "SSA CFG codegen does not yet support ethdebug.", | ||
| "severity": "error", | ||
| "type": "UnimplementedFeatureError" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "language": "Solidity", | ||
| "sources": { | ||
| "A.sol": { | ||
| "content": "contract A { constructor() { uint x = 2; { uint y = 3; } } }" | ||
| } | ||
| }, | ||
| "settings": { | ||
| "viaSSACFG": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "errors": [ | ||
| { | ||
| "component": "general", | ||
| "formattedMessage": "'viaSSACFG' setting is experimental and can only be used with the 'settings.experimental' option enabled.", | ||
| "message": "'viaSSACFG' setting is experimental and can only be used with the 'settings.experimental' option enabled.", | ||
| "severity": "error", | ||
| "type": "FatalError" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| { | ||
| "language": "Solidity", | ||
| "sources": { | ||
| "A.sol": { | ||
| "content": "contract A {}" | ||
| } | ||
| }, | ||
| "settings": { | ||
| "experimental": true, | ||
| "viaIR": false, | ||
| "viaSSACFG": true | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "errors": [ | ||
| { | ||
| "component": "general", | ||
| "formattedMessage": "\"settings.viaSSACFG\" requires compilation via IR.", | ||
| "message": "\"settings.viaSSACFG\" requires compilation via IR.", | ||
| "severity": "error", | ||
| "type": "JSONError" | ||
| } | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| --experimental --via-ssa-cfg --ethdebug |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Error: ethdebug is not yet supported with --via-ssa-cfg. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| // SPDX-License-Identifier: GPL-3.0 | ||
| pragma solidity >=0.0; | ||
|
|
||
| contract C {} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| --via-ssa-cfg |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Error: The following options are only available in experimental mode: --via-ssa-cfg. To enable experimental mode, use the --experimental flag. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| // SPDX-License-Identifier: GPL-3.0 | ||
| pragma solidity >=0.0; | ||
|
|
||
| contract C { | ||
| function f() public {} | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.