Skip to content
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

Add decompiler correctness tests #17

Open
3 of 4 tasks
anton-trunov opened this issue Jul 21, 2024 · 2 comments
Open
3 of 4 tasks

Add decompiler correctness tests #17

anton-trunov opened this issue Jul 21, 2024 · 2 comments

Comments

@anton-trunov
Copy link
Member

anton-trunov commented Jul 21, 2024

We need to check that the code after decompilation can be compiled either back to the original binary code or compiled to code that would pass the same tests as the original binary.

Basically we need to check the following property:

compile(decompile(boc)) = boc, for all boc

It would be also nice to check this property on lots of BoCs from the blockchain.

  • Add Fift compiler via WASM
  • Add initial tests for compile(decompile(boc)) = boc
  • Load 500 BoC from blockchain
  • Run more test with compile(decompile(boc)) = boc check
@i582
Copy link
Contributor

i582 commented Feb 17, 2025

At the moment, we already have at least the ability to compile the resulting fift code back into bitcode, and also have several tests that actually check that after recompilation the bitcode is the same.

To close this issue, many more tests need to be checked for this and passed.

@i582
Copy link
Contributor

i582 commented Feb 17, 2025

At the moment, we cannot parse about 300 contracts out of a set of 100k

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

No branches or pull requests

2 participants