Skip to content

Rewrite jsonCompiler using StandardCompiler#2213

Merged
chriseth merged 1 commit intodevelopfrom
jsoncompiler
Jun 23, 2017
Merged

Rewrite jsonCompiler using StandardCompiler#2213
chriseth merged 1 commit intodevelopfrom
jsoncompiler

Conversation

@axic
Copy link
Contributor

@axic axic commented May 2, 2017

Preferably this should be merged after the 0.4.11 release.

Depends on #2114.

@axic
Copy link
Contributor Author

axic commented May 6, 2017

For some reason this is able to crash the fuzzer:

Testing soljson via the fuzzer...
scripts/../test/cmdlineTests.sh: line 80: 12897 Segmentation fault      (core dumped) "$REPO_ROOT"/build/test/solfuzzer --quiet < "$f"

@axic
Copy link
Contributor Author

axic commented May 17, 2017

The crash was fixed by #2263.

@axic axic force-pushed the jsoncompiler branch 2 times, most recently from 72542f4 to a86a031 Compare May 22, 2017 13:53
@axic
Copy link
Contributor Author

axic commented May 23, 2017

@chriseth how do we feel about this one? Probably more tests wouldn't hurt before merging this.

@axic axic force-pushed the jsoncompiler branch 2 times, most recently from 6147697 to b418def Compare May 30, 2017 18:11
@axic axic requested a review from chriseth June 8, 2017 14:37
@axic axic changed the title [WIP] Rewrite jsonCompiler using StandardCompiler Rewrite jsonCompiler using StandardCompiler Jun 15, 2017
// Do not taint the internal error list
ErrorList formalErrors;
ErrorReporter errorReporter(formalErrors);
if (compiler.prepareFormalAnalysis(&errorReporter))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this removes Why3 support.

Copy link
Contributor

@chriseth chriseth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there any tests for this?

@axic
Copy link
Contributor Author

axic commented Jun 23, 2017

There is the test/libsolidity/JSONCompiler suite. This change didn't affect the tests.

@chriseth
Copy link
Contributor

Compiled this with emscripten and ran the solc-js tests - they are green. Merging and checking in the next days if remix works with it.

@chriseth chriseth merged commit 633b6bd into develop Jun 23, 2017
@axic axic deleted the jsoncompiler branch June 25, 2017 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants